Пример #1
0
 public Uri(System.Uri value)
 {
     value.ValidateNonNull(nameof(value));
     Value = value;
 }
Пример #2
0
 private DelegateCommand(
     Object @object,
     string id,
     string name,
     bool isCancellable,
     System.Func<CancellationToken?, object[], Task> execute,
     System.Func<object[], bool> canExecute = null,
     string description = null,
     params ICommandParameterInfoWritable[] parameters
     )
     : base(@object, id, name, isCancellable, description, parameters)
 {
     execute.ValidateNonNull(nameof(execute));
     this.canExecute = canExecute;
     this.execute = execute;
 }