Beispiel #1
0
        private DependencyProperty(string name, Type propertyName, Type ownerType, object defaultValue)
        {
            this.Name = name;
            this.Value = defaultValue;
            this.HashCode = name.GetHashCode() ^ ownerType.GetHashCode();

            PorpertypeMetadata metadata = new PorpertypeMetadata(defaultValue) {Type = ownerType};
            _metadataMap.Add(metadata);
            _defaultMetadata = metadata;
        }
Beispiel #2
0
 public void OverrideMetadata(Type forType, PorpertypeMetadata metadata)
 {
     metadata.Type = forType;
     _metadataMap.Add(metadata);
 }