Exemplo n.º 1
0
 public XamlDuplicateMemberException(XamlMember member, XamlType type)
     : this(String.Format("duplicate member '{0}' in type '{1}'", member, type))
 {
     DuplicateMember = member;
     ParentType      = type;
 }
Exemplo n.º 2
0
 protected internal XamlValueConverter <TConverterBase> GetValueConverter <TConverterBase> (Type converterType, XamlType targetType)
     where TConverterBase : class
 {
     return(new XamlValueConverter <TConverterBase> (converterType, targetType));
 }
Exemplo n.º 3
0
 public override void WriteStartObject(XamlType type)
 {
     source.Enqueue(new XamlNodeInfo(XamlNodeType.StartObject, new XamlObject(type, null)));
 }
Exemplo n.º 4
0
 public XamlObject(XamlType type, object instance)
     : this(type, new InstanceContext(instance))
 {
 }
Exemplo n.º 5
0
 public XamlObject(XamlType type, InstanceContext context)
 {
     this.type    = type;
     this.context = context;
 }
Exemplo n.º 6
0
 internal static ICustomAttributeProvider GetCustomAttributeProvider(this XamlType type)
 {
     return(type.UnderlyingType);
 }
Exemplo 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));
 }