public BinaryServerFormatterSinkProvider(IDictionary properties, ICollection providerData) { this._includeVersioning = true; this._formatterSecurityLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Low; if (properties != null) { foreach (DictionaryEntry entry in properties) { string str2 = entry.Key.ToString(); if (str2 != null) { if (!(str2 == "includeVersions")) { if (str2 == "strictBinding") { goto Label_0089; } if (str2 == "typeFilterLevel") { goto Label_00A2; } } else { this._includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); } } continue; Label_0089: this._strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); continue; Label_00A2: this._formatterSecurityLevel = (System.Runtime.Serialization.Formatters.TypeFilterLevel) Enum.Parse(typeof(System.Runtime.Serialization.Formatters.TypeFilterLevel), (string) entry.Value); } } CoreChannel.VerifyNoProviderData(base.GetType().Name, providerData); }
public BinaryServerFormatterSinkProvider(IDictionary properties, ICollection providerData) { this._includeVersioning = true; this._formatterSecurityLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Low; if (properties != null) { foreach (DictionaryEntry entry in properties) { string str2 = entry.Key.ToString(); if (str2 != null) { if (!(str2 == "includeVersions")) { if (str2 == "strictBinding") { goto Label_0089; } if (str2 == "typeFilterLevel") { goto Label_00A2; } } else { this._includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); } } continue; Label_0089: this._strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); continue; Label_00A2: this._formatterSecurityLevel = (System.Runtime.Serialization.Formatters.TypeFilterLevel)Enum.Parse(typeof(System.Runtime.Serialization.Formatters.TypeFilterLevel), (string)entry.Value); } } CoreChannel.VerifyNoProviderData(base.GetType().Name, providerData); }
public BinaryServerFormatterSinkProvider() { this._includeVersioning = true; this._formatterSecurityLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Low; }