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 3615 posted 16 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 1732 posted 16 years ago by jimfred
1 1239 posted 16 years ago by mamoo
How to use WebClient to post to an ASP.Net page and maintain viewstate for proxy purposes.
0 1222 posted 17 years ago by BlueCockatoo
I have not tested it yet but the author claims to make your printer show some random messages.
0 1119 posted 17 years ago by planetcall
0 1003 posted 17 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 934 posted 17 years ago by Soft
1 1777 posted 18 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 979 posted 19 years ago by sophtwarez
1 2 3 Next »