Prevent binding an IArgumentModel
property
#459
-
I'm using the public class MyModel : IArgumentModel
{
[Option('f', "foo")]
public string Foo { get; set; }
public string Bar => "123" + Foo + "456"; // <<<
} The
Is there some attribute (e.g. the way one uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We do not have this concept. The intent is to keep the arg models single purposed. They are only for defining arguments. I recommend using methods instead of get only properties when you need to perform an operation on the user provided values. |
Beta Was this translation helpful? Give feedback.
We do not have this concept. The intent is to keep the arg models single purposed. They are only for defining arguments. I recommend using methods instead of get only properties when you need to perform an operation on the user provided values.