MethodInjector.GetMethodAttributes C# (CSharp) Method

GetMethodAttributes() static private method

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