FileInfoCF 1.0, serializable, marshal by reference

System.IO (mscorlib.dll)sealed class

Like the parallels between Directory and DirectoryInfo, this class offers an object-centric spin on the static functions offered in the File type.

public sealed class FileInfo : FileSystemInfo {
// Public Constructors
   public FileInfo(string fileName);
// Public Instance Properties
   public DirectoryInfo Directory{get; }
   public string DirectoryName{get; }
   public override bool Exists{get; }    
// overrides FileSystemInfo
   public long Length{get; }
   public override string Name{get; }    
// overrides FileSystemInfo
// Public Instance Methods
   public StreamWriter AppendText( );
   public FileInfo CopyTo(string destFileName);
   public FileInfo CopyTo(string destFileName, bool overwrite);
   public FileStream Create( );
   public StreamWriter CreateText( );
   public override void Delete( );        
// overrides FileSystemInfo
   public void MoveTo(string destFileName);
   public FileStream Open(FileMode mode);
   public FileStream Open(FileMode mode, FileAccess access);
   public FileStream Open(FileMode mode, FileAccess access, FileShare share);
   public FileStream OpenRead( );
   public StreamReader OpenText( );
   public FileStream OpenWrite( );
   public override string ToString( );    
// overrides object


System.Object System.MarshalByRefObject FileSystemInfo(System.Runtime.Serialization.ISerializable) FileInfo

Returned By

DirectoryInfo.GetFiles( )

    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System