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