Exemplo n.º 1
0
 public void Load(BinarySerializer reader)
 {
     Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null);
     // the following statements throw serialization-related exceptions
     Val = reader.ReadObject <T>();
 }
Exemplo n.º 2
0
 public Network(BinarySerializer reader, IEqualityComparer <VtxT> vtxCmp)
 {
     Load(reader, vtxCmp); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 3
0
 public Set(BinarySerializer reader)
 {
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 4
0
 public Set(BinarySerializer reader, IEqualityComparer <T> comparer)
 {
     mItems = new Dictionary <T, object>(comparer);
     Load(reader); // throws ArgumentNullException
 }
Exemplo n.º 5
0
 public ReadOnly(BinarySerializer reader)
 {
     mVec = new SparseVector <T>(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 6
0
 public void Load(BinarySerializer reader)
 {
     Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null);
     m_x = reader.ReadFloat();
     m_y = reader.ReadFloat();
 }
Exemplo n.º 7
0
 public void Load(BinarySerializer reader)
 {
     Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null);
     mItems = Utils.LoadDictionary <T, int>(reader); // throws serialization-related exceptions
 }
Exemplo n.º 8
0
 public WeightedNetwork(BinarySerializer reader, IEqualityComparer <VtxT> vtx_cmp) : base(reader, vtx_cmp) // throws ArgumentNullException, serialization-related exceptions
 {
 }
Exemplo n.º 9
0
 public IdxDat(BinarySerializer reader)
 {
     m_idx = -1;
     m_dat = default(T);
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 10
0
        // *** ISerializable interface implementation ***

        public void Save(BinarySerializer writer)
        {
            Utils.ThrowException(writer == null ? new ArgumentNullException("writer") : null);
            Utils.SaveDictionary(mItems, writer); // throws serialization-related exceptions
        }
Exemplo n.º 11
0
 public KeyDat(BinarySerializer reader)
 {
     m_key = default(KeyT);
     m_dat = default(DatT);
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 12
0
 public Pair(BinarySerializer reader)
 {
     m_first  = default(FirstT);
     m_second = default(SecondT);
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 13
0
 public ReadOnly(BinarySerializer reader)
 {
     mList = new ArrayList <T>(reader);
 }
Exemplo n.º 14
0
 public ReadOnly(BinarySerializer reader)
 {
     mVec = new BinaryVector(reader);
 }
Exemplo n.º 15
0
 public static Dictionary <KeyT, ValT> LoadDictionary <KeyT, ValT>(BinarySerializer reader)
 {
     return(LoadDictionary <KeyT, ValT>(reader, /*comparer=*/ null)); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 16
0
 public WeightedNetwork(BinarySerializer reader) : base(reader) // throws ArgumentNullException, serialization-related exceptions
 {
 }
Exemplo n.º 17
0
 public ImmutableCollection(BinarySerializer reader) : base(Load(reader))
 {
 }
Exemplo n.º 18
0
            // *** ISerializable interface implementation ***

            public void Save(BinarySerializer writer)
            {
                m_vec.Save(writer);
            }
Exemplo n.º 19
0
 public Strings(BinarySerializer reader) : base(reader)
 {
 }
Exemplo n.º 20
0
 // *** ISerializable interface implementation ***
 public void Save(BinarySerializer writer)
 {
     Utils.ThrowException(writer == null ? new ArgumentNullException("writer") : null);
     writer.WriteFloat(m_x);
     writer.WriteFloat(m_y);
 }
Exemplo n.º 21
0
 public ReadOnly(BinarySerializer reader)
 {
     m_matrix = new SparseMatrix <T>(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 22
0
 public Vector2D(BinarySerializer reader) : this()
 {
     Load(reader); // throws ArgumentNullException
 }
Exemplo n.º 23
0
            // *** ISerializable interface implementation ***

            public void Save(BinarySerializer writer)
            {
                m_matrix.Save(writer);
            }
Exemplo n.º 24
0
 public ReadOnly(BinarySerializer reader)
 {
     mSet = new Set <T>(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemplo n.º 25
0
        // *** ISerializable interface implementation ***

        public void Load(BinarySerializer reader)
        {
            Load(reader, /*vtxCmp=*/ null); // throws ArgumentNullException, serialization-related exceptions
        }
Exemplo n.º 26
0
            // *** ISerializable interface implementation ***

            public void Save(BinarySerializer writer)
            {
                mSet.Save(writer);
            }
Exemplo n.º 27
0
        // *** ISerializable interface implementation ***

        public void Save(BinarySerializer writer)
        {
            Utils.ThrowException(writer == null ? new ArgumentNullException("writer") : null);
            // the following statements throw serialization-related exceptions
            writer.WriteObject(Val);
        }