protected XmlException(SerializationInfo info, StreamingContext context) : base(info, context) { res = (string) info.GetValue("res" , typeof(string)); args = (string[])info.GetValue("args", typeof(string[])); lineNumber = (int) info.GetValue("lineNumber", typeof(int)); linePosition = (int) info.GetValue("linePosition", typeof(int)); // deserialize optional members sourceUri = string.Empty; string version = null; foreach ( SerializationEntry e in info ) { switch ( e.Name ) { case "sourceUri": sourceUri = (string)e.Value; break; case "version": version = (string)e.Value; break; } } if ( version == null ) { // deserializing V1 exception message = CreateMessage( res, args, lineNumber, linePosition ); } else { // deserializing V2 or higher exception -> exception message is serialized by the base class (Exception._message) message = null; } }
protected override void Deserialize (SerializationInfo info, StreamingContext context) { text = (string) info.GetValue ("AssemblyName", typeof (AssemblyName)); base.Filter = (ICollection)info.GetValue ("Filter", typeof (ICollection)); base.DisplayName = info.GetString ("DisplayName"); if (info.GetBoolean ("Locked")) base.Lock (); }
/// <exclude/> public Lookup(SerializationInfo serializationInfo, StreamingContext streamingContext) { int version = 0; if (SerializationVersionExists) { try { version = serializationInfo.GetInt32("SerializationVersion"); } catch (SerializationException) { // ignore SerializationVersionExists = false; } } _alias = serializationInfo.GetString("Alias"); _aliasPlural = serializationInfo.GetString("AliasPlural"); _enabled = serializationInfo.GetBoolean("Enabled"); _isUserDefined = serializationInfo.GetBoolean("IsUserDefined"); _name = serializationInfo.GetString("Name"); _userOptions = (List<IUserOption>)serializationInfo.GetValue("UserOptions", ModelTypes.UserOptionList); _description = serializationInfo.GetString("Description"); _backingObject = (ScriptObject)serializationInfo.GetValue("BackingObject", ModelTypes.ScriptObject); _idColumn = (Column)serializationInfo.GetValue("IdColumn", ModelTypes.Column); _nameColumn = (Column)serializationInfo.GetValue("NameColumn", ModelTypes.Column); _LookupValues = (List<LookupValue>)serializationInfo.GetValue("LookupValues", ModelTypes.LookupValueList); }
protected TimeOfDayChangedAction(SerializationInfo info, StreamingContext context) : base(info, context) { v3dLayer = EditorManager.Project.Scene.MainLayer as V3DLayer; oldConfig = (TimeOfDay)info.GetValue("oldConfig", typeof(TimeOfDay)); newConfig = (TimeOfDay)info.GetValue("newConfig", typeof(TimeOfDay)); }
public Tile(SerializationInfo info, StreamingContext ctx) : base(info, ctx) { m_strName = null; try { m_strName = info.GetString("Name"); } catch { m_strName = info.GetInt32("Cookie").ToString(); } m_afVisible = (bool[,])info.GetValue("Visibility", typeof(bool[,])); try { m_afOccupancy = (bool[,])info.GetValue("Occupancy", typeof(bool[,])); } catch { TemplateDoc tmpd = (TemplateDoc)DocManager.GetActiveDocument(typeof(TemplateDoc)); Template tmpl = tmpd.FindTemplate(m_strName); if (tmpl != null) { m_afOccupancy = tmpl.OccupancyMap; } else { m_afOccupancy = new bool[1, 1]; } } InitCommon(); }
protected DomainRelationshipSerializationInfo(System.Runtime.Serialization.SerializationInfo info, StreamingContext context) { childrenOrder = (System.Collections.ArrayList)info.GetValue("childrenOrder", typeof(System.Collections.ArrayList)); attributesOrder = (System.Collections.ArrayList)info.GetValue("attributesOrder", typeof(System.Collections.ArrayList)); this.IsInFullSerialization = (bool)info.GetValue("isInFullSerialization", typeof(bool)); this.IsTargetIncludedSubmodel = (bool)info.GetValue("isTargetIncludedSubmodel", typeof(bool)); }
protected PasswdBase(SerializationInfo info, StreamingContext context) { this.VersionHash = info.GetString ("Version"); this.Password = (byte[])info.GetValue ("Password", typeof(byte[])); Type type = (Type)info.GetValue ("ExtraType", typeof(Type)); this.ExtraInfo = info.GetValue ("Extra", type); }
public ReElement(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _Value = info.GetString("_Value"); } catch { _Value = string.Empty; } try { _Frequence = info.GetInt32("_Frequence"); } catch { _Frequence = 0; } try { _FilterType = (Webb.Data.FilterTypes)info.GetValue("_FilterType", typeof(Webb.Data.FilterTypes)); } catch { _FilterType = FilterTypes.NumGreaterOrEqual; } try { _FollowedOperand = (Webb.Data.FilterOperands)info.GetValue("_FollowedOperand", typeof(Webb.Data.FilterOperands)); } catch { _FollowedOperand = FilterOperands.Or; } }
// The special constructor is used to deserialize values. public Vector(SerializationInfo info, StreamingContext context) { label = (double)info.GetValue("label", typeof(double)); valuesMDF = (ILArray<double>)info.GetValue("valuesMDF", typeof(ILArray<double>)); values = (ILArray<double>)info.GetValue("values", typeof(ILArray<double>)); id = (int)info.GetValue("id", typeof(int)); }
/// <summary> /// ISerializable private constructor. /// </summary> /// <param name="s"> SerializationInfo. </param> /// <param name="context"> The StreamingContext.</param> private UnitTestItem(SerializationInfo s, StreamingContext context) { this.Form = (HtmlFormTag)s.GetValue("Form", typeof(HtmlFormTag)); this.PostData = (Hashtable)s.GetValue("PostData",typeof(Hashtable)); this.Tests = (TestCollection)s.GetValue("Tests", typeof(TestCollection)); this.SelectedTestIndex = s.GetInt32("SelectedTestIndex"); }
public Variant(SerializationInfo info, StreamingContext context) { ValueType = (VariantType)info.GetByte("ValueType"); switch (ValueType) { case VariantType.Map: case VariantType.TypedMap: Value = info.GetValue("Value", typeof (VariantMap)); break; case VariantType.ByteArray: Value = info.GetValue("Value", typeof (byte[])); break; case VariantType.Date: case VariantType.Time: case VariantType.Timestamp: Value = info.GetValue("Value", typeof (DateTime)); break; case VariantType.Null: case VariantType.Undefined: Value = null; break; default: Value = info.GetValue("Value",typeof(object)); break; } }
private Font (SerializationInfo info, StreamingContext context) : this( info.GetString("Name"), info.GetSingle("Size"), (FontStyle)info.GetValue("Style", typeof(FontStyle)), (GraphicsUnit)info.GetValue("Unit", typeof(GraphicsUnit)) ) { }
//Deserializer public User(SerializationInfo info, StreamingContext ctxt) { ringsInfo = (RingInfo[])info.GetValue("ringsInfo", typeof(RingInfo[])); publicUserInfo = (PublicUserInfo)info.GetValue("publicUserInfo", typeof(PublicUserInfo)); privateUserInfo = (PrivateUserInfo)info.GetValue("privateUserInfo", typeof(PrivateUserInfo)); node = (Node)info.GetValue("node", typeof(Node)); }
/// <summary> /// Deserialization constructor. /// </summary> public LiveDemoSource(SerializationInfo info, StreamingContext context) : base(info, context) { _sessionInformation = (RuntimeDataSessionInformation)info.GetValue("sessionInformation", typeof(RuntimeDataSessionInformation)); _dataStub = (DataSourceStub)info.GetValue("dataStub", typeof(DataSourceStub)); Construct(); }
public MaskingBehaviourPropertyBag(SerializationInfo info, StreamingContext context) { this.MaskingChar = (string)info.GetValue(ControlLibConstants.MASKING_CHAR, typeof(string)); this.MaskingType = (MaskingType)info.GetValue(ControlLibConstants.MASKING_TYPE, typeof(MaskingType)); this.MaskCharLength = (int)info.GetValue(ControlLibConstants.MASKING_CHAR_LENGTH, typeof(int)); this.MaskingPosition = (MaskingPosition)info.GetValue(ControlLibConstants.MASKING_POSITION, typeof(MaskingPosition)); }
public static void Deserialize(this IShape shape, SerializationInfo serializationInfo) { shape.Pen = serializationInfo.GetPen("Pen"); shape.Brush = serializationInfo.GetBrush("Brush"); shape.Start = serializationInfo.GetValue<Point>("Start"); shape.End = serializationInfo.GetValue<Point>("End"); }
public GameObject(SerializationInfo info, StreamingContext cntxt) { SlatedToRemove = (bool) info.GetValue("GameObject_SlatedToRemove", typeof(bool)); bounds = (Bounds) info.GetValue("GameObject_Bounds", typeof(Bounds)); sprite = GameScreen.sprEntities[(EntitySpriteId) info.GetValue("GameObject_EntitySpriteId", typeof(EntitySpriteId))].Clone(); isOnFloor = (bool) info.GetValue("GameObject_IsOnFloor", typeof(bool)); }
protected XsltException(SerializationInfo info, StreamingContext context) : base(info, context) { this.res = (string) info.GetValue("res", typeof(string)); this.args = (string[]) info.GetValue("args", typeof(string[])); this.sourceUri = (string) info.GetValue("sourceUri", typeof(string)); this.lineNumber = (int) info.GetValue("lineNumber", typeof(int)); this.linePosition = (int) info.GetValue("linePosition", typeof(int)); string str = null; SerializationInfoEnumerator enumerator = info.GetEnumerator(); while (enumerator.MoveNext()) { SerializationEntry current = enumerator.Current; if (current.Name == "version") { str = (string) current.Value; } } if (str == null) { this.message = CreateMessage(this.res, this.args, this.sourceUri, this.lineNumber, this.linePosition); } else { this.message = null; } }
public WavFile(SerializationInfo info, StreamingContext ctxt) { base.Construct(info, ctxt); Filename = (string)info.GetValue("Filename", typeof(string)); Channels = (int)info.GetValue("Channels", typeof(int)); BitRate = (int)info.GetValue("BitRate", typeof(int)); }
public Car(SerializationInfo info, StreamingContext ctxt) { this.make = (string)info.GetValue("Make", typeof(string)); this.model = (string)info.GetValue("Model", typeof(string)); this.year = (int)info.GetValue("Year", typeof(int)); this.owner = (Owner)info.GetValue("Owner", typeof(Owner)); }
public Consumable(SerializationInfo info, StreamingContext ctxt) : base(info, ctxt) { this.consumabletype = (ConsumableType)info.GetValue("consumabletype", typeof(int)); this.effectiveness = (int)info.GetValue("effectiveness", typeof(int)); this.count = (int)info.GetValue("count", typeof(int)); }
private VideoFile(SerializationInfo info, DeserializeInfo di) : this(di.Server, di.Info, di.Type) { actors = info.GetValue("a", typeof(string[])) as string[]; description = info.GetString("de"); director = info.GetString("di"); genre = info.GetString("g"); title = info.GetString("t"); try { width = info.GetInt32("w"); height = info.GetInt32("h"); } catch (Exception) { } var ts = info.GetInt64("du"); if (ts > 0) { duration = new TimeSpan(ts); } try { bookmark = info.GetInt64("b"); } catch (Exception) { bookmark = 0; } try { subTitle = info.GetValue("st", typeof(Subtitle)) as Subtitle; } catch (Exception) { subTitle = null; } initialized = true; }
protected DogApiErrorException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { HttpStatusCode = (System.Net.HttpStatusCode)info.GetValue(nameof(HttpStatusCode), typeof(System.Net.HttpStatusCode)); ErrorMessages = (string[])info.GetValue(nameof(ErrorMessages), typeof(string[])); }
/// <summary> /// Initializes a new instance of the <see cref="SerializableFileRequestOptions"/> class. /// </summary> /// <param name="info">Serialization information.</param> /// <param name="context">Streaming context.</param> private SerializableFileRequestOptions(SerializationInfo info, StreamingContext context) : base(info, context) { bool? disableContentMD5Validation = (bool?)info.GetValue(DisableContentMD5ValidationName, typeof(bool?)); TimeSpan? maximumExecutionTime = (TimeSpan?)info.GetValue(MaximumExecutionTimeName, typeof(TimeSpan?)); TimeSpan? serverTimeout = (TimeSpan?)info.GetValue(ServerTimeoutName, typeof(TimeSpan?)); bool? storeFileContentMD5 = (bool?)info.GetValue(StoreFileContentMD5Name, typeof(bool?)); bool? useTransactionalMD5 = (bool?)info.GetValue(UseTransactionalMD5Name, typeof(bool?)); if (null != disableContentMD5Validation || null != maximumExecutionTime || null != serverTimeout || null != storeFileContentMD5 || null != useTransactionalMD5) { this.fileRequestOptions = Transfer_RequestOptions.DefaultFileRequestOptions; this.fileRequestOptions.DisableContentMD5Validation = disableContentMD5Validation; this.fileRequestOptions.MaximumExecutionTime = maximumExecutionTime; this.fileRequestOptions.ServerTimeout = serverTimeout; this.fileRequestOptions.StoreFileContentMD5 = storeFileContentMD5; this.fileRequestOptions.UseTransactionalMD5 = useTransactionalMD5; } else { this.fileRequestOptions = null; } }
public APIError(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { Error = (string)info.GetValue("error", typeof(string)); HttpStatusCode = (int)info.GetValue("@http_status_code", typeof(int)); Warnings = (List <string>)info.GetValue("warnings", typeof(List <string>)); }
// Constructor called by serialization. internal CodePageEncoding(SerializationInfo info, StreamingContext context) { // Any info? if (info==null) throw new ArgumentNullException(nameof(info)); Contract.EndContractBlock(); // All versions have a code page this.m_codePage = (int)info.GetValue("m_codePage", typeof(int)); // See if we have a code page try { // // Try Whidbey V2.0 Fields // this.m_isReadOnly = (bool)info.GetValue("m_isReadOnly", typeof(bool)); this.encoderFallback = (EncoderFallback)info.GetValue("encoderFallback", typeof(EncoderFallback)); this.decoderFallback = (DecoderFallback)info.GetValue("decoderFallback", typeof(DecoderFallback)); } catch (SerializationException) { // // Didn't have Whidbey things, must be Everett // this.m_deserializedFromEverett = true; // May as well be read only this.m_isReadOnly = true; } }
protected WebProxy(SerializationInfo serializationInfo, StreamingContext streamingContext) { bool boolean = false; try { boolean = serializationInfo.GetBoolean("_UseRegistry"); } catch { } if (boolean) { ExceptionHelper.WebPermissionUnrestricted.Demand(); this.UnsafeUpdateFromRegistry(); } else { this._ProxyAddress = (Uri) serializationInfo.GetValue("_ProxyAddress", typeof(Uri)); this._BypassOnLocal = serializationInfo.GetBoolean("_BypassOnLocal"); this._BypassList = (ArrayList) serializationInfo.GetValue("_BypassList", typeof(ArrayList)); try { this.UseDefaultCredentials = serializationInfo.GetBoolean("_UseDefaultCredentials"); } catch { } } }
/// <summary> /// Creates a new <see cref="PhasorDefinitionBase"/> from serialization parameters. /// </summary> /// <param name="info">The <see cref="SerializationInfo"/> with populated with data.</param> /// <param name="context">The source <see cref="StreamingContext"/> for this deserialization.</param> protected PhasorDefinitionBase(SerializationInfo info, StreamingContext context) : base(info, context) { // Deserialize phasor definition m_type = (PhasorType)info.GetValue("type", typeof(PhasorType)); m_voltageReference = (IPhasorDefinition)info.GetValue("voltageReference", typeof(IPhasorDefinition)); }
protected EntityData(SerializationInfo info, StreamingContext context) { Name = info.GetString("Name"); Flags = info.GetInt32("Flags"); Properties = ((Property[]) info.GetValue("Properties", typeof (Property[]))).ToList(); Outputs = ((Output[]) info.GetValue("Outputs", typeof (Output[]))).ToList(); }
public object SetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.ISurrogateSelector selector) { FieldInfo[] fieldInfos = obj.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (var fi in fieldInfos) { if (IsKnownType(fi.FieldType)) { if (IsNullableType(fi.FieldType)) { // Nullable<argumentValue> Type argumentValueForTheNullableType = GetFirstArgumentOfGenericType(fi.FieldType); fi.SetValue(obj, info.GetValue(fi.Name, argumentValueForTheNullableType)); } else { fi.SetValue(obj, info.GetValue(fi.Name, fi.FieldType)); } } else if (fi.FieldType.IsClass) { fi.SetValue(obj, info.GetValue(fi.Name, fi.FieldType)); } } return(obj); }
private ProxyGenerationOptions(SerializationInfo info, StreamingContext context) { Hook = (IProxyGenerationHook)info.GetValue("hook", typeof(IProxyGenerationHook)); Selector = (IInterceptorSelector)info.GetValue("selector", typeof(IInterceptorSelector)); mixins = (List<object>)info.GetValue("mixins", typeof(List<object>)); BaseTypeForInterfaceProxy = Type.GetType(info.GetString("baseTypeForInterfaceProxy.AssemblyQualifiedName")); }
protected AuthorizingException(SerializationInfo info, StreamingContext context) : base(info, context) { _Message = info.GetValue("_Message", typeof(string)) as string; Subject = info.GetValue("Subject", typeof(ISubject)) as ISubject; Actions = info.GetValue("Actions", typeof(IAction[])) as IAction[]; }
/// <summary> /// Serialization constructor required for <see cref="ISerializable"/>; reads connection data from <paramref name="info"/>. /// </summary> /// <param name="info">Serialization store that we are going to read our data from.</param> /// <param name="context">Streaming context to use during the deserialization process.</param> protected RdpConnection(SerializationInfo info, StreamingContext context) : base(info, context) { Animations = info.GetBoolean("Animations"); AudioMode = info.GetValue<AudioMode>("AudioMode"); ColorDepth = info.GetInt32("ColorDepth"); ConnectClipboard = info.GetBoolean("ConnectClipboard"); ConnectDrives = info.GetBoolean("ConnectDrives"); ConnectPrinters = info.GetBoolean("ConnectPrinters"); DesktopBackground = info.GetBoolean("DesktopBackground"); DesktopComposition = info.GetBoolean("DesktopComposition"); DesktopHeight = info.GetInt32("DesktopHeight"); DesktopWidth = info.GetInt32("DesktopWidth"); FontSmoothing = info.GetBoolean("FontSmoothing"); KeyboardMode = info.GetValue<KeyboardMode>("KeyboardMode"); PersistentBitmapCaching = info.GetBoolean("PersistentBitmapCaching"); RecordingMode = info.GetValue<RecordingMode>("RecordingMode"); VisualStyles = info.GetBoolean("VisualStyles"); WindowContentsWhileDragging = info.GetBoolean("WindowContentsWhileDragging"); ConnectToAdminChannel = info.GetBoolean("ConnectToAdminChannel"); UseTSProxy = info.GetBoolean("UseTSProxy"); ProxyName = info.GetString("ProxyName"); ProxyUserName = info.GetString("ProxyUserName"); string encryptedProxyPassword = info.GetString("ProxyPassword"); if (!String.IsNullOrEmpty(encryptedProxyPassword)) { EncryptedPassword = encryptedProxyPassword; } }
public TablixRow(SerializationInfo si, StreamingContext sc) { TablixCells = si.GetValue("TablixCells", typeof (TablixCells)) as TablixCells; Name = si.GetValue("Name", typeof (String)) as String; Style = si.GetValue("Style", typeof (String)) as String; Tag = si.GetValue("Tag", typeof (String)) as String; }
/// <summary> /// Prevents a default instance of the <see cref="TrafficMonitor"/> class from being created. /// </summary> /// <param name="info">The serialization info used for serializing.</param> /// <param name="context">The streaming context used for serializing.</param> private TrafficMonitor(SerializationInfo info, StreamingContext context) { this.Intersections = (IList<BaseIntersection>) info.GetValue("MyIntersections", typeof(IList<BaseIntersection>)); this.neighborsDictionary = (IDictionary<int, List<int>>) info.GetValue("Dictionary", typeof(IDictionary<int, List<int>>)); }
/// <summary> /// Initializes a new instance of the Exception class with serialized data. /// </summary> /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> protected IS24Exception( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { Messages = (Messages)info.GetValue("Messages", typeof(Messages)); StatusCode = (HttpStatusCode)info.GetValue("StatusCode", typeof(HttpStatusCode)); }
public object SetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.ISurrogateSelector selector) { Vector3 v3 = (Vector3)obj; v3.x = (float)info.GetValue("x", typeof(float)); v3.y = (float)info.GetValue("y", typeof(float)); v3.z = (float)info.GetValue("z", typeof(float)); return((object)v3); }
protected BaseVBAScriptTask(System.Runtime.Serialization.SerializationInfo s, System.Runtime.Serialization.StreamingContext c) { m_runningtime = s.GetInt32("RunningTime"); m_errortime = s.GetInt32("ErrorTime"); m_domainGUID = s.GetString("DomainGUID"); m_taskchainGUID = s.GetString("TaskChainGUID"); m_timestamp = (DateTime)s.GetValue("TimeStamp", m_timestamp.GetType()); m_taskstatus = (TaskStatus)s.GetValue("Status", m_taskstatus.GetType()); m_vbaobjs = (Dictionary <string, IVBAObject>)s.GetValue("VBAObjects", m_vbaobjs.GetType()); }
public TableExpression(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _SQLStatement = info.GetString("_SQLStatement"); } catch { _SQLStatement = string.Empty; } try { _TableName = info.GetString("_TableName"); } catch { _TableName = string.Empty; } try { _SourceTables = (System.Collections.ArrayList)info.GetValue("_SourceTables", typeof(System.Collections.ArrayList)); } catch { } try { _Fields = (System.Collections.ArrayList)info.GetValue("_Fields", typeof(System.Collections.ArrayList)); } catch { } try { _Relations = (Webb.Data.DBFilter)info.GetValue("_Relations", typeof(Webb.Data.DBFilter)); } catch { } try { _IsExpression = info.GetBoolean("_IsExpression"); } catch { _IsExpression = false; } }
public HorizontalGridColumn(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _Filter = info.GetValue("_Filter", typeof(DBFilter)) as DBFilter; this._Filter = AdvFilterConvertor.GetAdvFilter(DataProvider.VideoPlayBackManager.AdvReportFilters, this._Filter); } catch { _Filter = new DBFilter(); } try { _TitleField = info.GetString("_TitleField"); } catch { _TitleField = string.Empty; } try { _Title = info.GetString("_Title"); } catch { _Title = string.Empty; } _RowIndicator = -1; }
protected BuildUsageTagSet(System.Runtime.Serialization.SerializationInfo info, StreamingContext context) { this.m_Ptr = BuildUsageTagSet.Internal_Create(); string data = (string)info.GetValue("tags", typeof(string)); this.DeserializeNativeFromString(data); }
/// <summary> /// Supports the serialization infrastructure. /// </summary> /// <param name="info">Serialization information.</param> /// <param name="context">Streaming context.</param> protected MockException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.reason = (MockExceptionReason)info.GetValue("reason", typeof(MockExceptionReason)); }
protected BuildUsageTagSet(System.Runtime.Serialization.SerializationInfo info, StreamingContext context) { m_Ptr = Internal_Create(); string serializedBuildUsageTagSetString = (string)info.GetValue("tags", typeof(string)); DeserializeNativeFromString(serializedBuildUsageTagSetString); }
public HeaderCell(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _Row = info.GetInt32("_Row"); } catch { _Row = 0; } try { _Col = info.GetInt32("_Col"); } catch { _Col = 0; } try { _Text = info.GetString("_Text"); } catch { _Text = string.Empty; } try { _MergerdIndex = info.GetInt32("_MergerdIndex"); } catch { _MergerdIndex = 0; } try { _MergerdCount = info.GetInt32("_MergerdCount"); } catch { _MergerdCount = 0; } try { _ChangeStyle = info.GetBoolean("_ChangeStyle"); } catch { _ChangeStyle = false; } try { _CellStyle = (Webb.Reports.ExControls.IBasicStyle)info.GetValue("_CellStyle", typeof(Webb.Reports.ExControls.IBasicStyle)); } catch { _CellStyle = new BasicStyle(); } }
public WizardCustomStyles(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _StyleName = info.GetString("_StyleName"); } catch { _StyleName = string.Empty; } try { _Image = (System.Drawing.Image)info.GetValue("_Image", typeof(System.Drawing.Image)); } catch { } try { _NoWaterMarkImage = (System.Drawing.Image)info.GetValue("_NoWaterMarkImage", typeof(System.Drawing.Image)); } catch { } try { _ExcontrolStyles = (Webb.Reports.ExControls.Styles.ExControlStyles)info.GetValue("_ExcontrolStyles", typeof(Webb.Reports.ExControls.Styles.ExControlStyles)); } catch { } try { templateType = (Webb.Reports.ReportWizard.WizardInfo.TemplateType)info.GetValue("templateType", typeof(Webb.Reports.ReportWizard.WizardInfo.TemplateType)); } catch { } try { _SerializableWatermark = (Webb.Reports.SerializableWatermark)info.GetValue("_SerializableWatermark", typeof(Webb.Reports.SerializableWatermark)); } catch { } }
/// <summary> /// Constructs a new instance of the HttpErrorResponseException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected HttpErrorResponseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { if (info != null) { this.Response = (IWebResponseData)info.GetValue("Response", typeof(IWebResponseData)); } }
public PageFieldInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { try { _Field = (string)info.GetValue("_Field", typeof(string)); } catch { _Field = string.Empty; } try { _OtherName = (string)info.GetValue("_OtherName", typeof(string)); } catch { _OtherName = "Other"; } try { _TotalOther = info.GetBoolean("_TotalOther"); } catch { _TotalOther = false; } try { _TotalType = (TotalType)info.GetValue("_TotalType", typeof(TotalType)); } catch { _TotalType = TotalType.None; } try { this._TotalName = (string)info.GetValue("_TotalName", typeof(string)); } catch { _TotalName = "All"; } }
public ReportHeaderStyle(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { styleName = info.GetString("styleName"); } catch { styleName = string.Empty; } try { font = (System.Drawing.Font)info.GetValue("font", typeof(System.Drawing.Font)); } catch { font = new Font("Tahoma", 18, FontStyle.Bold); } try { textColor = (System.Drawing.Color)info.GetValue("textColor", typeof(System.Drawing.Color)); } catch { textColor = Color.Black; } try { backColor = (System.Drawing.Color)info.GetValue("backColor", typeof(System.Drawing.Color)); } catch { backColor = Color.LightSkyBlue; } try { showBorder = info.GetBoolean("showBorder"); } catch { showBorder = false; } }
public PageSectionInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { try { _SectionFilterWrapper = (Webb.Reports.SectionFilterCollectionWrapper)info.GetValue("_SectionFilterWrapper", typeof(Webb.Reports.SectionFilterCollectionWrapper)); } catch { } }
public PortDescriptorCollection(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _array = (ArrayList)info.GetValue("ArrayList", typeof(ArrayList)); } catch (Exception ex) { Trace.WriteLine(ex); } }
public object SetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.ISurrogateSelector selector) { AltaxoDocument s = (AltaxoDocument)obj; s.m_DataSet = (Altaxo.Data.DataTableCollection)info.GetValue("DataTableCollection", typeof(Altaxo.Data.DataTableCollection)); // s.tstObj = (AltaxoTestObject02)info.GetValue("TstObj",typeof(AltaxoTestObject02)); //s.m_Worksheets = (System.Collections.ArrayList)info.GetValue("Worksheets",typeof(System.Collections.ArrayList)); // s.m_GraphForms = (System.Collections.ArrayList)info.GetValue("GraphForms",typeof(System.Collections.ArrayList)); s.m_IsDirty = false; return(s); }
public HitChartField(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { name = (string)info.GetValue("name", typeof(string)); } catch { name = string.Empty; } try { text = (string)info.GetValue("text", typeof(string)); } catch { text = string.Empty; } try { position = (System.Drawing.PointF)info.GetValue("position", typeof(System.Drawing.PointF)); } catch { position = PointF.Empty; } try { size = (System.Drawing.SizeF)info.GetValue("size", typeof(System.Drawing.SizeF)); } catch { size = SizeF.Empty; } try { filter = (Webb.Data.DBFilter)info.GetValue("filter", typeof(Webb.Data.DBFilter)); filter = AdvFilterConvertor.GetAdvFilter(DataProvider.VideoPlayBackManager.AdvReportFilters, this.filter); //2009-4-29 11:37:37@Simon Add UpdateAdvFilter } catch { filter = new DBFilter(); } try { tag = (object)info.GetValue("tag", typeof(object)); } catch { } try { exControlViews = (Webb.Reports.ExControls.Views.ExControlViewCollection)info.GetValue("exControlViews", typeof(Webb.Reports.ExControls.Views.ExControlViewCollection)); } catch { exControlViews = new ExControlViewCollection(); } }
public SectionGroupInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { try { _ShowZero = info.GetBoolean("_ShowZero"); } catch { _ShowZero = true; } try { Visible = info.GetBoolean("Visible"); } catch { Visible = true; } try { _SectionFilters = info.GetValue("_SectionFilters", typeof(SectionFilterCollection)) as SectionFilterCollection; } catch { _SectionFilters = new SectionFilterCollection(); } //Modified at 2009-1-21 13:54:02@Scott try { this.SectionFiltersWrapper = info.GetValue("SectionFiltersWrapper", typeof(SectionFilterCollectionWrapper)) as SectionFilterCollectionWrapper; } catch { //this.SectionFiltersWrapper = new SectionFilterCollectionWrapper(); } }
public WizardCustomStylesCollection(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { try { templateType = (Webb.Reports.ReportWizard.WizardInfo.TemplateType)info.GetValue("templateType", typeof(Webb.Reports.ReportWizard.WizardInfo.TemplateType)); } catch { } try { _DefaultReportStyleIndex = info.GetInt32("_DefaultReportStyleIndex"); } catch { _DefaultReportStyleIndex = 0; } }
public AdvUserRights(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _All = info.GetBoolean("_All"); } catch { _All = true; } try { _Users = (System.Collections.Specialized.StringCollection)info.GetValue("_Users", typeof(System.Collections.Specialized.StringCollection)); } catch { _Users = new StringCollection(); } }
public UserLevel(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _Name = info.GetString("_Name"); } catch { _Name = "Custom"; } try { _Rights = (Webb.Data.ProductRight)info.GetValue("_Rights", typeof(Webb.Data.ProductRight)); } catch { _Rights = (ProductRight)31; } }
public AnalyImage(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { try { _FileName = info.GetString("_FileName"); } catch { _FileName = string.Empty; } try { _Image = (System.Drawing.Image)info.GetValue("_Image", typeof(System.Drawing.Image)); } catch { _Image = null; } }
protected AttemptToRemoveLastSaturn5Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.SerialNumber = info.GetValue("SerialNumber", typeof(string)) as string; }
protected DomainClassSerializationInfo(System.Runtime.Serialization.SerializationInfo info, StreamingContext context) { childrenOrder = (System.Collections.ArrayList)info.GetValue("childrenOrder", typeof(System.Collections.ArrayList)); attributesOrder = (System.Collections.ArrayList)info.GetValue("attributesOrder", typeof(System.Collections.ArrayList)); }
protected Saturn5LastSeenUsernameIsInvalidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Saturn5 = info.GetValue("Saturn5", typeof(Saturn5)) as Saturn5; this.Username = info.GetValue("Username", typeof(string)) as string; }