If you ever wanted the to find the frameworks COR system directory. Then the mscoree.dll has the method for just that.
using
System.Text;
using System.Runtime.InteropServices;
public class CORSystemDir{
[DllImport("mscoree.dll")]
private static extern int GetCORSystemDirectory(
[MarshalAs(UnmanagedType.LPWStr)]StringBuilder pbuffer,
int cchBuffer, ref int dwlength);
public static void Main(){
int MAX_PATH = 260;
StringBuilder sb = new StringBuilder(MAX_PATH);
GetCORSystemDirectory(sb, MAX_PATH, ref MAX_PATH);
System.Console.WriteLine(sb.ToString());
}
}
Developers can ensure that their method and variable names use the naming conventions as put forth in the Microsoft .NET Framework General Reference Naming Guidelines document. DevPartner code review will automatically check for appropriate names and flag anything that doesn't fit within those naming conventions.
http://www.compuware.com/products/devpartner/1500_ENG_HTML.htm