コード例 #1
0
 /// <summary>
 /// Creates a new ArgShortcut using the given policy
 /// </summary>
 /// <param name="policy"></param>
 public ArgShortcut(ArgShortcutPolicy policy)
 {
     if (policy == ArgShortcutPolicy.NoShortcut)
     {
         this.Shortcut = null;
         this.policy   = policy;
     }
     else
     {
         throw new InvalidOperationException("ShortcutAssignment '" + policy + "' is not supported in this context.");
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates a new ArgShortcut using the given policy
 /// </summary>
 /// <param name="policy"></param>
 public ArgShortcut(ArgShortcutPolicy policy)
 {
     if (policy == ArgShortcutPolicy.NoShortcut)
     {
         this.Shortcut = null;
         this.policy = policy;
     }
     else
     {
         throw new InvalidOperationException("ShortcutAssignment '" + policy + "' is not supported in this context.");
     }
 }
コード例 #3
0
ファイル: ArgShortcut.cs プロジェクト: zerox981/EventStore
 /// <summary>
 /// Creates a new ArgShortcut using the given policy.
 /// </summary>
 /// <param name="policy"></param>
 public ArgShortcut(ArgShortcutPolicy policy)
 {
     this.Policy = policy;
 }
コード例 #4
0
ファイル: ArgShortcut.cs プロジェクト: zerox981/EventStore
 /// <summary>
 /// Creates a new ArgShortcut attribute with a specified value.
 /// </summary>
 /// <param name="shortcut">The value of the new shortcut.</param>
 public ArgShortcut(string shortcut)
 {
     this.Shortcut = shortcut;
     this.Policy   = ArgShortcutPolicy.Default;
 }
コード例 #5
0
ファイル: ArgShortcut.cs プロジェクト: czcz1024/EventStore
 /// <summary>
 /// Creates a new ArgShortcut using the given policy
 /// </summary>
 /// <param name="policy"></param>
 public ArgShortcut(ArgShortcutPolicy policy)
 {
     this.Policy = policy;
 }
コード例 #6
0
ファイル: ArgShortcut.cs プロジェクト: czcz1024/EventStore
 /// <summary>
 /// Creates a new ArgShortcut attribute with a specified value.
 /// </summary>
 /// <param name="shortcut">The value of the new shortcut.</param>
 public ArgShortcut(string shortcut)
 {
     this.Shortcut = shortcut;
     this.Policy = ArgShortcutPolicy.Default;
 }