public void FromHighLayerToHere(DataContent dataContent) { SmallFileDataObject dataObject = (SmallFileDataObject)dataContent.Data; // Convert an object to a byte array dataContent.Data = Util.ObjectByteConverter.ObjectToByteArray(dataObject); NextLowLayerEvent?.Invoke(dataContent); }
public object Clone() { SmallFileDataObject dataObject = new SmallFileDataObject(); dataObject.Filename = this.Filename; dataObject.BinData = (byte[])this.BinData.Clone(); return(dataObject); }