internal ClassDescription(string name, IMemberWrapper[] members, bool externalizable, bool dynamic) { this.Name = name; this.Members = members; this.IsExternalizable = externalizable; this.IsDynamic = dynamic; }
internal BasicObjectClassDescription(string name, IMemberWrapper[] members, bool externalizable, bool dynamic) : base(name, members, externalizable, dynamic) { this.MemberLookup = members .Select(x => x.SerializedName == null ? new { Name = x.Name, Member = x } : new { Name = x.SerializedName, Member = x }) .ToLookup(x => x.Name) .ToDictionary(x => x.Key, x => x.First().Member); }
public override bool TryGetMember(string name, out IMemberWrapper memberWrapper) { return MemberLookup.TryGetValue(name, out memberWrapper); }
public override bool TryGetMember(string name, out IMemberWrapper member) { throw new NotSupportedException(); }
public override bool TryGetMember(string name, out IMemberWrapper memberWrapper) { memberWrapper = new AsObjectMemberWrapper(name); return(true); }
public override bool TryGetMember(string name, out IMemberWrapper member) { member = new AsObjectMemberWrapper(name); return true; }
internal AsObjectClassDescription(string name, IMemberWrapper[] members, bool externalizable, bool dynamic) : base(name, members, externalizable, dynamic) { }
public override bool TryGetMember(string name, out IMemberWrapper memberWrapper) { throw new NotSupportedException(); }
public virtual bool TryGetMember(string name, out IMemberWrapper memberWrapper) { throw new NotImplementedException(); }
public override bool TryGetMember(string name, out IMemberWrapper memberWrapper) { return(MemberLookup.TryGetValue(name, out memberWrapper)); }