imenu-method-test.cs (860B)
1 using System; 2 3 4 /// <summary> 5 /// This class is used to test implementation of method-indexing. 6 /// </summary> 7 public class MethodTest 8 { 9 [DllImport("user32.dll")] 10 public extern int GetTickCount64(); 11 12 public async string OpenWebServiceAsync(string url) 13 { 14 await foo; 15 } 16 17 // Failing test: methods with new-modifier 18 // public new string ShouldStillBeMethod() 19 public string ToString() 20 { 21 22 } 23 24 public virtual override bool Equals(object other) 25 { 26 27 } 28 29 public T GenericMethod1<T>(T instance, string item) 30 { 31 32 } 33 34 public T1 GenericMethod2<T1,T2>(T1 instance, T2 item) 35 { 36 37 } 38 39 private Dictionary<string,Func<int, bool>> NestedGeneric() 40 { 41 42 } 43 44 public abstract string AbstractMethod(); 45 46 public unsafe static void UnsafeCopy(byte[] src, byte[] dst, int count) 47 { 48 49 } 50 51 }