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);
 }
Example #3
0
 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();
 }
Example #5
0
 public override bool TryGetMember(string name, out IMemberWrapper memberWrapper)
 {
     memberWrapper = new AsObjectMemberWrapper(name);
     return(true);
 }
Example #6
0
 public override bool TryGetMember(string name, out IMemberWrapper member)
 {
     member = new AsObjectMemberWrapper(name);
     return true;
 }
Example #7
0
 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(); }
Example #10
0
 public override bool TryGetMember(string name, out IMemberWrapper memberWrapper)
 {
     return(MemberLookup.TryGetValue(name, out memberWrapper));
 }
Example #11
0
 public virtual bool TryGetMember(string name, out IMemberWrapper memberWrapper)
 {
     throw new NotImplementedException();
 }