This file contains hidden or 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
| public class WhitelistMetadataReferenceResolver : MetadataReferenceResolver | |
| { | |
| private IList<string> _whiteListedNamespaces = new List<string>(); | |
| private readonly MetadataReferenceResolver _resolver; | |
| public WhitelistMetadataReferenceResolver(MetadataReferenceResolver resolver) | |
| { | |
| _resolver = resolver; | |
| } |
This file contains hidden or 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
| public static IEnumerable<string> Split(this string src, char delimiter, | |
| bool nullOrWhitespaceInputReturnsNull = false) | |
| { | |
| if (src.IsNullOrWhiteSpace()) | |
| return nullOrWhitespaceInputReturnsNull ? null : new List<string>(); | |
| return src | |
| .TrimEnd(delimiter) | |
| .Split(delimiter) | |
| .Select(s => s.Trim()); |
This file contains hidden or 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
| public static bool IsNullOrEmpty(this string src) | |
| { | |
| return string.IsNullOrEmpty(src); | |
| } | |
| public static bool IsNullOrWhiteSpace(this string src) | |
| { | |
| return string.IsNullOrWhiteSpace(src); | |
| } |
This file contains hidden or 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
| public static bool IsBase64(this string src) | |
| { | |
| try | |
| { | |
| Convert.FromBase64String(src); | |
| } | |
| catch | |
| { | |
| return false; | |
| } |
This file contains hidden or 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
| /** | |
| Timer.inl | |
| @purpose | |
| Inline template definition for the Timer class. | |
| @author | |
| Joshua Thompson | |
| @date |
This file contains hidden or 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
| /** | |
| ringbuffer. | |
| @purpose | |
| Inline template definition for the ringbuffer class. | |
| @author | |
| Joshua Thompson | |
| @date |
NewerOlder