public DeleteFile ( string path, bool deleteReadOnly ) : void | ||
path | string | |
deleteReadOnly | bool | |
return | void |
public virtual void DeleteFile(string path, bool deleteReadOnly) {
#if !SILVERLIGHT
FileInfo info = new FileInfo(path);
if (deleteReadOnly && info.IsReadOnly) {
info.IsReadOnly = false;
}
info.Delete();
#else
throw new NotImplementedException();
#endif
}