// 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? num2 = (val.UnknownProperty = unknownProperty.GetValueOrDefault()); int? num3 = num2; 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 val2 = (val.UnknownProperty = val.UnknownProperty); List list = new List { val[((object)val2).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 val3 = val[(UnknownEventArgs)null]; val[new UnknownEventArgs()] = val3; UnknownEventArgs val4 = val[new UnknownEventArgs(), new UnknownEventArgs()]; val[new UnknownEventArgs(), new UnknownEventArgs()] = val4; } public void MethodUnknownStatic() { int? num = (UnknownStaticClass.UnknownProperty = UnknownStaticClass.UnknownProperty); List list = new List { UnknownStaticClass[num.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 text = (UnknownStaticGenericClass.UnknownProperty = UnknownStaticGenericClass.UnknownProperty); List list = new List { UnknownStaticGenericClass[text.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; } public void MethodUnknownIndexerInitializer() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) new UnknownClass { ["a"] = 1, ["b"] = 2 }; } 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(); } } }