Beispiel #1
0
        public Field(FieldInfo fieldInfo)
        {
            name = fieldInfo.Name;
            type = TypeInfoDecoder.GetTypeModifiers(fieldInfo.GetType());

            // in case the type is Generic<T>
            if (fieldInfo.FieldType.IsGenericType)
            {
                type += fieldInfo.FieldType.Name + "<" +
                        GetGenericType(fieldInfo.FieldType.GenericTypeArguments) + ">";
            }
            else
            {
                type += fieldInfo.FieldType.Name;
            }
        }
Beispiel #2
0
 public Method(MethodInfo methodInfo)
 {
     signature = TypeInfoDecoder.GetTypeModifiers(methodInfo.GetType()) + methodInfo.ToString();
 }