Skip to content
Discussion options

You must be logged in to vote

These days, because we have the analyzer blocking the use of the new keyword, you generally initialize a command object via the create operation.

[Serializable]
public class MyCommand : CommandBase<MyCommand>
{
    // declare Id property here
    
    [Create]
    [RunLocal]
    private void Create(int id)
    {
        Id = id;
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Chicagoan2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants