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