Exemple #1
0
        public override string ToString()
        {
            var segments = "";

            foreach (var seg in Segments)
            {
                segments += seg.ToString();
            }
            return(String.Format("OS9FileInfo Name={0} Size={1} Attributes={2} Segments={3}", Name, Size, OS9Utils.AttributeToString(Attributes), segments));
        }
Exemple #2
0
 /// <summary>
 /// Returns a brief string representation of any file attributes supported by the filesystem.  Subclasses will typically
 /// override this method to provide a summary of filesystem specific file attributes not represented by the base class.
 /// </summary>
 /// <returns>String representation of file attributes.</returns>
 public string GetAttributes()
 {
     return(String.Format("{0}  {1}  {2}", OS9Utils.AttributeToString(Attributes), ModifiedTime, CreateTime));
 }