CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of strings
C++
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
by iscsi   July 26, 2011 @ 2:24am
61 Views
no comments
 
To Encrypt, run the following from the Visual Studio command prompt:
 
  aspnet_regiis -pe "connectionStrings" -app "/AppName" -prov "RsaProtectedConfigurationProvider"
 
To Decrypt, run the following from the Visual Studio command prompt:
 
  aspnet_regiis -pd "connectionStrings" -app "/AppName"
 
by Al Gonzalez   July 12, 2010 @ 4:39pm
256 Views
no comments
 
C#
public static T EnumConverter<T>(string value)
    {
        return (T)Enum.Parse(typeof(T), value);
    }
by Giuliano Lemes   July 28, 2009 @ 6:43am
247 Views
no comments
 
C#
/// <summary>
    /// Extendendo string usando o proprio isnullorempty
    /// assim fica muito mais intuitivo
    /// </summary>
    /// <param name="txt"></param>
    /// <returns></returns>
    public static bool IsNullOrEmpty(this string txt)
    {
        return String.IsNullOrEmpty(txt);
    }
by Giuliano Lemes   July 28, 2009 @ 6:41am
Tags: c#, Strings
338 Views
no comments
 
C#
/// <summary>
    /// ImplementaƧƠo do mesmo coalesce do SQL
    /// </summary>
    /// <param name="txt"></param>
    /// <param name="args">passe um numero infinito de string separadas por virgula</param>
    /// <returns></returns>
    public static string Coalesce(this string txt, params string[] args)
    {
        
        string value = string.Empty;
by Giuliano Lemes   July 28, 2009 @ 6:39am
Tags: c#, Strings
230 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate