Exemplo n.º 1
0
        public T InitFromCache <T>(BinaryReader reader) where T : class, IBinarySerializable
        {
            var item = new ReaderItem();

            item.Read(reader);
            return(item as T);
        }
Exemplo n.º 2
0
        public static ReaderItem NewLocalItem(string content = "")
        {
            var result = new ReaderItem
            {
                Source = SourceProvider.Local,
                Id     = Guid.NewGuid().ToString(),
                Text   = content
            };

            return(result);
        }