Пример #1
0
        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);
        }
Пример #2
0
        public object Clone()
        {
            SmallFileDataObject dataObject = new SmallFileDataObject();

            dataObject.Filename = this.Filename;
            dataObject.BinData  = (byte[])this.BinData.Clone();
            return(dataObject);
        }