ruby: handle singleton method including ?!= in its name(sf.bug:364)
[geany-mirror.git] / tests / ctags / keyword_explicit.cs
blob210371e60422434bebbe532fa2aebda224f957a1
1 // cs_keyword_explicit.cs
2 using System;
3 struct Digit
5 byte value;
6 public Digit(byte value)
8 if (value<0 || value>9) throw new ArgumentException();
9 this.value = value;
12 // define explicit byte-to-Digit conversion operator:
13 public static explicit operator Digit(byte b)
15 Console.WriteLine("conversion occurred");
16 return new Digit(b);
20 class Test
22 public static void Main()
24 byte b = 3;
25 Digit d = (Digit)b; // explicit conversion