예제 #1
0
        public Field(FieldInfo fi)
        {
            name = fi.Name;
            type = AtributeBuilder.GetTypeModifiers(fi.GetType());

            if (fi.FieldType.IsGenericType)
            {
                type += fi.FieldType.Name + "<" +
                        GetGenericType(fi.FieldType.GenericTypeArguments) + ">";
            }
            else
            {
                type += fi.FieldType.Name;
            }
        }
예제 #2
0
 public Method(MethodInfo mi)
 {
     signature = AtributeBuilder.GetTypeModifiers(mi.GetType()) + mi.ToString();
 }