mirror of
https://github.com/claunia/Claunia.IO.git
synced 2025-12-16 19:24:44 +00:00
Remove sporious Using statements, and formatted.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2015-02-08 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* FileInfo.cs:
|
||||||
|
* DirectoryInfo.cs:
|
||||||
|
Remove sporious Using statements, and formatted.
|
||||||
|
|
||||||
2015-02-08 Natalia Portillo <claunia@claunia.com>
|
2015-02-08 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* DirectoryInfo.cs:
|
* DirectoryInfo.cs:
|
||||||
|
|||||||
@@ -51,24 +51,31 @@ namespace Claunia.IO
|
|||||||
_dirInfo = dirInfo;
|
_dirInfo = dirInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Exists {
|
public override bool Exists
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return _dirInfo.Exists;
|
return _dirInfo.Exists;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Name {
|
public override string Name
|
||||||
|
{
|
||||||
get { return _dirInfo.Name; }
|
get { return _dirInfo.Name; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public DirectoryInfo Parent {
|
public DirectoryInfo Parent
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return new DirectoryInfo(_dirInfo.Parent);
|
return new DirectoryInfo(_dirInfo.Parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public DirectoryInfo Root {
|
public DirectoryInfo Root
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return new DirectoryInfo(_dirInfo.Root);
|
return new DirectoryInfo(_dirInfo.Root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,10 +25,7 @@
|
|||||||
// THE SOFTWARE.
|
// THE SOFTWARE.
|
||||||
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Serialization;
|
|
||||||
using System.Security;
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
#if !MOBILE
|
#if !MOBILE
|
||||||
using System.Security.AccessControl;
|
using System.Security.AccessControl;
|
||||||
@@ -54,24 +51,31 @@ namespace Claunia.IO
|
|||||||
_fileInfo = fileInfo;
|
_fileInfo = fileInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Exists {
|
public override bool Exists
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return _fileInfo.Exists;
|
return _fileInfo.Exists;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Name {
|
public override string Name
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return _fileInfo.Name;
|
return _fileInfo.Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsReadOnly {
|
public bool IsReadOnly
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return _fileInfo.IsReadOnly;
|
return _fileInfo.IsReadOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
set {
|
set
|
||||||
|
{
|
||||||
_fileInfo.IsReadOnly = value;
|
_fileInfo.IsReadOnly = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,65 +90,71 @@ namespace Claunia.IO
|
|||||||
_fileInfo.Decrypt();
|
_fileInfo.Decrypt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long Length {
|
public long Length
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return _fileInfo.Length;
|
return _fileInfo.Length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string DirectoryName {
|
public string DirectoryName
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return _fileInfo.DirectoryName;
|
return _fileInfo.DirectoryName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public DirectoryInfo Directory {
|
public DirectoryInfo Directory
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
return new DirectoryInfo(_fileInfo.Directory);
|
return new DirectoryInfo(_fileInfo.Directory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public StreamReader OpenText ()
|
public System.IO.StreamReader OpenText()
|
||||||
{
|
{
|
||||||
return _fileInfo.OpenText();
|
return _fileInfo.OpenText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StreamWriter CreateText ()
|
public System.IO.StreamWriter CreateText()
|
||||||
{
|
{
|
||||||
return _fileInfo.CreateText();
|
return _fileInfo.CreateText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StreamWriter AppendText ()
|
public System.IO. StreamWriter AppendText()
|
||||||
{
|
{
|
||||||
return _fileInfo.AppendText();
|
return _fileInfo.AppendText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream Create ()
|
public System.IO.FileStream Create()
|
||||||
{
|
{
|
||||||
return _fileInfo.Create();
|
return _fileInfo.Create();
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream OpenRead ()
|
public System.IO.FileStream OpenRead()
|
||||||
{
|
{
|
||||||
return _fileInfo.OpenRead();
|
return _fileInfo.OpenRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream OpenWrite ()
|
public System.IO.FileStream OpenWrite()
|
||||||
{
|
{
|
||||||
return _fileInfo.OpenWrite();
|
return _fileInfo.OpenWrite();
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream Open (FileMode mode)
|
public System.IO.FileStream Open(System.IO.FileMode mode)
|
||||||
{
|
{
|
||||||
return _fileInfo.Open(mode);
|
return _fileInfo.Open(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream Open (FileMode mode, FileAccess access)
|
public System.IO.FileStream Open(System.IO.FileMode mode, System.IO.FileAccess access)
|
||||||
{
|
{
|
||||||
return _fileInfo.Open(mode, access);
|
return _fileInfo.Open(mode, access);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream Open (FileMode mode, FileAccess access, FileShare share)
|
public System.IO.FileStream Open(System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share)
|
||||||
{
|
{
|
||||||
return _fileInfo.Open(mode, access, share);
|
return _fileInfo.Open(mode, access, share);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user