public static object MapProperty(object res, CultureInfo selection, Type temp) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (temp == typeof(object)) { return(res); } if (res == null && ResolverErrorFilter.VerifyReader(temp)) { return(null); } if (AddProperty(res, selection, temp, out object _0005)) { return(_0005); } return(InsertProperty(res, ResolverErrorFilter.CallIssuer(res), temp)); }
internal ProcTest(Type task) { //Discarded unreachable code: IL_0002, IL_0006 //IL_0003: Incompatible stack heights: 0 vs 1 //IL_0007: Incompatible stack heights: 0 vs 1 SingletonReader.PushGlobal(); base._002Ector(); ContextClientBridge.RunClient(task, "underlyingType"); _TestsProperty = task; task = ResolverErrorFilter.ValidateReader(task); recordProperty = ResolverErrorFilter.VerifyReader(task); _InstanceProperty = ((recordProperty && ResolverErrorFilter.PatchReader(task)) ? Nullable.GetUnderlyingType(task) : task); Type instanceProperty; _0002(instanceProperty = _InstanceProperty); m_IteratorProperty = instanceProperty; m_EventProperty = HelperDicCandidate.OrderProperty(_InstanceProperty); _FilterProperty = _InstanceProperty.LoginClient(); dicProperty = (Docking)0; }
public override object _0001(TagTestItem instance, Type pred, object res, PrototypeError reference2) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (instance._0001() == WatcherComposer.Null) { if (!ResolverErrorFilter.VerifyReader(pred)) { throw StrategyError.PatchComposer(instance, "Cannot convert null value to {0}.".ListReader(CultureInfo.InvariantCulture, pred)); } return(null); } byte[] array; if (instance._0001() == WatcherComposer.StartArray) { array = RegisterRequest(instance); } else { if (instance._0001() != WatcherComposer.String) { throw StrategyError.PatchComposer(instance, "Unexpected token parsing binary. Expected String or StartArray, got {0}.".ListReader(CultureInfo.InvariantCulture, instance._0001())); } array = Convert.FromBase64String(instance._0001().ToString()); } Type type = ResolverErrorFilter.PatchReader(pred) ? Nullable.GetUnderlyingType(pred) : pred; if (type.FullName == "System.Data.Linq.Binary") { ResetRequest(type); return(_InfoIssuer._0001()(new object[1] { array })); } if (type == typeof(SqlBinary)) { return(new SqlBinary(array)); } throw StrategyError.PatchComposer(instance, "Unexpected object type when writing binary: {0}".ListReader(CultureInfo.InvariantCulture, pred)); }
private static object InsertProperty(object param, Type result, Type tag) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (param != null) { Type type = param.GetType(); if (tag.IsAssignableFrom(type)) { return(param); } Func <object, object> func = m_StrategyComposer.InitReader(new GDBD.Workers.TemplateComposerWorker <Type, Type>(type, tag)); if (func != null) { return(func(param)); } } else if (ResolverErrorFilter.VerifyReader(tag)) { return(null); } throw new ArgumentException("Could not cast or convert from {0} to {1}.".SelectReader(CultureInfo.InvariantCulture, result?.ToString() ?? "{null}", tag)); }
private static ListViewColumns EnableProperty([_0008._0012(2)] object _0002, CultureInfo ivk, Type proc, [_0008._0012(2)] out object _0005) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 if (_0002 == null) { throw new ArgumentNullException("initialValue"); } if (ResolverErrorFilter.PatchReader(proc)) { proc = Nullable.GetUnderlyingType(proc); } Type type = _0002.GetType(); if (proc == type) { _0005 = _0002; return((ListViewColumns)0); } if (OrderProperty(_0002.GetType()) && OrderProperty(proc)) { if (proc.LoginClient()) { if (_0002 is string) { _0005 = Enum.Parse(proc, _0002.ToString(), ignoreCase: true); return((ListViewColumns)0); } if (CreateProperty(_0002)) { _0005 = Enum.ToObject(proc, _0002); return((ListViewColumns)0); } } _0005 = Convert.ChangeType(_0002, proc, ivk); return((ListViewColumns)0); } if (_0002 is DateTime) { DateTime dateTime = (DateTime)_0002; if (proc == typeof(DateTimeOffset)) { _0005 = new DateTimeOffset(dateTime); return((ListViewColumns)0); } } byte[] array = _0002 as byte[]; if (array != null && proc == typeof(Guid)) { _0005 = new Guid(array); return((ListViewColumns)0); } if (_0002 is Guid) { Guid guid = (Guid)_0002; if (proc == typeof(byte[])) { _0005 = guid.ToByteArray(); return((ListViewColumns)0); } } string text = _0002 as string; if (text != null) { if (proc == typeof(Guid)) { _0005 = new Guid(text); return((ListViewColumns)0); } if (proc == typeof(Uri)) { _0005 = new Uri(text, UriKind.RelativeOrAbsolute); return((ListViewColumns)0); } if (proc == typeof(TimeSpan)) { _0005 = ResolveProperty(text); return((ListViewColumns)0); } if (proc == typeof(byte[])) { _0005 = Convert.FromBase64String(text); return((ListViewColumns)0); } if (proc == typeof(Version)) { if (FlushProperty(text, out Version _0003)) { _0005 = _0003; return((ListViewColumns)0); } _0005 = null; return((ListViewColumns)3); } if (typeof(Type).IsAssignableFrom(proc)) { _0005 = Type.GetType(text, throwOnError: true); return((ListViewColumns)0); } } if (proc == typeof(BigInteger)) { _0005 = RunProperty(_0002); return((ListViewColumns)0); } if (_0002 is BigInteger) { BigInteger first = (BigInteger)_0002; _0005 = CompareProperty(first, proc); return((ListViewColumns)0); } TypeConverter converter = TypeDescriptor.GetConverter(type); if (converter != null && converter.CanConvertTo(proc)) { _0005 = converter.ConvertTo(null, ivk, _0002, proc); return((ListViewColumns)0); } TypeConverter converter2 = TypeDescriptor.GetConverter(proc); if (converter2 != null && converter2.CanConvertFrom(type)) { _0005 = converter2.ConvertFrom(null, ivk, _0002); return((ListViewColumns)0); } if (_0002 == DBNull.Value) { if (ResolverErrorFilter.VerifyReader(proc)) { _0005 = InsertProperty(null, type, proc); return((ListViewColumns)0); } _0005 = null; return((ListViewColumns)1); } if (proc.SortReader() || proc.PublishReader() || proc.VerifyClient()) { _0005 = null; return((ListViewColumns)2); } _0005 = null; return((ListViewColumns)3); }