public BamlPropertyWithExtension(bool isValueType, bool isStaticType, BamlExtension extension, IBamlProperty declaringProperty) { _isValueType = isValueType; _isStaticType = isStaticType; _extension = extension; _declaringProperty = declaringProperty; }
private short GetPropertyId(IBamlProperty property) { switch (property.Kind) { case BamlPropertyKind.Declaration: { short propertyId; if (!_propertyToID.TryGetValue((BamlPropertyInfo)property, out propertyId)) { throw new BamlException(SR.BamlLoadError); } return(propertyId); } case BamlPropertyKind.Known: { short propertyId = (short)((BamlKnownProperty)property).KnownCode; return((short)-propertyId); } default: throw new NotImplementedException(); } }
public BamlPropertyValueWithProperty(IBamlProperty property) { _property = property; var declaringProperty = property as BamlPropertyInfo; if (declaringProperty != null) { _name = declaringProperty.Name; _type = declaringProperty.Type; } }
public static MemberNode Resolve(IBamlProperty bamlProperty, Assembly ownerAssembly, bool throwOnFailure = false) { var property = bamlProperty.Resolve(ownerAssembly); if (property == null) { if (throwOnFailure) { throw new ResolveReferenceException(string.Format(Net.SR.PropertyResolveError, bamlProperty.ToString())); } return(null); } return(property); }
private static bool IsProperty(IBamlProperty bamlProperty, string name, string typeName, bool ignoreNamespace) { var bamlPropertyInfo = bamlProperty as BamlPropertyInfo; if (bamlPropertyInfo == null) { return(false); } if (bamlPropertyInfo.Name != name) { return(false); } if (!IsType(bamlPropertyInfo.Type, typeName, ignoreNamespace)) { return(false); } return(true); }
private static bool IsProperty(IBamlProperty bamlProperty, string name, BamlKnownTypeCode typeCode) { var bamlPropertyInfo = bamlProperty as BamlPropertyInfo; if (bamlPropertyInfo == null) { return(false); } if (bamlPropertyInfo.Name != name) { return(false); } if (!IsType(bamlPropertyInfo.Type, typeCode)) { return(false); } return(true); }
public BamlContentProperty(IBamlProperty property) { _property = property; }
public BamlPropertyArray(IBamlProperty declaringProperty) { _declaringProperty = declaringProperty; }
private MemberNode Resolve(IBamlProperty bamlProperty) { return(bamlProperty.Resolve(_assembly)); }
public BamlProperty(string value, IBamlProperty declaringProperty) { _value = value; _declaringProperty = declaringProperty; }
public BamlRoutedEvent(string value, IBamlProperty property) { _value = value; _property = property; }
public BamlPropertyIList(IBamlProperty declaringProperty) { _declaringProperty = declaringProperty; }
public BamlPropertyWithConverter(string value, IBamlType converterType, IBamlProperty declaringProperty) { _value = value; _converterType = converterType; _declaringProperty = declaringProperty; }
public BamlPropertyCustom(bool isValueType, BamlPropertyValue value, IBamlProperty declaringProperty) { _isValueType = isValueType; _value = value; _declaringProperty = declaringProperty; }
public BamlPropertyIDictionary(IBamlProperty declaringProperty) { _declaringProperty = declaringProperty; }
public BamlExtensionPropertyValue(IBamlProperty value) { _value = value; }
public BamlPropertyWithStaticResourceId(short staticResourceId, IBamlProperty declaringProperty) { _staticResourceId = staticResourceId; _declaringProperty = declaringProperty; }
public BamlPropertyComplex(IBamlProperty declaringProperty) { _declaringProperty = declaringProperty; }
public BamlPropertyTypeReference(IBamlType value, IBamlProperty declaringProperty) { _value = value; _declaringProperty = declaringProperty; }
public BamlPropertyStringReference(IBamlString value, IBamlProperty declaringProperty) { _value = value; _declaringProperty = declaringProperty; }