//----------------------------------------------------------------------- // // Copyright (c) 2009 Deltares. All rights reserved. // // B. Faassen // barry.faassen@deltares.nl // 9-2-2009 // // Contains a domain class that can be used to add file info meta data // to a data transfer object // //----------------------------------------------------------------------- using System; using System.Reflection; namespace Deltares.Standard { /// /// This class contains general properties which can be used in the header of an xml file or in /// data transfer objects like or /// public class FileIdentification { public FileIdentification() : this(Assembly.GetCallingAssembly()) { } public FileIdentification(Assembly assembly) { this.Application = assembly.GetName().Name; this.Version = assembly.GetName().Version.ToString(); this.Company = "Deltares"; this.Created = DateTime.UtcNow; } /// /// The name of the applcation where the xml data is coming from /// public string Application { get; set; } /// /// The version of the application or dll where this data is form /// public string Version { get; set; } /// /// The name of the company /// public string Company { get; set; } /// /// The license of the application /// /// This property is not required public string License { get; set; } /// /// A general description of the application where the data belongs to /// /// This property is not required public string Description { get; set; } /// /// Date time stamp of the creation of the data data items /// public DateTime Created { get; set; } } }