예제 #1
0
파일: Method.cs 프로젝트: ChrisMissal/docu
 public static Method Unresolved(MethodIdentifier methodIdentifier, DeclaredType type, MethodInfo representedMethod, IReferencable returnType)
 {
     return new Method(methodIdentifier, type)
     {
         IsResolved = false,
         representedMethod = representedMethod,
         ReturnType = returnType
     };
 }
예제 #2
0
파일: Identifier.cs 프로젝트: wsky/docu
        public static MethodIdentifier FromMethod(MethodInfo method, Type type)
        {
            string name       = method.Name;
            var    parameters = new List <TypeIdentifier>();

            if (method.IsGenericMethod)
            {
                name += GENERIC_PARAMATER_PREFIX + method.GetGenericArguments().Length;
            }

            try {
                foreach (ParameterInfo param in method.GetParameters())
                {
                    parameters.Add(FromType(param.ParameterType));
                }
            } catch (IOException ex) {
                return(MethodIdentifier.FromException(name, FromType(type), ex));
            }

            return(new MethodIdentifier(name, parameters.ToArray(), method.IsStatic, method.IsPublic, FromType(type)));
        }
예제 #3
0
 public static Method Unresolved(MethodIdentifier methodIdentifier, DeclaredType type)
 {
     return new Method(methodIdentifier, type) { IsResolved = false };
 }
예제 #4
0
 public Method(MethodIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
     Returns = new Summary();
 }
예제 #5
0
파일: Method.cs 프로젝트: cdrnet/docu
 public static Method Unresolved(MethodIdentifier methodIdentifier, DeclaredType type, MethodBase declaration, IReferencable returnType)
 {
     return new Method(methodIdentifier, type)
         {
             IsResolved = false, declaration = declaration, ReturnType = returnType
         };
 }
예제 #6
0
파일: Method.cs 프로젝트: jcbozonier/docu
 public static Method Unresolved(MethodIdentifier methodIdentifier)
 {
     return new Method(methodIdentifier) { IsResolved = false };
 }
예제 #7
0
파일: Method.cs 프로젝트: jcbozonier/docu
 public Method(MethodIdentifier identifier)
     : base(identifier)
 {
     Summary = new List<IComment>();
 }