Format:
Recent snippets matching tags of strings
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <set> #include <map> #include <cstdio> #include <cstdlib>
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"
256 Views
no comments
public static T EnumConverter<T>(string value) { return (T)Enum.Parse(typeof(T), value); }
247 Views
no comments
/// <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); }
338 Views
no comments
/// <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;
230 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
