public virtual void SetEnvironmentVariable(string key, string value) {
#if !SILVERLIGHT
if (value != null && value.Length == 0) {
SetEmptyEnvironmentVariable(key);
} else {
Environment.SetEnvironmentVariable(key, value);
}
#else
throw new NotImplementedException();
#endif
}