public override void WriteStartMember(XamlMember xamlMember) { source.Enqueue(new XamlNodeInfo(XamlNodeType.StartMember, new XamlNodeMember(default(XamlObject), xamlMember))); }
public XamlNodeMember(XamlObject owner, XamlMember member) { this.owner = owner; this.member = member; }
internal static ICustomAttributeProvider GetCustomAttributeProvider(this XamlMember member) { return(member.UnderlyingMember); }
internal static string GetInternalXmlName(this XamlMember xm) { return(xm.IsAttachable ? String.Concat(xm.DeclaringType.GetInternalXmlName(), ".", xm.Name) : xm.Name); }
internal static bool IsConstructorArgument(this XamlMember xm) { var ap = xm.GetCustomAttributeProvider(); return(ap != null && ap.GetCustomAttributes(typeof(ConstructorArgumentAttribute), false).Length > 0); }
public static string ConstructorArgumentName(this XamlMember xm) { var caa = xm.GetCustomAttributeProvider().GetCustomAttribute <ConstructorArgumentAttribute> (false); return(caa.ArgumentName); }