Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MethodBody.cs « Reflection « System « src « System.Private.CoreLib « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b87558573a500a9692af2c48dfb80b2b9b6ec608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Collections.Generic;

namespace System.Reflection
{
    public class MethodBody
    {
        protected MethodBody() { }

        // Desktop compat: These default implementations behave strangely because this class was originally
        // creatable only from the native runtime, not through subclass inheritance.
        public virtual int LocalSignatureMetadataToken => 0;
        public virtual IList<LocalVariableInfo> LocalVariables { get { throw new ArgumentNullException("array"); } }
        public virtual int MaxStackSize => 0;
        public virtual bool InitLocals => false;
        public virtual byte[] GetILAsByteArray() => null;
        public virtual IList<ExceptionHandlingClause> ExceptionHandlingClauses { get { throw new ArgumentNullException("array"); } }
    }
}