public XamlDuplicateMemberException(XamlMember member, XamlType type) : this(String.Format("duplicate member '{0}' in type '{1}'", member, type)) { DuplicateMember = member; ParentType = type; }
protected internal XamlValueConverter <TConverterBase> GetValueConverter <TConverterBase> (Type converterType, XamlType targetType) where TConverterBase : class { return(new XamlValueConverter <TConverterBase> (converterType, targetType)); }
public override void WriteStartObject(XamlType type) { source.Enqueue(new XamlNodeInfo(XamlNodeType.StartObject, new XamlObject(type, null))); }
public XamlObject(XamlType type, object instance) : this(type, new InstanceContext(instance)) { }
public XamlObject(XamlType type, InstanceContext context) { this.type = type; this.context = context; }
internal static ICustomAttributeProvider GetCustomAttributeProvider(this XamlType type) { return(type.UnderlyingType); }
public static IEnumerable <XamlMember> GetConstructorArguments(this XamlType type) { return(type.GetAllMembers().Where(m => m.UnderlyingMember != null && m.GetCustomAttributeProvider().GetCustomAttribute <ConstructorArgumentAttribute> (false) != null)); }