11
Shouts

DimeCasts.Net Details for # 158 - Exploring Operator Overloading in C#

published 1227 days, 22 hours, 25 minutes ago posted by derikwhittakerderikwhittaker 1229 days, 22 hours, 7 minutes ago
Thursday, January 14, 2010 11:34:36 AM GMT Tuesday, January 12, 2010 11:52:15 AM GMT

Taking a look at how create overloaded operators for your objects.

Operator overloading permits user-defined operator implementations to be specified for operations where one or both of the operands are of a user-defined class or struct type. When creating your own operators there are many different operators which can be overloaded.

+, -, *, /, %, &, |, <<, >> All C# binary operators can be overloaded +, -, !, ~, ++, –, true, false All C# unary operators can be overloaded ==, !=, <, >, <= , >= All relational operators can be overloaded, but only as pairs.

category: Screencast | clicked: 0 | | source: www.dimecasts.net | show counter code
tags: Operator, C#, DimeCasts.net