Esempio n. 1
0
        public override string GetFullName()
        {
            string result =
                DataAccessModificator.GetString(accessModificator) + " " +
                AssemblyDataType.GetTypeGenericName(fieldInfo.FieldType) + " " +
                name;

            return(result);
        }
Esempio n. 2
0
        public override string GetFullName()
        {
            string getString = PropertyType.GetGetString(getMethodAccessModificator);
            string setString = PropertyType.GetSetString(setMethodAccessModificator);

            return
                (AssemblyDataType.GetTypeGenericName(propertyInfo.PropertyType) + " " +
                 name + " { " +
                 (getString != "" ? getString + "; " : "") +
                 (setString != "" ? setString + "; }" : " }"));
        }
Esempio n. 3
0
        public override string GetFullName()
        {
            string paramsString = "(";

            foreach (var parameter in methodInfo.GetParameters())
            {
                if (paramsString != "(")
                {
                    paramsString += " ,";
                }
                paramsString +=
                    (parameter.IsOut ? "out " : parameter.IsIn ? "in " : parameter.ParameterType.IsByRef ? "ref " : "") +
                    AssemblyDataType.GetTypeGenericName(parameter.ParameterType) + " " + parameter.Name;
            }
            paramsString += ")";

            string typeAttributeString = DataAttribute.GetString(typeAttribute);

            return
                (DataAccessModificator.GetString(accessModificator) + " " +
                 (typeAttributeString != "" ? typeAttributeString + " " : "") +
                 AssemblyDataType.GetTypeGenericName(methodInfo.ReturnType) + " " +
                 name + paramsString);
        }