// ClassLibrary1.UnknownClassTest using System; using System.Collections.Generic; using UnknownNamespace; namespace ClassLibrary1 { public class UnknownClassTest : EventArgs { public void MethodUnknownClass() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown UnknownClass val = new UnknownClass(); int? unknownProperty = val.UnknownProperty; int? num = unknownProperty.GetValueOrDefault(); val.UnknownProperty = num; int? num2 = num; List list = new List { val[unknownProperty.Value] ?? "", val.NotProperty, val.get_NotPropertyWithGeneric(42), val[42], val.get_NotPropertyWithParameterAndGeneric(int.MinValue), val.get_PropertyCalledGet, val.set_HasReturnType(), val.set_HasReturnType("") }; val.get_NoReturnType(); val.set_NoValue(); val.OnEvent += Instance_OnEvent; val.OnEvent -= Instance_OnEvent; string text = val[(long?)null]; val[(long?)long.MaxValue] = text; IntPtr intPtr = val[UIntPtr.Zero, "Hello"]; val[(UIntPtr)32uL, "World"] = intPtr; } public void MethodUnknownGenericClass() { //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Expected O, but got Unknown //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_00cd: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Expected O, but got Unknown //IL_00e1: Expected O, but got Unknown UnknownGenericClass val = new UnknownGenericClass(); UnknownEventArgs unknownProperty = val.UnknownProperty; val.UnknownProperty = unknownProperty; List list = new List { val[((object)unknownProperty).GetHashCode()] ?? "", val.NotProperty, val.get_NotPropertyWithGeneric(42), val[42], val.get_NotPropertyWithParameterAndGeneric(int.MinValue), val.get_PropertyCalledGet }; val.OnEvent += Instance_OnEvent; val.OnEvent -= Instance_OnEvent; UnknownEventArgs val2 = val[(UnknownEventArgs)null]; val[new UnknownEventArgs()] = val2; UnknownEventArgs val3 = val[new UnknownEventArgs(), new UnknownEventArgs()]; val[new UnknownEventArgs(), new UnknownEventArgs()] = val3; } public void MethodUnknownStatic() { int? unknownProperty = UnknownStaticClass.UnknownProperty; UnknownStaticClass.UnknownProperty = unknownProperty; List list = new List { UnknownStaticClass[unknownProperty.Value] ?? "", UnknownStaticClass.NotProperty, UnknownStaticClass.get_NotPropertyWithGeneric(42), UnknownStaticClass[42], UnknownStaticClass.get_NotPropertyWithParameterAndGeneric(int.MinValue), UnknownStaticClass.get_PropertyCalledGet }; UnknownStaticClass.OnEvent += Instance_OnEvent; UnknownStaticClass.OnEvent -= Instance_OnEvent; } public void MethodUnknownStaticGeneric() { string unknownProperty = UnknownStaticGenericClass.UnknownProperty; UnknownStaticGenericClass.UnknownProperty = unknownProperty; List list = new List { UnknownStaticGenericClass[unknownProperty.Length] ?? "", UnknownStaticGenericClass.NotProperty, UnknownStaticGenericClass.get_NotPropertyWithGeneric(42), UnknownStaticGenericClass[42], UnknownStaticGenericClass.get_NotPropertyWithParameterAndGeneric(int.MinValue), UnknownStaticGenericClass.get_PropertyCalledGet }; UnknownStaticGenericClass.OnEvent += Instance_OnEvent; UnknownStaticGenericClass.OnEvent -= Instance_OnEvent; } private void Instance_OnEvent(object sender, EventArgs e) { throw new NotImplementedException(); } private void Instance_OnEvent(object sender, UnknownEventArgs e) { throw new NotImplementedException(); } private void Instance_OnEvent(object sender, string e) { throw new NotImplementedException(); } private static void Instance_OnEvent(object sender, object e) { throw new NotImplementedException(); } } }