示例#1
0
 internal static string ToRestString(this StandardOperation operation)
 {
     return(OperationNames[operation]);
 }
 /// <summary>
 /// Initializes a new field update element.
 /// </summary>
 /// <param name="operation">The operation to perform.</param>
 /// <param name="value">The value.</param>
 internal FieldUpdateElement(StandardOperation operation, object value)
 {
     this.Operation = operation;
     this.Value     = value;
 }
 /// <summary>
 /// Initializes a new field update element.
 /// </summary>
 /// <param name="operation">The operation to perform.</param>
 /// <param name="value">The value.</param>
 internal FieldUpdateElement(StandardOperation operation, object value)
 {
     this.Operation = operation;
     this.Value = value;
 }
 /// <summary>
 /// Adds an operation to the update field.
 /// </summary>
 /// <param name="operation">The operation to perform.</param>
 /// <param name="value">The value.</param>
 public void AddOperation(StandardOperation operation, object value)
 {
     Elements.Add(new FieldUpdateElement(operation, value));
 }
 /// <summary>
 /// Adds an operation to the update field.
 /// </summary>
 /// <param name="operation">The operation to perform.</param>
 /// <param name="value">The value.</param>
 public void AddOperation(StandardOperation operation, object value)
 {
     Elements.Add(new FieldUpdateElement(operation, value));
 }