Пример #1
0
        public static MemberLevelSettingsValue Merge(MemberLevelSettingsValue baseValue, MemberLevelSettingsValue derivedValue)
        {
            var r = derivedValue;

            if (r.Format == ValueFormat.NotSpecified)
            {
                r.Format = baseValue.Format;
            }
            if (r.ContentBinaryFormatHint == null)
            {
                r.ContentBinaryFormatHint = baseValue.ContentBinaryFormatHint;
            }
            if (r.WriteAsDynamicType == null)
            {
                r.WriteAsDynamicType = baseValue.WriteAsDynamicType;
            }
            if (r.DefaultsMode == null)
            {
                r.DefaultsMode = baseValue.DefaultsMode;
            }
            r.Collection = CollectionSettingsValue.Merge(baseValue.Collection, derivedValue.Collection);
            return(r);
        }
Пример #2
0
 public MemberLevelSettingsRef(MemberLevelSettingsValue v)
 {
     V = v;
 }