/// <summary>Annotate the specified snapshot element to indicate that it is constrained by the differential.</summary> internal static void SetConstrainedByDiffAnnotation(this Base element) { if (element == null) { throw Error.ArgumentNull(nameof(element)); } element.AddAnnotation(new ConstrainedByDiffAnnotation()); }
public bool OnBeforeDeserializeProperty(string name, Base parent, IElementNavigator current) { if (name == "yada") { var num = PrimitiveTypeConverter.ConvertTo <int>(current.Value); parent.AddAnnotation(new YadaYadaAnnotation { Num = num }); return(true); } return(false); }
/// <summary>Annotate the specified snapshot element to indicate that it is constrained by the differential.</summary> internal static void SetConstrainedByDifferential(this Base element) { element?.AddAnnotation(new ConstrainedByDifferentialAnnotation()); }