NSoft.NFramework.Tools.TypeTool.MakeGenericType C# (CSharp) Method

MakeGenericType() public static method

개방된 Generic 수형을 innerTypes 들로 Closed Generic 수형을 생성합니다.
public static MakeGenericType ( Type genericTypeDefinition ) : Type
genericTypeDefinition System.Type
return System.Type
        public static Type MakeGenericType(Type genericTypeDefinition, params Type[] innerTypes) {
            genericTypeDefinition.ShouldNotBeNull("genericTypeDefinition");
            innerTypes.ShouldNotBeEmpty("innerTypes");
            Guard.Assert(() => genericTypeDefinition.IsGenericTypeDefinition, @"Type [{0}] is not a generic type definition.",
                         genericTypeDefinition);

            return genericTypeDefinition.MakeGenericType(innerTypes);
        }