/// <summary> /// Called when deserializing /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected GUIContextShape(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.HasElement(info, "ResolutionX")) { _resolutionX = info.GetInt32("ResolutionX"); } if (SerializationHelper.HasElement(info, "ResolutionY")) { _resolutionY = info.GetInt32("ResolutionY"); } if (SerializationHelper.HasElement(info, "ContextClass")) { m_contextClass = (GUIContextClass_e)info.GetValue("ContextClass", typeof(GUIContextClass_e)); } // GUIContextClass_e ContextClass //..nothing to do }
/// <summary> /// Called when deserializing /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected GUIContextShape(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.HasElement(info, "ResolutionX")) _resolutionX = info.GetInt32("ResolutionX"); if (SerializationHelper.HasElement(info, "ResolutionY")) _resolutionY = info.GetInt32("ResolutionY"); if (SerializationHelper.HasElement(info, "ContextClass")) m_contextClass = (GUIContextClass_e)info.GetValue("ContextClass", typeof(GUIContextClass_e)); // GUIContextClass_e ContextClass //..nothing to do }