/// <include file='doc\DesignerSerializationObject.uex' path='docs/doc[@for="DesignerSerializationObject.IResourceService.GetResourceWriter"]/*' />
 /// <devdoc>
 ///    <para>Locates the resource writer for the specified culture
 ///       and returns it. This will create a new resource for
 ///       the specified culture and destroy any existing resource,
 ///       should it exist.</para>
 /// </devdoc>
 IResourceWriter IResourceService.GetResourceWriter(CultureInfo info)
 {
     if (resourceManager == null)
     {
         resourceManager = new DsoResourceManager();
     }
     return(resourceManager);
 }
        public DesignerSerializationObject(SerializationInfo info, StreamingContext context)
        {
            ArrayList objectList = (ArrayList)info.GetValue(serializableObjects, typeof(ArrayList));

            code = info.GetValue(componentCode, typeof(object));
            Hashtable resourceData = (Hashtable)info.GetValue(componentResources, typeof(Hashtable));

            if (resourceData != null)
            {
                resourceManager = new DsoResourceManager(resourceData);
            }
            this.designTimeProperties = (Hashtable)info.GetValue(designTimeProps, typeof(Hashtable));
            objects = objectList.ToArray();
        }