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
/// <summary> | |
/// Compares 2 objects to see if they are the same or have the same values | |
/// </summary> | |
public class ObjectComparer | |
{ | |
private readonly IList<object> _compared; | |
private readonly IDictionary<Type,IList<string>> _skipList; | |
public ObjectComparer() | |
{ |
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.Configuration; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Text; | |
namespace TestEtl.Infrastructure | |
{ | |
public interface IIdGenerator |
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.Diagnostics; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace CollectionTest | |
{ | |
class Program | |
{ |
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
public interface IContainer : IDisposable | |
{ | |
void Add(Type contract, Type service); | |
object Resolve(Type contract); | |
} | |
/// <summary> | |
/// this contaier is a simple container which handles all contracts as singletons | |
/// </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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Mime; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace TestConfuring | |
{ |
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; | |
using System.Resources; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace FluentRegex | |
{ |
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
public class StreamCopy : INotifyPropertyChanged | |
{ | |
private readonly Stream _source; | |
private readonly Stream _destination; | |
private readonly int _bufferSize; | |
private readonly TransferStatus _transferStatus; | |
private long _numberOfBytesCopied; | |
internal StreamCopy(Stream source, Stream destination, int bufferSize = 1024) | |
{ |
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
/// <summary> | |
/// base for all domain object which use this Uow | |
/// </summary> | |
public abstract class EntityRoot | |
{ | |
public virtual int Id { get; protected set; } | |
} | |
public class Book : EntityRoot |
OlderNewer