Welcome To Snipplr
Everyone's Recent C# Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
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
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