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>
|
||||
|
||||
* DirectoryInfo.cs:
|
||||
|
||||
@@ -51,24 +51,31 @@ namespace Claunia.IO
|
||||
_dirInfo = dirInfo;
|
||||
}
|
||||
|
||||
public override bool Exists {
|
||||
get {
|
||||
public override bool Exists
|
||||
{
|
||||
get
|
||||
{
|
||||
return _dirInfo.Exists;
|
||||
}
|
||||
}
|
||||
|
||||
public override string Name {
|
||||
public override string Name
|
||||
{
|
||||
get { return _dirInfo.Name; }
|
||||
}
|
||||
|
||||
public DirectoryInfo Parent {
|
||||
get {
|
||||
public DirectoryInfo Parent
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DirectoryInfo(_dirInfo.Parent);
|
||||
}
|
||||
}
|
||||
|
||||
public DirectoryInfo Root {
|
||||
get {
|
||||
public DirectoryInfo Root
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DirectoryInfo(_dirInfo.Root);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,10 +25,7 @@
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
#if !MOBILE
|
||||
using System.Security.AccessControl;
|
||||
@@ -54,24 +51,31 @@ namespace Claunia.IO
|
||||
_fileInfo = fileInfo;
|
||||
}
|
||||
|
||||
public override bool Exists {
|
||||
get {
|
||||
public override bool Exists
|
||||
{
|
||||
get
|
||||
{
|
||||
return _fileInfo.Exists;
|
||||
}
|
||||
}
|
||||
|
||||
public override string Name {
|
||||
get {
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return _fileInfo.Name;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsReadOnly {
|
||||
get {
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
return _fileInfo.IsReadOnly;
|
||||
}
|
||||
|
||||
set {
|
||||
set
|
||||
{
|
||||
_fileInfo.IsReadOnly = value;
|
||||
}
|
||||
}
|
||||
@@ -86,65 +90,71 @@ namespace Claunia.IO
|
||||
_fileInfo.Decrypt();
|
||||
}
|
||||
|
||||
public long Length {
|
||||
get {
|
||||
public long Length
|
||||
{
|
||||
get
|
||||
{
|
||||
return _fileInfo.Length;
|
||||
}
|
||||
}
|
||||
|
||||
public string DirectoryName {
|
||||
get {
|
||||
public string DirectoryName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _fileInfo.DirectoryName;
|
||||
}
|
||||
}
|
||||
|
||||
public DirectoryInfo Directory {
|
||||
get {
|
||||
public DirectoryInfo Directory
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DirectoryInfo(_fileInfo.Directory);
|
||||
}
|
||||
}
|
||||
|
||||
public StreamReader OpenText ()
|
||||
public System.IO.StreamReader OpenText()
|
||||
{
|
||||
return _fileInfo.OpenText();
|
||||
}
|
||||
|
||||
public StreamWriter CreateText ()
|
||||
public System.IO.StreamWriter CreateText()
|
||||
{
|
||||
return _fileInfo.CreateText();
|
||||
}
|
||||
|
||||
public StreamWriter AppendText ()
|
||||
public System.IO. StreamWriter AppendText()
|
||||
{
|
||||
return _fileInfo.AppendText();
|
||||
}
|
||||
|
||||
public FileStream Create ()
|
||||
public System.IO.FileStream Create()
|
||||
{
|
||||
return _fileInfo.Create();
|
||||
}
|
||||
|
||||
public FileStream OpenRead ()
|
||||
public System.IO.FileStream OpenRead()
|
||||
{
|
||||
return _fileInfo.OpenRead();
|
||||
}
|
||||
|
||||
public FileStream OpenWrite ()
|
||||
public System.IO.FileStream OpenWrite()
|
||||
{
|
||||
return _fileInfo.OpenWrite();
|
||||
}
|
||||
|
||||
public FileStream Open (FileMode mode)
|
||||
public System.IO.FileStream Open(System.IO.FileMode 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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user