Possible Duplicates:
How can I create a RAM drive using C#?
Programmable RAM Disk API for .NET?
Can Anyone point me to some source that shows how to implement a Ram Disk/Drive in C# code.
Possible Duplicates:
How can I create a RAM drive using C#?
Programmable RAM Disk API for .NET?
Can Anyone point me to some source that shows how to implement a Ram Disk/Drive in C# code.
You can't create a ram drive using any managed language, wheter it is C#, VB.NET or Java. A Ram Drive requires a file-system level device driver which can only be written using an unmanaged language like C/C++ and requires extensive knowledge of driver programming.
What you can do is install an existing RAM Drive utility and configure it either through code (if it provides an API) or through its command-line tools. You should check Jeffrey Palermo's article for a comparison of two commercial Ram Drive products (with free versions) he used to speed up VS build time.
Why DO you want a RAM Drive anyway? If you need it for temporary storage of some data you would be better off using one of the many ways .NET provides for in-memory storage, like MemoryStream, System.Web.Caching.Cache or even a simple Dictionary object.