Format:
Recent snippets matching tags of rat
/************************************************************************************* * * Copyright 2012 Davide Orazio Montersino http://www.davidemontersino.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or
27 Views
no comments
[Flags] public enum ApprovalStatusType { [Display(Description = "In Progress")] InProgress = 1, [Display(Description = "Pending Review")] PendingReview = 2, [Display(Description = "Need Changes")] NeedChanges = 4, [Display(Description = "Finished")]
36 Views
no comments
// Copyright Krzysztof Czainski 2011 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /** * @file cz/boost/utility/safe_bool.hpp * Introduction by Vladimir Batov: * An implicit conversion to bool (operator bool() const) is very much * idiomatic and is often deployed in constructs like "if (foo)" and "if (!foo)"
160 Views
no comments
using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Web.Mvc; using Microsoft.Practices.EnterpriseLibrary.Validation; namespace Thoughtology.Web.Mvc { /// <summary> /// Maps a browser request to a data object and provides validation
241 Views
no comments
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="3. Najlepší nováčik za rok 2010" src="http://i.imgur.com/88lnc.png" alt="3. Najlepší nováčik za rok 2010" border="0"></a>
122 Views
no comments
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="2. Najväčší troll za rok 2010" src="http://i.imgur.com/z3Zq0.png" alt="2. Najväčší troll za rok 2010" border="0"></a> <a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="1. Najväčší flame soldier za rok 2010" src="http://i.imgur.com/fpTRG.png" alt="1. Najväčší flame soldier za rok 2010" border="0"></a> <a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="3. Člen, ktorému by ste nekúpili ani kofolu za rok 2010" src="http://i.imgur.com/Mji8Q.png" alt="3. Člen, ktorému by ste nekúpili ani kofolu za rok 2010" border="0"></a> <a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="2. Najpravdepodobnejšie skončí za mrežami za rok 2010" src="http://i.imgur.com/y0xkJ.png" alt="2. Najpravdepodobnejšie skončí za mrežami za rok 2010" border="0"></a> <a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="3. Užívateľ, ktorému by ste kúpili žiletku za rok 2010" src="http://i.imgur.com/eCxDz.png" alt="3. Užívateľ, ktorému by ste kúpili žiletku za rok 2010" border="0"></a>
93 Views
no comments
// Standard reference 24.2.2 // The following code defines the concept "Iterator" // The concept is uaary with a single type parameter called "X" // The "using" argument here specifies that "Iterator" is a refinement of the // previously defined concepts "CopyAssignable", "CopyConstructible", // "Destructible", and "Swappable". // The "for typedef" argument is a convenience argument that lets the programmer // create a simple alias for a more complicated type name. This alias is only for // use when calling the macro to simplify the specification of further // requirements.
258 Views
no comments
using System.IO; using System.Text; using Ninject; using NUnit.Framework; using Should.Extensions.AssertExtensions; namespace ninject.configurer.tests { public class GreeterConfig {
172 Views
no comments
using System; using System.Collections.Specialized; using System.Configuration; using Ninject.Modules; namespace Cirrostrata.NinjectConfigurator { public interface IConfigurableNinjectModule : INinjectModule { IConfigurationSyntax Configure<T>();
255 Views
no comments
#If DEBUG = False Then <Obsolete("This class/method is a stub and should not be in production.", True)> _ Public Class StubAttribute #Else <Obsolete("This class/method is a stub and should not be in production.", False)> _ Public Class StubAttribute #End If Inherits Attribute Private _value As String
159 Views
no comments
#If DEBUG Then <Obsolete("This should not be in production", False)> _ Public Sub BreakBuildIfIsNotDebug() End Sub #Else <Obsolete("This should not be in production", True)> _ Public Sub BreakBuildIfIsNotDebug() End Sub
213 Views
1 comments
public static PerpetualEnumerator<T> GetPerpetualEnumerator<T>(this IEnumerable<T> items) { return new PerpetualEnumerator<T>(items); }
277 Views
no comments
using System.Collections; using System.Collections.Generic; namespace nl4net { /// <summary> /// Wraps a standard IEnumerator<T> to provide /// iteration over a generic collection that automatically /// resets to the beginning once it reaches the end. /// </summary>
182 Views
no comments
// Define a list by enclosing the item type in brackets [int] // and initialize its value. Scores : [int] = [ 92, 100, 85, 62, 81, 100 ]; // Option A // require the stream type to be specified on a property PassingScores : int* {
234 Views
no comments
<PropertyGroup> <SolutionRootDir>$(MSBuildProjectDirectory)\..</SolutionRootDir> <ApplicationName>MyApp</ApplicationName> <WebApplicationName>$(ApplicationName).Web</WebApplicationName> <MSBuildCommunityTasksPath>$(SolutionRootDir)\BuildScripts\MSBuildCommunityTasks</MSBuildCommunityTasksPath> <WebProject>$(SolutionRootDir)\$(WebApplicationName)\$(WebApplicationName).csproj</WebProject> <PackageDir>$(SolutionRootDir)\Package</PackageDir> <Configuration>Release</Configuration> </PropertyGroup>
404 Views
no comments
<PropertyGroup> <SolutionRootDir>$(MSBuildProjectDirectory)\..</SolutionRootDir> <ApplicationName>MyApp</ApplicationName> <Version>0.0.1.0</Version> <Company>Active Solution AB</Company> <Copyright>Copyright © Active Solution AB 2010</Copyright> </PropertyGroup> <PropertyGroup Condition="'$(BUILD_NUMBER)' != ''"> <Version>$(BUILD_NUMBER)</Version> </PropertyGroup>
810 Views
1 comments
namespace Nowcom.Quicksilver.Patterns { using System; public class Strategy<T,V> { public Predicate<T> Condition { get; private set; } public Func<T, V> Result { get; private set; } public Strategy(Predicate<T> condition, Func<T, V> result)
876 Views
no comments
<#@ template language="C#v3.5" hostspecific="True" debug="True" #> <#@ output extension="cs" #> <#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #> <#@ assembly name="Microsoft.SqlServer.SqlEnum" #> <#@ assembly name="Microsoft.SqlServer.Smo" #> <#@ assembly name="System.Data" #> <#@ assembly name="System.Core.dll" #> <#@ import namespace="System.Linq" #> <#@ import namespace="Microsoft.SqlServer.Management.Smo" #> <#@ import namespace="Microsoft.SqlServer.Management.Common" #>
400 Views
no comments
[System.ServiceModel.ServiceContractAttribute(ConfigurationName = "Organization.MockApp.Bus.IMockService")] internal class MockService : IMockService, Organization.Enterprise.ServiceChannelAdapter<Organization.MockApp.Bus.Async.IMockService>, Organization.MockApp.Bus.Async.IMockService { public MockService(Organization.Enterprise.IExceptionManager exceptionManager, Organization.Enterprise.IChannelResolver channelResolver, Organization.Enterprise.IChannelRegistrar channelRegistrar) : base(exceptionManager, channelResolver, channelRegistrar) { } new public protected internal private abstract sealed static virtual override extern readonly volatile ref out params assembly field event method param property return type module partial unsafe fixed object CreateEntity(object entity); new public protected internal private abstract sealed static virtual override extern readonly volatile ref out params assembly field event method param property return type module partial unsafe fixed System.IAsyncResult BeginCreateEntity(object entity, System.AsyncCallback callback, object asyncState);
153 Views
no comments
using System; using System.Collections.Specialized; using System.Web; using System.IO; namespace ConfigFileExample.Services { public interface IConfigurationManager { NameValueCollection AppSettings { get; }
501 Views
2 comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
