private void Serialize(ref SerializationWriter mySerializationWriter, EdgeTypeCounted myValue) { mySerializationWriter.WriteObject(myValue._Reference); mySerializationWriter.WriteObject(myValue._Count); mySerializationWriter.WriteObject(myValue._CountBy); }
private object Deserialize(ref SerializationReader mySerializationReader, EdgeTypeCounted myValue) { myValue._Reference = (Reference)mySerializationReader.ReadObject(); myValue._Count = (ADBBaseObject)mySerializationReader.ReadObject(); myValue._CountBy = (ADBBaseObject)mySerializationReader.ReadObject(); CalcEstimatedSize(myValue); return myValue; }
private void CalcEstimatedSize(EdgeTypeCounted myTypeAttribute) { //Count + CountBy + Reference _estimatedSize = base.GetBaseSize(); if(_Count != null) { _estimatedSize += _Count.GetEstimatedSize(); } if(_CountBy != null) { _estimatedSize += _CountBy.GetEstimatedSize(); } if(_Reference != null) { _estimatedSize += _Reference.GetEstimatedSize(); } }
public override IReferenceEdge GetNewInstance(IEnumerable<ObjectUUID> iEnumerable, TypeUUID typeOfDBObjects) { var edgeTypeCounted = new EdgeTypeCounted(); if (_Count != null) edgeTypeCounted._Count = _Count.Clone(); if (_CountBy != null) edgeTypeCounted._CountBy = _CountBy.Clone(); CalcEstimatedSize(edgeTypeCounted); return edgeTypeCounted; }
public override IReferenceEdge GetNewInstance(IEnumerable<Exceptional<DBObjectStream>> iEnumerable) { var edgeTypeCounted = new EdgeTypeCounted(); if (_Count != null) edgeTypeCounted._Count = _Count.Clone(); if (_CountBy != null) edgeTypeCounted._CountBy = _CountBy.Clone(); CalcEstimatedSize(edgeTypeCounted); return edgeTypeCounted; }
public override IEdgeType GetNewInstance() { var edgeTypeCounted = new EdgeTypeCounted(); if (_Count != null) edgeTypeCounted._Count = _Count.Clone(); if (_CountBy != null) edgeTypeCounted._CountBy = _CountBy.Clone(); CalcEstimatedSize(edgeTypeCounted); return edgeTypeCounted; }