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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net; | |
using System.Reflection; | |
namespace LookingGlass | |
{ | |
class Program | |
{ |
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
{ | |
"IAB1": "Arts & Entertainment", | |
"IAB1-1": "Books & Literature", | |
"IAB1-2": "Celebrity Fan/Gossip", | |
"IAB1-3": "Fine Art", | |
"IAB1-4": "Humor", | |
"IAB1-5": "Movies", | |
"IAB1-6": "Music", | |
"IAB1-7": "Television", | |
"IAB2": "Automotive", |
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
[DesignerGenerated] | |
public class Form1 : Form | |
{ | |
// Fields | |
[AccessedThroughProperty("AboutToolStripMenuItem")] | |
private ToolStripMenuItem _AboutToolStripMenuItem; | |
[AccessedThroughProperty("AudioToolStripMenuItem")] | |
private ToolStripMenuItem _AudioToolStripMenuItem; | |
[AccessedThroughProperty("CloseToolStripMenuItem")] | |
private ToolStripMenuItem _CloseToolStripMenuItem; |
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
using System; | |
using System.Diagnostics.Contracts; | |
using System.Linq; | |
namespace Merkator.Tools | |
{ | |
public class ArrayHelpers | |
{ | |
public static T[] ConcatArrays<T>(params T[][] arrays) | |
{ |
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 ValidatePackageReferences : Task | |
{ | |
// Methods | |
public override bool Execute() | |
{ | |
if (string.IsNullOrEmpty(this.ReferencingProjectPackagesConfig) && string.IsNullOrEmpty(this.ReferencingProject)) | |
{ | |
this.LogWarning("BCLBUILD1001", Resources.Warning_AllProjectsMissingPackageReference, new object[] { Path.GetFileName(this.ReferencedProject) }); | |
return true; | |
} |
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 UdpTraceListener : TraceListener | |
{ | |
// For 3.5/2 you can use a List but the class is no longer thread safe. | |
//private Stack<string> _messageBuffer; | |
private UdpClient _udpClient; | |
private ConcurrentStack<string> _messageBuffer; | |
private string _loggerName; | |
private static readonly string _xmlPrefix = "log4j"; |
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 class DictionaryExtensions | |
{ | |
public static TValue GetValueOrDefault<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key) | |
{ | |
return dictionary.GetValueOrDefault(key, x=>default(TValue)); | |
} | |
public static TValue GetValueOrDefault<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, | |
Func<TKey, TValue> func) | |
{ |
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
// helpers for consistent callback behavior | |
__nop = function (err) { if (err) alert(err); }; | |
__cbfix = function (cb) { | |
// for example: cb = __cbfix(cb); | |
return typeof (cb) !== 'function' | |
? __nop | |
: cb; | |
}; |
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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace CanwriteReadOnlyReflection | |
{ | |
[TestClass] | |
public class UnitTest1 | |
{ | |
public class TargetType | |
{ |
OlderNewer