Пример #1
0
        public static DependencyObjectType FromSystemType(Type systemType)
        {
            if (typeMap.ContainsKey(systemType))
            {
                return typeMap[systemType];
            }

            DependencyObjectType dot = new DependencyObjectType(currentId++, systemType);
            typeMap[systemType] = dot;
            return dot;
        }
        public static DependencyObjectType FromSystemType(Type systemType)
        {
            if (typeMap.ContainsKey(systemType))
            {
                return(typeMap[systemType]);
            }

            DependencyObjectType dot = new DependencyObjectType(currentId++, systemType);

            typeMap[systemType] = dot;
            return(dot);
        }
 public PropertyMetadata GetMetadata(DependencyObjectType dependencyObjectType)
 {
     return(this.GetMetadata(dependencyObjectType.SystemType));
 }
 public bool IsSubclassOf(DependencyObjectType dependencyObjectType)
 {
     return(this.SystemType.IsSubclassOf(dependencyObjectType.SystemType));
 }
Пример #5
0
 public PropertyMetadata GetMetadata(DependencyObjectType dependencyObjectType)
 {
     return this.GetMetadata(dependencyObjectType.SystemType);
 }
Пример #6
0
 public bool IsSubclassOf(DependencyObjectType dependencyObjectType)
 {
     return this.SystemType.IsSubclassOf(dependencyObjectType.SystemType);
 }