Пример #1
0
 /// <summary>
 /// Begins an edit session for the specified instance.
 /// </summary>
 /// <param name="instance">The instance to begin editing on.</param>
 /// <returns>The edit session.</returns>
 public static EditSession Begin(ComplexObject instance)
 {
     return new EditSession(instance);
 }
Пример #2
0
 private EditSession(ComplexObject instance)
 {
     this._instance = instance;
     this._validationErrors = instance.ValidationErrors.ToArray();
 }
Пример #3
0
 public ComplexObjectValidationResultCollection(ComplexObject complexObject)
     : base(complexObject)
 {
     this._complexObject = complexObject;
 }
 public ComplexObjectValidationResultCollection(ComplexObject complexObject)
     : base(complexObject)
 {
     this._complexObject = complexObject;
 }
 /// <summary>
 /// Begins an edit session for the specified instance.
 /// </summary>
 /// <param name="instance">The instance to begin editing on.</param>
 /// <returns>The edit session.</returns>
 public static EditSession Begin(ComplexObject instance)
 {
     return(new EditSession(instance));
 }
 private EditSession(ComplexObject instance)
 {
     this._instance         = instance;
     this._validationErrors = instance.ValidationErrors.ToArray();
 }