Exploring Operator Overloading in C#(www.dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 1 month ago

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.

1 comment |category: |Views: 266

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:
information Login or create an account to comment on this story