public override string ToString()
    {
        StringBuilder sb = new StringBuilder();

        sb.AppendLine(Title);
        sb.AppendLine(Description);
        sb.AppendLine(CreationDateTime.ToString("G"));
        sb.AppendLine(ModifiedDateTime.ToString("G"));
        sb.AppendLine(NumberOfRobots + "");
        sb.AppendLine(FieldHeight + "");
        sb.AppendLine(FieldWidth + "");
        return(sb.ToString());
    }
예제 #2
0
        /*public nfs_fh4 fh
         * {
         *  get
         *  { return this._fh; }
         * }*/

        public override string ToString()
        {
            System.Text.StringBuilder HandleString = new System.Text.StringBuilder();

            for (int bC = 0; bC < Handle.Length; bC++)
            {
                HandleString.Append(((Byte)Handle.GetValue(bC)).ToString("X"));
            }

            return(String.Format("CDateTime: {0}, ADateTime: {1}, MDateTime: {2}, Type: {3}, Mode: {4}{5}{6}, Size: {7}, Handle: {8}",
                                 CreateDateTime.ToString(), LastAccessedDateTime.ToString(), ModifiedDateTime.ToString(), NFSType.ToString(), Mode.UserAccess, Mode.GroupAccess, Mode.OtherAccess, Size, HandleString.ToString()));
        }