Пример #1
0
        public static Storable RecallStorableObject(SerializationInfo info, string objectName, Type objectType)
        {
            Storable storable = info.GetValue(objectName, objectType) as Storable;

            if (storable != null)
            {
                storable.SetObjectData();
            }
            return(storable);
        }
Пример #2
0
        protected Storable RecallStorableObject(string objectName, Type objectType)
        {
            Storable storable = info.GetValue(objectName, objectType) as Storable;

            if (storable != null)
            {
                storable.SetObjectData();
            }
            return(storable);
        }