public XamlDomObject(bool isGetObject, params XamlDomMember[] members) { foreach (var memberNode in members) { MemberNodes.Add(memberNode); } _isGetObject = isGetObject; }
public XamlDomObject(Type type, params XamlDomMember[] members) { foreach (var memberNode in members) { MemberNodes.Add(memberNode); } _unresolvedType = type; }
public XamlDomObject(Type type, XamlSchemaContext schemaContext, params XamlDomMember[] members) : this(type, schemaContext) { foreach (var memberNode in members) { MemberNodes.Add(memberNode); } Resolve(); }
public XamlDomObject(XamlType xamlType, params XamlDomMember[] members) : this(xamlType) { foreach (var memberNode in members) { MemberNodes.Add(memberNode); } // We can't rely on setting the SchemaContext to force a resolve since we haven't assigned // the members yet. Therefore, we need to resolve here. Resolve(); }
public virtual void SetMemberValue(XamlMember xamlMember, object value) { if (xamlMember == null) { throw new ArgumentNullException("xamlMember"); } var node = GetMemberNode(xamlMember); if (node == null) { node = new XamlDomMember(xamlMember); MemberNodes.Add(node); } node.Item = new XamlDomValue(value); }