Exemplo n.º 1
0
 private void AddField(MemberInfo member, DataType DataTypeItem)
 {
     if (!(member as FieldInfo).IsDefined(typeof(CompilerGeneratedAttribute)))
     {
         AssemblyDataMember field = new AssemblyDataMember();
         field.Note     = "f";
         field.Accessor = GetAccessor(member);
         field.Name     = (member as FieldInfo).Name;
         field.type     = (member as FieldInfo).FieldType;
         DataTypeItem.Members.Add(field);
     }
 }
Exemplo n.º 2
0
 private void AddProperty(MemberInfo member, DataType DataTypeItem)
 {
     if (!(member as PropertyInfo).IsDefined(typeof(CompilerGeneratedAttribute)))
     {
         AssemblyDataMember property = new AssemblyDataMember();
         property.Note     = "p";
         property.Accessor = GetAccessor(member);
         property.Name     = (member as PropertyInfo).Name;
         property.type     = (member as PropertyInfo).PropertyType;
         DataTypeItem.Members.Add(property);
     }
 }