Export (0) Print
Expand All

PropertyBuilder.AddOtherMethod Method

Adds one of the methods other than property accessors that can be associated with a property.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public void AddOtherMethod(
	MethodBuilder mdBuilder
)

Parameters

mdBuilder
Type: System.Reflection.Emit.MethodBuilder
A MethodBuilder object that represents the other method.

ExceptionCondition
ArgumentNullException

mdBuilder is null.

InvalidOperationException

CreateType has been called on the enclosing type.

For more information about the other methods that can be associated with a property, see the Common Language Infrastructure (CLI) documentation. The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft