Exemple #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>();
 }
Exemple #2
0
 public Network(BinarySerializer reader, IEqualityComparer <VtxT> vtxCmp)
 {
     Load(reader, vtxCmp); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #3
0
 public Set(BinarySerializer reader)
 {
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #4
0
 public Set(BinarySerializer reader, IEqualityComparer <T> comparer)
 {
     mItems = new Dictionary <T, object>(comparer);
     Load(reader); // throws ArgumentNullException
 }
Exemple #5
0
 public ReadOnly(BinarySerializer reader)
 {
     mVec = new SparseVector <T>(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #6
0
 public void Load(BinarySerializer reader)
 {
     Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null);
     m_x = reader.ReadFloat();
     m_y = reader.ReadFloat();
 }
Exemple #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
 }
Exemple #8
0
 public WeightedNetwork(BinarySerializer reader, IEqualityComparer <VtxT> vtx_cmp) : base(reader, vtx_cmp) // throws ArgumentNullException, serialization-related exceptions
 {
 }
Exemple #9
0
 public IdxDat(BinarySerializer reader)
 {
     m_idx = -1;
     m_dat = default(T);
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #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
        }
Exemple #11
0
 public KeyDat(BinarySerializer reader)
 {
     m_key = default(KeyT);
     m_dat = default(DatT);
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #12
0
 public Pair(BinarySerializer reader)
 {
     m_first  = default(FirstT);
     m_second = default(SecondT);
     Load(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #13
0
 public ReadOnly(BinarySerializer reader)
 {
     mList = new ArrayList <T>(reader);
 }
Exemple #14
0
 public ReadOnly(BinarySerializer reader)
 {
     mVec = new BinaryVector(reader);
 }
Exemple #15
0
 public static Dictionary <KeyT, ValT> LoadDictionary <KeyT, ValT>(BinarySerializer reader)
 {
     return(LoadDictionary <KeyT, ValT>(reader, /*comparer=*/ null)); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #16
0
 public WeightedNetwork(BinarySerializer reader) : base(reader) // throws ArgumentNullException, serialization-related exceptions
 {
 }
 public ImmutableCollection(BinarySerializer reader) : base(Load(reader))
 {
 }
Exemple #18
0
            // *** ISerializable interface implementation ***

            public void Save(BinarySerializer writer)
            {
                m_vec.Save(writer);
            }
 public Strings(BinarySerializer reader) : base(reader)
 {
 }
Exemple #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);
 }
Exemple #21
0
 public ReadOnly(BinarySerializer reader)
 {
     m_matrix = new SparseMatrix <T>(reader); // throws ArgumentNullException, serialization-related exceptions
 }
Exemple #22
0
 public Vector2D(BinarySerializer reader) : this()
 {
     Load(reader); // throws ArgumentNullException
 }
Exemple #23
0
            // *** ISerializable interface implementation ***

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

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

            public void Save(BinarySerializer writer)
            {
                mSet.Save(writer);
            }
Exemple #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);
        }