-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/orcomp 644 #278
base: develop
Are you sure you want to change the base?
Feature/orcomp 644 #278
Conversation
I think we should consider using System.CommandLine instead? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please write the tests for the new method and read my comments
{ | ||
using Catel.Data; | ||
|
||
public interface IResult : IContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one of the points of the issue is to split IContext
into IResult
and ICommandLineParsingContext
it means IResult
should not be inherited from IContext
I would extract two different interfaces from IContext
: ICommandLineParsingContext
and something like ICommandLineParsingResult
and do something like that:
[ObsoleteEx]
public interface IContext : ICommandLineParsingContext, ICommandLineParsingResult
{
// put obsolete props and methods here
}
public interface IValidatedResult : ICommandLineParsingResult
{
IValidationContext ValidationContext { get; }
}
{ | ||
using Catel.Data; | ||
|
||
public interface IValidatedResult : IContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read the comments for the IResult
|
||
public List<char> QuoteSplitCharacters { get; set; } | ||
|
||
public void Finish() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure why we need it
using System; | ||
using System.Reflection; | ||
|
||
internal static class PropertyHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename the class to ObjectExtensions
good point |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description of Change
As noted by @mkhomutov , in the current implementation, the context is actually not really the context.
It should be a returning value of Parse() method.
Issues Resolved
API Changes
None
Platforms Affected
Behavioral Changes
None
Testing Procedure
PR Checklist