コード例 #1
0
ファイル: File.cs プロジェクト: muertocaloh/FileSharing
        public override string ToString()
        {
            string result = "";

            result += "Filename: " + Filename + "\r\n";
            result += "ContentType: " + ContentType + "\r\n";
            result += "IdUser: "******"\r\n";
            result += "IsPublic: " + IsPublic + "\r\n";
            result += "IdGroup: " + (IdGroup.HasValue ? IdGroup.ToString() : "null") + "\r\n";
            result += "IdFolder: " + (IdFolder.HasValue ? IdFolder.ToString() : "null") + "\r\n";
            result += "CreationDate: " + CreationDate + "\r\n";
            result += "ModificationDate: " + ModificationDate;

            return(result);
        }
コード例 #2
0
 public override string ToString()
 {
     return(IdFolder.ToString() + " : " + Name.ToString() + " : " + Comments.ToString());
 }
コード例 #3
0
 public String ToString(String separator)
 {
     return(IdFolder.ToString() + separator + Type.ToString() + separator + ItemsOrderBy.ToString() + separator + Ascending.ToString()
            + separator + (String.IsNullOrEmpty(IdentifierPath) ? "": IdentifierPath.ToString()) + separator + Repository.ToString(separator));
 }