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
internal enum PacketSignature : uint | |
{ | |
Valid = 0x42424242, | |
Failover = 0x43434343 | |
} | |
[StructLayout(LayoutKind.Sequential)] | |
internal struct MessagePacketHeader | |
{ |
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.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 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; | |
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 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
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, |
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.Collections; | |
using System.Collections.Generic; | |
public class Foo | |
{ | |
public string OtherKey { get; set; } | |
} | |
public class StupidDictionary : IDictionary<string, Foo> |
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.IO; | |
using Libgpgme; | |
namespace Frob | |
{ | |
public class FileDecryptor : IDisposable | |
{ | |
private Context _gpgContext; | |
private readonly char[] _passphrase; |
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
<!-- instead of: --> | |
<Border BorderThickness="0,0,1,0" BorderBrush="Black" Width="300" HorizontalAlignment="Left"> | |
<StackPanel Width="300" HorizontalAlignment="Left"> | |
<TextBlock Text="46. DATE OF ACCIDENT" Style="{DynamicResource SectionHeaders}"/> | |
<DatePicker Margin="10,5,10,0"/> | |
</StackPanel> | |
</Border> | |
<!-- i want: --> |
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 abstract class PropertyIndexer<TProperty> | |
{ | |
protected abstract TProperty GetValue(int index); | |
protected abstract void SetValue(int index, TProperty value); | |
public TProperty this[int index] | |
{ | |
get { return GetValue(index); } | |
set { SetValue(index, value); } | |
} |
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 SimpleCommand : ICommand | |
{ | |
private readonly Func<bool> _canExecute; | |
private readonly Action _execute; | |
public SimpleCommand(Action execute, Func<bool> canExecute = null) | |
{ | |
_execute = execute; | |
_canExecute = canExecute; | |
} |
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; | |
namespace JakeSays | |
{ | |
public static class DateTimeExtensions | |
{ | |
/// <summary> | |
/// Determines whether value represents a leap day | |
/// </summary> |