Example #1
0
		public MessageMemberInfo(MemberInfo memberInfo, TypeRegistry typeRegistry)
		{
			this.order = PropertyOrderAttribute.Get(memberInfo);
			this.name = PropertyNameAttribute.Get(memberInfo);
			this.nameHash = Hash.Eval(this.name);
			this.propertyType = PropertyTypeAttribute.Get(memberInfo, typeRegistry);

			this.serializer = typeRegistry.ResolveSerializer(this.propertyType);
		}
Example #2
0
		public MessageMemberInfo(ParameterInfo par, TypeRegistry typeRegistry)
		{
			this.memberInfo = par;
			this.type = par.ParameterType;

			this.order = PropertyOrderAttribute.Get(par);
			this.name = PropertyNameAttribute.Get(par);
			this.nameHash = Hash.Eval(this.name);
			this.propertyType = PropertyTypeAttribute.Get(par, typeRegistry);
			this.serializer = typeRegistry.ResolveSerializer(this.propertyType);
		}