X hits on this document

976 views

0 shares

0 downloads

0 comments

360 / 396

Appendix ‎A   Documentation comments

"P:Acme.Widget.Width" "P:Acme.Widget.Item(System.Int32)" "P:Acme.Widget.Item(System.String,System.Int32)"

Events.

namespace Acme { class Widget: IProcess { public event Del AnEvent; } }

"E:Acme.Widget.AnEvent"

Unary operators.

namespace Acme { class Widget: IProcess { public static Widget operator+(Widget x) {...} } }

"M:Acme.Widget.op_UnaryPlus(Acme.Widget)"

The complete set of unary operator function names used is as follows: op_UnaryPlus, op_UnaryNegation, op_LogicalNot, op_OnesComplement, op_Increment, op_Decrement, op_True, and op_False.

Binary operators.

namespace Acme { class Widget: IProcess { public static Widget operator+(Widget x1, Widget x2) {...} } }

"M:Acme.Widget.op_Addition(Acme.Widget,Acme.Widget)"

The complete set of binary operator function names used is as follows: op_Addition, op_Subtraction, op_Multiply, op_Division, op_Modulus, op_BitwiseAnd, op_BitwiseOr, op_ExclusiveOr, op_LeftShift, op_RightShift, op_Equality, op_Inequality, op_LessThan, op_LessThanOrEqual, op_GreaterThan, and op_GreaterThanOrEqual.

Conversion operators have a trailing “~” followed by the return type.

namespace Acme { class Widget: IProcess { public static explicit operator int(Widget x) {...} public static implicit operator long(Widget x) {...} } }

"M:Acme.Widget.op_Explicit(Acme.Widget)~System.Int32" "M:Acme.Widget.op_Implicit(Acme.Widget)~System.Int64"

Copyright Microsoft Corporation 1999-2003. All Rights Reserved.347

Document info
Document views976
Page views976
Page last viewedThu Dec 08 22:48:11 UTC 2016
Pages396
Paragraphs9401
Words133190

Comments