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
struct Bar | |
{ | |
public ushort One; | |
public ushort Two; | |
} | |
class Foo | |
{ | |
private Bar _thing; | |
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.IO; | |
using System.Net; | |
using System.Reflection; | |
using JetBrains.Annotations; | |
namespace Foo.Utility.Process | |
{ | |
public static class ProcessHelpers | |
{ |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#core_card { | |
position: absolute; | |
width: 300px; | |
height: 300px; |
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.Threading; | |
namespace Models.Common.Internal | |
{ | |
public class ReadOnlyState | |
{ | |
public bool IsReadOnly { get; set; } | |
} | |
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.Diagnostics; | |
using Apex.Utility.Internal; | |
namespace Utility | |
{ | |
/// <summary> | |
/// The SystemTime class provides a simple abstraction over DateTime.Now. | |
/// It uses a time provider to generate the current time. The default |
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
private static string GetVersionFromAssembly(byte[] fileData, string fileName) | |
{ | |
var reflector = new Universe(); | |
AssemblyName name = null; | |
using (var fileStream = new MemoryStream(fileData)) | |
{ | |
var module = reflector.OpenRawModule(fileStream, fileName); | |
if (module == null) | |
{ |
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
internal enum PacketSignature : uint | |
{ | |
Valid = 0x42424242, | |
Failover = 0x43434343 | |
} | |
[StructLayout(LayoutKind.Sequential)] | |
internal struct MessagePacketHeader | |
{ |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Windows; | |
using System.Windows.Media; | |
using FirstFloor.ModernUI.Presentation; |
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; | |
namespace Frob.Utility | |
{ | |
public static class Base36 | |
{ | |
private static readonly char[] _digits = | |
{ | |
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', | |
'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', |
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
ParseClaimIdentifiers(@ref, claim) | |
.Match(ReferenceQualifier.SpecialPaymentReferenceNumber, | |
r => claim.ServiceAuthExceptionCode = ServiceAuthExceptionCodeConverter.FromAnsi(r).Adapt()) | |
.Match(ReferenceQualifier.OriginalReferenceNumber, | |
r => claim.OriginalPayerClaimControlNumber = r) | |
.Match(ReferenceQualifier.ReferralNumber, | |
r => claim.ReferralNumber = r) | |
.Match(ReferenceQualifier.PriorAuthorizationNumber, | |
r => claim.PriorAuthorization = r) | |
.Match(ReferenceQualifier.RepricedClaimReferenceNumber, |
OlderNewer