public object Deserialize(object o, IXmlDeserializationInfo info, object parent)
      {
        Foo foo = o!=null ? (Foo)o : new Foo();
        int val = info.GetInt32();

        int count = info.GetInt32Attribute("Count");
        foo.m_Array = new Double[count];
        // for(int i=0;i<count;i++) foo.m_Array[i] = info.GetDouble();
        info.GetArray(foo.m_Array,count);
        foo.m_String = info.GetString();

        return foo;
      }
Exemplo n.º 2
0
            public object Deserialize(object o, IXmlDeserializationInfo info, object parent)
            {
                Foo foo = o != null ? (Foo)o : new Foo();
                int val = info.GetInt32();

                int count = info.GetInt32Attribute("Count");

                foo.m_Array = new Double[count];
                // for(int i=0;i<count;i++) foo.m_Array[i] = info.GetDouble();
                info.GetArray(foo.m_Array, count);
                foo.m_String = info.GetString();

                return(foo);
            }