MethodInjector.GetMethodAttributes C# (CSharp) 메소드

GetMethodAttributes() 정적인 개인적인 메소드

static private GetMethodAttributes ( TypeDefinition targetType ) : MethodAttributes,
targetType TypeDefinition
리턴 MethodAttributes,
    static MethodAttributes GetMethodAttributes(TypeDefinition targetType)
    {
        if (targetType.IsSealed)
        {
            return MethodAttributes.Public | MethodAttributes.HideBySig;
        }
        return MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.NewSlot;
    }