コード例 #1
0
 /// <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());
 }
コード例 #2
0
            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);
            }
コード例 #3
0
 /// <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());
 }