示例#1
0
        protected override string GetFullName()
        {
            string result = "";

            AccessModifier = AccessModifiers.GetAccessModifiers(propertyInfo.PropertyType);
            result        += AccessModifier;

            DataAttribute = DataAttributes.GetDataAttributes(propertyInfo.PropertyType);
            result       += DataAttribute;

            result += TypeName.GetTypeName(propertyInfo.PropertyType);
            result += propertyInfo.Name + "{ ";

            if (propertyInfo.CanRead)
            {
                getAccessModifier = AccessModifiers.GetAccessModifiers(propertyInfo.GetMethod);
                result           += getAccessModifier + "get; ";
            }
            if (propertyInfo.CanWrite)
            {
                setAccessModifier = AccessModifiers.GetAccessModifiers(propertyInfo.SetMethod);
                result           += setAccessModifier + "set; ";
            }

            result += " }";
            return(result);
        }
示例#2
0
        protected override string GetFullName()
        {
            string result = "";

            AccessModifier = AccessModifiers.GetAccessModifiers(methodInfo);
            result        += AccessModifier;

            DataAttribute = DataAttributes.GetDataAttributes(methodInfo);
            result       += DataAttribute;

            result += TypeName.GetTypeName(methodInfo.ReturnType);

            result += methodInfo.Name;
            result += "( ";

            ParameterInfo[] parametrs = methodInfo.GetParameters();

            if (parametrs.Length != 0)
            {
                for (int i = 0; i < parametrs.Length; i++)
                {
                    if (i != 0)
                    {
                        result += ", ";
                    }
                    paramsType.Add(TypeName.GetTypeName(parametrs[i].ParameterType));
                    result += paramsType[i] + parametrs[i].Name;
                }
            }
            result += " )";

            return(result);
        }
示例#3
0
        protected override string GetFullName()
        {
            string result = "";

            AccessModifier = AccessModifiers.GetAccessModifiers(fieldInfo);
            result        += AccessModifier;
            DataAttribute  = DataAttributes.GetDataAttributes(fieldInfo.FieldType);
            result        += DataAttribute;

            result += TypeName.GetTypeName(fieldInfo.FieldType);
            result += fieldInfo.Name;

            return(result);
        }
示例#4
0
        private string GetFullName(Type type)
        {
            string result = "";

            AccessModifier = AccessModifiers.GetAccessModifiers(type);
            result        += AccessModifier;

            DataAttribute = DataAttributes.GetDataAttributes(type);
            result       += DataAttribute;

            _TypeOfDataType = TypeOfDataType.GetTypeOfDataType(type);
            result         += _TypeOfDataType;

            result += TypeName.GetTypeName(type);

            return(result);
        }