/// <summary> /// Generates the properties value for this node. /// </summary> /// <returns></returns> public virtual Dictionary <string, object> GetPropertyMap() { return(new Dictionary <string, object> { { "id", Id.ToString() }, { "commonName", CommonName }, { "othernames", OtherNames }, { "releaseDate", ReleaseDate?.ToString("yyyy-MM-dd") }, { "deathDate", DeathDate?.ToString("yyyy-MM-dd") } }); }
public String GetFullAuthor() { String authorStr = String.Format("'{0} {1}' \n--> Born the : {2}", FirstName, LastName, BirthDate.ToLongDateString()); if (DeathDate != null) { authorStr += String.Format("\n--> Died the : {0}", DeathDate.ToString()); } authorStr += String.Format("\n--> Nationality : {0} - {1}", Nationality.ToString(), EnumHelpers.ToDescriptionString(Nationality)); return(authorStr); }
protected override Saint Parse() { return(new Saint { Id = Convert.ToInt64(SaintID), Name = Name.ToString(), Biography = Biography.ToString(), FeastDay = FeastDay.ToString(), Categories = Categories.ToString(), BirthDate = BirthDate.ToString(), DeathDate = DeathDate.ToString(), CanonizeDate = CanonizeDate.ToString(), RelatedChurch = RelatedChurch.ToString(), Patron = Patron.ToString(), ImagePath = ImagePath.ToString(), PublicationDate = ToDateTime(PublicationDate) }); }
public override string ToString() { return("ID: " + CharacterDeathID.ToString() + " Name: " + DeathDate.ToString()); }
public override string ToString() { return(String.Format("{0}\n{1}\n{2}\n{3}\n{4}\n{5}\n{6}\n", FirstName, LastName, Patronymic, BirthDate.ToString("dd/MM/yyyy"), IsDead ? "1" : "0", DeathDate.ToString("dd/MM/yyyy"), Profession)); }