O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic Operations

To finish off our overview of DynamicObject and DynamicMetaObject, let’s take a quick look at the various operations that can be specialized by overriding a method on those base classes. Some of those operations have a C# notation, whereas others exist in dynamic languages only:

Image Binary operations, such as mathematical logical operators and (in)equality operators. For example, a + b, a > b, a && b.

Image Unary operations, such as logical negation or complement or numeric minus or plus. For example, -a, !a.

Getting and setting members ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required