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