Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

MethodAttributes

Synopsis

These attributes can be placed on methods. The behavior of most of these is obvious and the same as for FieldAttributes. The others are used for specifying the structure of the object vTable.

public enum MethodAttributes {
   ReuseSlot = 0x00000000,
   PrivateScope = 0x00000000,
   Private = 0x00000001,
   FamANDAssem = 0x00000002,
   Assembly = 0x00000003,
   Family = 0x00000004,
   FamORAssem = 0x00000005,
   Public = 0x00000006,
   MemberAccessMask = 0x00000007,
   UnmanagedExport = 0x00000008,
   Static = 0x00000010,
   Final = 0x00000020,
   Virtual = 0x00000040,
   HideBySig = 0x00000080,
   NewSlot = 0x00000100,
   VtableLayoutMask = 0x00000100,
   CheckAccessOnOverride = 0x00000200,
   Abstract = 0x00000400,
   SpecialName = 0x00000800,
   RTSpecialName = 0x00001000,
   PinvokeImpl = 0x00002000,
   HasSecurity = 0x00004000,
   RequireSecObject = 0x00008000,
   ReservedMask = 0x0000D000
}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) MethodAttributes

Returned By

MethodBase.Attributes

Passed To

System.Reflection.Emit.ModuleBuilder.{DefineGlobalMethod( ), DefinePInvokeMethod( )}, System.Reflection.Emit.TypeBuilder.{DefineConstructor( ), DefineDefaultConstructor( ), DefineMethod( ), DefinePInvokeMethod( )}

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard

Publisher Resources

ISBN: 0596005261Catalog PageErrata