1
I Use This!
Inactive

News

Analyzed 1 day ago. based on code collected 1 day ago.
Posted over 9 years ago by andreymir
Should be return app.HandleError(ex);
Posted over 9 years ago by andreymir
Should be return app.HandleError(ex);
Posted over 9 years ago by andreymir
Should be return app.HandleError(ex);
Posted over 9 years ago by andreymir
Should be return app.HandleError(ex);
Posted over 9 years ago by vfabregat
I am working through the interactive shell example. The Prompt built in command returns the following error:Non-Static field requires a target.This is being generated in FluentHelper.cs , Class FluentHelpers, Function SetDataMemberValue, line 229 on ... [More] in the instruction field.SetValue(null, value);I'm not sure what the correction for this issue is. Please advise. Thanks, DinsdaleComments: ** Comment from web user: vfabregat ** Are you triying to assign a value to a parameter?Something like this:``` public sealed class AddCommand : CommandBase { public static string Pattern; /..../ public override IEnumerable<ShellArgument> GetArguments() { yield return AddArgument() /.../ .AssignTo(() => Pattern); }/.../```If the answer is yes, maybe the error is because your property, in this case ```Pattern```has to be a static property.I hope this help you (yeah, I know is a old issue) [Less]
Posted over 9 years ago by vfabregat
I am working through the interactive shell example. The Prompt built in command returns the following error:Non-Static field requires a target.This is being generated in FluentHelper.cs , Class FluentHelpers, Function SetDataMemberValue, line 229 on ... [More] in the instruction field.SetValue(null, value);I'm not sure what the correction for this issue is. Please advise. Thanks, DinsdaleComments: ** Comment from web user: vfabregat ** Are you triying to assign a value to a parameter?Something like this:``` public sealed class AddCommand : CommandBase { public static string Pattern; /..../ public override IEnumerable<ShellArgument> GetArguments() { yield return AddArgument() /.../ .AssignTo(() => Pattern); }/.../```If the answer is yes, maybe the error is because your property, in this case ```Pattern```has to be a static property.I hope this help you (yeah, I know is a old issue) [Less]
Posted over 9 years ago by vfabregat
I am working through the interactive shell example. The Prompt built in command returns the following error:Non-Static field requires a target.This is being generated in FluentHelper.cs , Class FluentHelpers, Function SetDataMemberValue, line 229 on ... [More] in the instruction field.SetValue(null, value);I'm not sure what the correction for this issue is. Please advise. Thanks, DinsdaleComments: ** Comment from web user: vfabregat ** Are you triying to assign a value to a parameter?Something like this:``` public sealed class AddCommand : CommandBase { public static string Pattern; /..../ public override IEnumerable GetArguments() { yield return AddArgument() /.../ .AssignTo(() => Pattern); }/.../```If the answer is yes, maybe the error is because your property, in this case ```Pattern```has to be a static property.I hope this help you (yeah, I know is a old issue) [Less]
Posted over 9 years ago by vfabregat
I am working through the interactive shell example. The Prompt built in command returns the following error:Non-Static field requires a target.This is being generated in FluentHelper.cs , Class FluentHelpers, Function SetDataMemberValue, line 229 on ... [More] in the instruction field.SetValue(null, value);I'm not sure what the correction for this issue is. Please advise. Thanks, DinsdaleComments: ** Comment from web user: vfabregat ** Are you triying to assign a value to a parameter?Something like this:``` public sealed class AddCommand : CommandBase { public static string Pattern; /..../ public override IEnumerable GetArguments() { yield return AddArgument() /.../ .AssignTo(() => Pattern); }/.../```If the answer is yes, maybe the error is because your property, in this case ```Pattern```has to be a static property.I hope this help you (yeah, I know is a old issue) [Less]
Posted about 10 years ago by jeevanjj
Posted about 10 years ago by jeevanjj