Method Definition

From Pigmeo Development Wiki

Jump to: navigation, search

This is the list of keywords available for method definitions.

Note: quoted text was taken from the ECMA-335 specs.

Contents

Labels

  • .custom
  • .data
  • .emitbyte (only for testing purposes)
  • .entrypoint
  • .locals - Local variables
  • .maxstack
  • .override
  • .param

Accesibility

  • assembly
  • compilercontrolled
  • famandassem
  • family
  • famorassem
  • private
  • public

"Only one of these attributes shall be applied to a given method"

Method contract

  • final
  • hidebysig
  • static
  • virtual
  • strict

Special handling

  • rtspecialname
  • specialname

Implementation

  • cil - "Specifies that the method body consists of CIL code. Unless the method is declared abstract, the body of

the method shall be provided if CIL is used"

  • forwardref
  • internalcall
  • managed
  • native
  • noinlining
  • runtime
  • synchronized
  • unmanaged

Other

  • newslot
  • abstract - "Specifies that an implementation of the method is not provided but shall be provided by a derived class"
  • pinvokeimpl

See also

Personal tools