public static string GetFullPath (string path)
{
string fullpath = InsecureGetFullPath (path);
#if !NET_2_1
if (SecurityManager.SecurityEnabled) {
new FileIOPermission (FileIOPermissionAccess.PathDiscovery, fullpath).Demand ();
}
#endif
return fullpath;
}