MethodBody.cs 793 B

1234567891011121314151617181920
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Collections.Generic;
  5. namespace System.Reflection
  6. {
  7. public class MethodBody
  8. {
  9. protected MethodBody() { }
  10. public virtual int LocalSignatureMetadataToken => 0;
  11. public virtual IList<LocalVariableInfo> LocalVariables => throw new ArgumentNullException("array");
  12. public virtual int MaxStackSize => 0;
  13. public virtual bool InitLocals => false;
  14. public virtual byte[] GetILAsByteArray() => null;
  15. public virtual IList<ExceptionHandlingClause> ExceptionHandlingClauses => throw new ArgumentNullException("array");
  16. }
  17. }