This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace StreamHelper.Streams | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Threading; | |
public class ConcatenatedStream : Stream | |
{ | |
Queue<Stream> _streams; // You can use Stack as well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace StreamHelper.Streams | |
{ | |
// Modified version of https://www.codeproject.com/Articles/18243/Bandwidth-throttling | |
using System; | |
using System.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public class ThrottledStream : Stream | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A sorted json list of extensions by mime types | |
1275 extensions | |
863 mime types | |
Created by Ramtin Jokar [ [email protected] ] | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"SmileysAndEmotion": [ | |
{ | |
"Name": "GrinningFace", | |
"Emoji": "😀" | |
}, | |
{ | |
"Name": "GrinningFaceWithBigEyes", | |
"Emoji": "😃" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace RamtinJokar | |
{ | |
public class UndoRedo<T> | |
{ | |
private readonly Stack<T> UndoStack; | |
private readonly Stack<T> RedoStack; |