public static object CallList(string key) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 object ppvResult = null; IBindCtx selection = null; IMoniker res = null; int third = 0; if (AdvisorRequestStrategy.ExcludeInstance(0, out selection) == 0) { if (AdvisorRequestStrategy.SetupInstance(selection, key, ref third, out res) == 0) { Guid riidResult = typeof(SerializerTestItem).GUID; res.BindToObject(null, null, ref riidResult, out ppvResult); Marshal.ReleaseComObject(res); } Marshal.ReleaseComObject(selection); } return(ppvResult); }
private string RevertList(string reference) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 IBindCtx selection = null; IMoniker res = null; string result = ""; int third = 0; if (AdvisorRequestStrategy.ExcludeInstance(0, out selection) == 0) { if (AdvisorRequestStrategy.SetupInstance(selection, reference, ref third, out res) == 0) { result = WriteList(res); Marshal.ReleaseComObject(res); res = null; } Marshal.ReleaseComObject(selection); selection = null; } return(result); }