Welcome To Snipplr


Everyone's Recent C# Snippets Tagged c



1 2 3 Next »
Specifically, this code enables you to pass a string from C# into C++ managed code and then get a C++ pointer to the string's chars. [Marshal.StringToHGlobalAnsi Method](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marsha...
0 2036 posted 15 years ago by pckujawa
This function provides C# with functionality similar to the apparently deprecated my.Computer.FileSystem.FindInFiles under the Microsoft.VisualBasic namespace. Example usage: IEnumerable<string> oemFiles = FindInFiles(...
1 1090 posted 15 years ago by jimfred
1 753 posted 15 years ago by mamoo
How to use WebClient to post to an ASP.Net page and maintain viewstate for proxy purposes.
0 703 posted 15 years ago by BlueCockatoo
I have not tested it yet but the author claims to make your printer show some random messages.
0 660 posted 16 years ago by planetcall
0 563 posted 16 years ago by udayrayala
In Ruby you can write 5.times { print "Hello World" } . With a simple extension method I was able to do something similar with C#.
0 491 posted 16 years ago by Soft
1 1133 posted 17 years ago by gndprx
Methinks this is a bad idea but it is a suggested use of generics from the .NET 2.0 Generics Wrox book
0 529 posted 17 years ago by sophtwarez
1 2 3 Next »