Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. C# adding implict conversions to existing types
  2. public static Bar.Vector3 ToBarVector3(this Foo.Vector3 foo) {
  3.     return /* instance of Bar.Vector3 */
  4. }
  5.  
  6. public static Foo.Vector3 ToFooVector3(this Bar.Vector3 bar) {
  7.     return /* instance of Foo.Vector3 */
  8. }