using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplicationStart
{
class Document
{
private string name;
public string NameDoc { get; set; }
public string PageDoc { get; set; }
public string ContentDoc { get; set; }
public string SizeFile { get; set; }
public Document(string name, string page, string content, string size)
{
NameDoc = name;
PageDoc = page;
ContentDoc = content;
SizeFile = size;
}
public Document(string name)
{
this.name = name;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplicationStart
{
public class DocOrganaizer
{
static Document[] SearchToName( string name,Document[] Docs)
{
foreach (string с in SearchToName(name)
Console.WriteLine(с);
}
static Document[] SearchToPagedoc(Document[] Docs, string pagedoc)
{
return Docs;
}
static Document[] SearchToContent(Document[] Docs, string content)
{
return Docs;
}
static Document[] SearchToSizefile(Document[] Docs, string sizefile)
{
return Docs;
}
static void Main(string[] args)
{
Document[] Docs =
{
new Document("ccccc","zzzzz","ddddd","aaaaaaa"),
new Document("cc1ccc","zzzz1z","ddddd1","aaaaaaa1")
};
while (true)
{
string inputUser = Console.ReadLine();
if (inputUser == "exit") break;
}
}
}
}
}
Document[] Docs =
{
new Document("ccccc","zzzzz","ddddd","aaaaaaa"),
new Document("cc1ccc","zzzz1z","ddddd1","aaaaaaa1")
};