public void Load(BinarySerializer reader) { Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null); // the following statements throw serialization-related exceptions Val = reader.ReadObject <T>(); }
public Network(BinarySerializer reader, IEqualityComparer <VtxT> vtxCmp) { Load(reader, vtxCmp); // throws ArgumentNullException, serialization-related exceptions }
public Set(BinarySerializer reader) { Load(reader); // throws ArgumentNullException, serialization-related exceptions }
public Set(BinarySerializer reader, IEqualityComparer <T> comparer) { mItems = new Dictionary <T, object>(comparer); Load(reader); // throws ArgumentNullException }
public ReadOnly(BinarySerializer reader) { mVec = new SparseVector <T>(reader); // throws ArgumentNullException, serialization-related exceptions }
public void Load(BinarySerializer reader) { Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null); m_x = reader.ReadFloat(); m_y = reader.ReadFloat(); }
public void Load(BinarySerializer reader) { Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null); mItems = Utils.LoadDictionary <T, int>(reader); // throws serialization-related exceptions }
public WeightedNetwork(BinarySerializer reader, IEqualityComparer <VtxT> vtx_cmp) : base(reader, vtx_cmp) // throws ArgumentNullException, serialization-related exceptions { }
public IdxDat(BinarySerializer reader) { m_idx = -1; m_dat = default(T); Load(reader); // throws ArgumentNullException, serialization-related exceptions }
// *** ISerializable interface implementation *** public void Save(BinarySerializer writer) { Utils.ThrowException(writer == null ? new ArgumentNullException("writer") : null); Utils.SaveDictionary(mItems, writer); // throws serialization-related exceptions }
public KeyDat(BinarySerializer reader) { m_key = default(KeyT); m_dat = default(DatT); Load(reader); // throws ArgumentNullException, serialization-related exceptions }
public Pair(BinarySerializer reader) { m_first = default(FirstT); m_second = default(SecondT); Load(reader); // throws ArgumentNullException, serialization-related exceptions }
public ReadOnly(BinarySerializer reader) { mList = new ArrayList <T>(reader); }
public ReadOnly(BinarySerializer reader) { mVec = new BinaryVector(reader); }
public static Dictionary <KeyT, ValT> LoadDictionary <KeyT, ValT>(BinarySerializer reader) { return(LoadDictionary <KeyT, ValT>(reader, /*comparer=*/ null)); // throws ArgumentNullException, serialization-related exceptions }
public WeightedNetwork(BinarySerializer reader) : base(reader) // throws ArgumentNullException, serialization-related exceptions { }
public ImmutableCollection(BinarySerializer reader) : base(Load(reader)) { }
// *** ISerializable interface implementation *** public void Save(BinarySerializer writer) { m_vec.Save(writer); }
public Strings(BinarySerializer reader) : base(reader) { }
// *** ISerializable interface implementation *** public void Save(BinarySerializer writer) { Utils.ThrowException(writer == null ? new ArgumentNullException("writer") : null); writer.WriteFloat(m_x); writer.WriteFloat(m_y); }
public ReadOnly(BinarySerializer reader) { m_matrix = new SparseMatrix <T>(reader); // throws ArgumentNullException, serialization-related exceptions }
public Vector2D(BinarySerializer reader) : this() { Load(reader); // throws ArgumentNullException }
// *** ISerializable interface implementation *** public void Save(BinarySerializer writer) { m_matrix.Save(writer); }
public ReadOnly(BinarySerializer reader) { mSet = new Set <T>(reader); // throws ArgumentNullException, serialization-related exceptions }
// *** ISerializable interface implementation *** public void Load(BinarySerializer reader) { Load(reader, /*vtxCmp=*/ null); // throws ArgumentNullException, serialization-related exceptions }
// *** ISerializable interface implementation *** public void Save(BinarySerializer writer) { mSet.Save(writer); }
// *** 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); }