public string CalculateBlockHash(string previousBlockHash) { string blockheader = BlockNumber + CreatedDate.ToString() + previousBlockHash; string combined = merkleTree.RootNode + blockheader; string completeBlockHash; if (KeyStore == null) { completeBlockHash = Convert.ToBase64String(HashData.ComputeHashSha256(Encoding.UTF8.GetBytes(combined))); } else { completeBlockHash = Convert.ToBase64String(HashData.ComputeHashSha256(Encoding.UTF8.GetBytes(combined))); } return(completeBlockHash); }
// /// <summary> /// Create a 'to string'. /// </summary> public override string ToString() { // StringBuilder _return = new StringBuilder("record:["); _return.AppendFormat("IncidentId: {0}, ", IncidentId.ToString()); _return.AppendFormat("ServerId: {0}, ", ServerId.ToString()); _return.AppendFormat("IPAddress: {0}, ", IPAddress); _return.AppendFormat("NIC: {0}, ", NIC); _return.AppendFormat("NetworkName: {0}, ", NetworkName); _return.AppendFormat("AbuseEmailAddress: {0}, ", AbuseEmailAddress); _return.AppendFormat("ISPTicketNumber: {0}, ", ISPTicketNumber); _return.AppendFormat("Mailed: {0}, ", Mailed.ToString()); _return.AppendFormat("Closed: {0}, ", Closed.ToString()); _return.AppendFormat("Special: {0}, ", Special.ToString()); _return.AppendFormat("Notes: {0}, ", Notes); _return.AppendFormat("CreatedDate: {0}]", CreatedDate.ToString()); return(_return.ToString()); }
public void ToXml(XmlWriter w) { w.WriteStartElement("Game"); w.WriteAttributeString("CreatedDate", CreatedDate.ToString()); w.WriteAttributeString("Points", Points.ToString()); w.WriteAttributeString("GameDate", GameDate.ToString()); w.WriteAttributeString("NightState", NightState.ToString()); w.WriteStartElement("Buildings"); foreach (Building item in ListOfBuildings) { item.ToXml(w); } w.WriteEndElement(); w.WriteStartElement("Materials"); foreach (Material item in ListOfMaterials.Materials) { item.ToXml(w); } w.WriteEndElement(); w.WriteEndElement(); }
public void ShowPost() { Console.WriteLine("Title: {0}\nDescription: {1}\nCreated Date: {2}\nVote: {3}", Title, Description, CreatedDate.ToString("d"), Vote); }
public string[] ToDataTablesDto() { return(new[] { CreatedDate.ToString("s"), MachineName, LogLevel.ToString(), Category, Content }); }
public override string ToString() { var createdDate = CreatedDate.ToString("yyyy-MM-dd HH:mm:ss.fff"); return(string.Format("ChatMessage[Id:{0},UniqueId:'{1}',User:'******',AttachmentUrl:'{3}',Message='{4}',UTC CreatedDate='{5}']", Id, UniqueId, User, AttachmentUrl, Message, createdDate)); }
//public OrderDetailDTO[] Details { get; set; } public override string ToString() { return($"Order: ID {Id} , CustomerId {CustomerId} , CustomerName {CustomerName} , Date {CreatedDate.ToString("dd/MM/yyyy")} "); }
public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched) { bool ret = false; bool valueMatched = false; if (columnName == "InfoPageID") { ret = true; if (InfoPageID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoPageGUID") { ret = true; if (InfoPageGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "RevisionNo") { ret = true; if (RevisionNo.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserID") { ret = true; if (UserID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserGUID") { ret = true; if (UserGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedDate") { ret = true; if (CreatedDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "LastUpdateDate") { ret = true; if (LastUpdateDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedUserID") { ret = true; if (CreatedUserID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedUserGUID") { ret = true; if (CreatedUserGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoPageName") { ret = true; if (InfoPageName.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoPageDescription") { ret = true; if (InfoPageDescription.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoCategoryID") { ret = true; if (InfoCategoryID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoCategoryGUID") { ret = true; if (InfoCategoryGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "AccessGroupID") { ret = true; if (AccessGroupID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "AccessGroupGUID") { ret = true; if (AccessGroupGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "AsyncLoading") { ret = true; if (AsyncLoading.ToString() == columnValue) { valueMatched = true; } } if (columnName == "Commentable") { ret = true; if (Commentable.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CommentorRoleList") { ret = true; if (CommentorRoleList.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CommentorGroupList") { ret = true; if (CommentorGroupList.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CommentorHideRoleList") { ret = true; if (CommentorHideRoleList.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CommentorHideGroupList") { ret = true; if (CommentorHideGroupList.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsActive") { ret = true; if (IsActive.ToString() == columnValue) { valueMatched = true; } } if (columnName == "ExpiryDate") { ret = true; if (ExpiryDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsCommon") { ret = true; if (IsCommon.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsPublic") { ret = true; if (IsPublic.ToString() == columnValue) { valueMatched = true; } } if (columnName == "Sequence") { ret = true; if (Sequence.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsDeleted") { ret = true; if (IsDeleted.ToString() == columnValue) { valueMatched = true; } } retValueMatched = valueMatched; return(ret); }
public override string ToString() { return(string.Format("{0} {1}:{2} - {3}", CreatedDate.ToString("hh:mm:ss.ff"), Category, Severity, Description)); }
public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched) { bool ret = false; bool valueMatched = false; if (columnName == "InfoDetailID") { ret = true; if (InfoDetailID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoDetailGUID") { ret = true; if (InfoDetailGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "RevisionNo") { ret = true; if (RevisionNo.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserID") { ret = true; if (UserID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserGUID") { ret = true; if (UserGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedDate") { ret = true; if (CreatedDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "LastUpdateDate") { ret = true; if (LastUpdateDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsActive") { ret = true; if (IsActive.ToString() == columnValue) { valueMatched = true; } } if (columnName == "Sequence") { ret = true; if (Sequence.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoPageID") { ret = true; if (InfoPageID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoPageGUID") { ret = true; if (InfoPageGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoSectionID") { ret = true; if (InfoSectionID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoSectionGUID") { ret = true; if (InfoSectionGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoDetailName") { ret = true; if (InfoDetailName.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoDetailDescription") { ret = true; if (InfoDetailDescription.ToString() == columnValue) { valueMatched = true; } } if (columnName == "HideDetailName") { ret = true; if (HideDetailName.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsDeleted") { ret = true; if (IsDeleted.ToString() == columnValue) { valueMatched = true; } } retValueMatched = valueMatched; return(ret); }
public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched) { bool ret = false; bool valueMatched = false; if (columnName == "DataID") { ret = true; if (DataID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataGUID") { ret = true; if (DataGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "RevisionNo") { ret = true; if (RevisionNo.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserID") { ret = true; if (UserID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserGUID") { ret = true; if (UserGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedDate") { ret = true; if (CreatedDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "LastUpdateDate") { ret = true; if (LastUpdateDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "ParentDataID") { ret = true; if (ParentDataID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "ParentDataGUID") { ret = true; if (ParentDataGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataTypeID") { ret = true; if (DataTypeID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataTypeGUID") { ret = true; if (DataTypeGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataValue") { ret = true; if (DataValue.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataRefTypeID") { ret = true; if (DataRefTypeID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataRefTypeGUID") { ret = true; if (DataRefTypeGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "DataRefID") { ret = true; if (DataRefID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsActive") { ret = true; if (IsActive.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsDeleted") { ret = true; if (IsDeleted.ToString() == columnValue) { valueMatched = true; } } if (columnName == "Sequence") { ret = true; if (Sequence.ToString() == columnValue) { valueMatched = true; } } retValueMatched = valueMatched; return(ret); }
public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched) { bool ret = false; bool valueMatched = false; if (columnName == "InfoCategoryID") { ret = true; if (InfoCategoryID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoCategoryGUID") { ret = true; if (InfoCategoryGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "RevisionNo") { ret = true; if (RevisionNo.ToString() == columnValue) { valueMatched = true; } } if (columnName == "InfoCategoryName") { ret = true; if (InfoCategoryName.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserID") { ret = true; if (UserID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "UserGUID") { ret = true; if (UserGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedDate") { ret = true; if (CreatedDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "LastUpdateDate") { ret = true; if (LastUpdateDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsActive") { ret = true; if (IsActive.ToString() == columnValue) { valueMatched = true; } } if (columnName == "Sequence") { ret = true; if (Sequence.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsDefault") { ret = true; if (IsDefault.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsSystem") { ret = true; if (IsSystem.ToString() == columnValue) { valueMatched = true; } } retValueMatched = valueMatched; return(ret); }
public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched) { bool ret = false; bool valueMatched = false; if (columnName == "SubscriberID") { ret = true; if (SubscriberID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "SubscriberGUID") { ret = true; if (SubscriberGUID.ToString() == columnValue) { valueMatched = true; } } if (columnName == "RevisionNo") { ret = true; if (RevisionNo.ToString() == columnValue) { valueMatched = true; } } if (columnName == "SubscriberMessage") { ret = true; if (SubscriberMessage.ToString() == columnValue) { valueMatched = true; } } if (columnName == "SubscriberEmail") { ret = true; if (SubscriberEmail.ToString() == columnValue) { valueMatched = true; } } if (columnName == "CreatedDate") { ret = true; if (CreatedDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "LastUpdateDate") { ret = true; if (LastUpdateDate.ToString() == columnValue) { valueMatched = true; } } if (columnName == "IsDeleted") { ret = true; if (IsDeleted.ToString() == columnValue) { valueMatched = true; } } retValueMatched = valueMatched; return(ret); }
/// <summary> /// Returns the task data as XML formatted for Excel. /// </summary> /// <returns>The task data as XML formatted for Excel.</returns> public string ToXml() { string s = ""; //s += "<Row>" + System.Environment.NewLine; //s += "<Cell><Data ss:Type=\"String\">" + Wbs + "</Data></Cell>" + System.Environment.NewLine; //s += "<Cell><Data ss:Type=\"String\">" + ToXml(Name) + "</Data></Cell>" + System.Environment.NewLine; //s += "<Cell ss:StyleID=\"s21\"><Data ss:Type=\"DateTime\">" + StartDateExcelFormat + "</Data></Cell>" + System.Environment.NewLine; //s += "<Cell ss:StyleID=\"s21\"><Data ss:Type=\"DateTime\">" + FinishDateExcelFormat + "</Data></Cell>" + System.Environment.NewLine; //s += "<Cell><Data ss:Type=\"Number\">" + (PercentComplete /100.0) + "</Data></Cell>" + System.Environment.NewLine; //s += "</Row>" + System.Environment.NewLine; s += "<Task>" + System.Environment.NewLine; s += "<UID>" + UID + "</UID>" + System.Environment.NewLine; s += "<ID>" + ID + "</ID>" + System.Environment.NewLine; s += "<Name>" + ToXml(Name) + "</Name>" + System.Environment.NewLine; s += "<Active>" + Convert.ToInt16(Active) + "</Active>" + System.Environment.NewLine; s += "<Manual>0</Manual>" + System.Environment.NewLine; s += "<Type>0</Type>" + System.Environment.NewLine; s += "<IsNull>0</IsNull>" + System.Environment.NewLine; s += "<CreateDate>" + CreatedDate.ToString("yyyy-MM-dd'T'HH:mm:ss") + "</CreateDate>" + System.Environment.NewLine; s += "<WBS>" + Wbs + "</WBS>" + System.Environment.NewLine; s += "<OutlineNumber>" + OutlineNumber + "</OutlineNumber>" + System.Environment.NewLine; s += "<OutlineLevel>" + OutlineLevel + "</OutlineLevel>" + System.Environment.NewLine; s += "<Priority>500</Priority>" + System.Environment.NewLine; s += "<Start>" + Start.ToString("yyyy-MM-dd'T'HH:mm:ss") + "</Start>" + System.Environment.NewLine; s += "<Finish>" + Finish.ToString("yyyy-MM-dd'T'HH:mm:ss") + "</Finish>" + System.Environment.NewLine; s += "<Duration>PT64H0M0S</Duration>" + System.Environment.NewLine; s += "<ManualStart>2017-12-01T08:00:00</ManualStart>" + System.Environment.NewLine; s += "<ManualFinish>2017-12-12T17:00:00</ManualFinish>" + System.Environment.NewLine; s += "<ManualDuration>PT64H0M0S</ManualDuration>" + System.Environment.NewLine; s += "<DurationFormat>7</DurationFormat>" + System.Environment.NewLine; s += "<Work>PT0H0M0S</Work>" + System.Environment.NewLine; s += "<Stop>2017-12-12T17:00:00</Stop>" + System.Environment.NewLine; s += "<Resume>2017-12-12T17:00:00</Resume>" + System.Environment.NewLine; s += "<ResumeValid>0</ResumeValid>" + System.Environment.NewLine; s += "<EffortDriven>0</EffortDriven>" + System.Environment.NewLine; s += "<Recurring>0</Recurring>" + System.Environment.NewLine; s += "<OverAllocated>0</OverAllocated>" + System.Environment.NewLine; s += "<Estimated>0</Estimated>" + System.Environment.NewLine; s += "<Milestone>0</Milestone>" + System.Environment.NewLine; s += "<Summary>0</Summary>" + System.Environment.NewLine; s += "<DisplayAsSummary>0</DisplayAsSummary>" + System.Environment.NewLine; s += "<Critical>0</Critical>" + System.Environment.NewLine; s += "<IsSubproject>0</IsSubproject>" + System.Environment.NewLine; s += "<IsSubprojectReadOnly>0</IsSubprojectReadOnly>" + System.Environment.NewLine; s += "<ExternalTask>0</ExternalTask>" + System.Environment.NewLine; s += "<EarlyStart>2017-12-01T08:00:00</EarlyStart>" + System.Environment.NewLine; s += "<EarlyFinish>2017-12-12T17:00:00</EarlyFinish>" + System.Environment.NewLine; s += "<LateStart>2017-12-01T08:00:00</LateStart>" + System.Environment.NewLine; s += "<LateFinish>2017-12-12T17:00:00</LateFinish>" + System.Environment.NewLine; s += "<StartVariance>0</StartVariance>" + System.Environment.NewLine; s += "<FinishVariance>0</FinishVariance>" + System.Environment.NewLine; s += "<WorkVariance>0.00</WorkVariance>" + System.Environment.NewLine; s += "<FreeSlack>0</FreeSlack>" + System.Environment.NewLine; s += "<TotalSlack>0</TotalSlack>" + System.Environment.NewLine; s += "<StartSlack>0</StartSlack>" + System.Environment.NewLine; s += "<FinishSlack>0</FinishSlack>" + System.Environment.NewLine; s += "<FixedCost>0</FixedCost>" + System.Environment.NewLine; s += "<FixedCostAccrual>3</FixedCostAccrual>" + System.Environment.NewLine; s += "<PercentComplete>" + PercentComplete + "</PercentComplete>" + System.Environment.NewLine; s += "<PercentWorkComplete>100</PercentWorkComplete>" + System.Environment.NewLine; s += "<Cost>0</Cost>" + System.Environment.NewLine; s += "<OvertimeCost>0</OvertimeCost>" + System.Environment.NewLine; s += "<OvertimeWork>PT0H0M0S</OvertimeWork>" + System.Environment.NewLine; s += "<ActualStart>2017-12-01T08:00:00</ActualStart>" + System.Environment.NewLine; s += "<ActualFinish>2017-12-12T17:00:00</ActualFinish>" + System.Environment.NewLine; s += "<ActualDuration>PT64H0M0S</ActualDuration>" + System.Environment.NewLine; s += "<ActualCost>0</ActualCost>" + System.Environment.NewLine; s += "<ActualOvertimeCost>0</ActualOvertimeCost>" + System.Environment.NewLine; s += "<ActualWork>PT0H0M0S</ActualWork>" + System.Environment.NewLine; s += "<ActualOvertimeWork>PT0H0M0S</ActualOvertimeWork>" + System.Environment.NewLine; s += "<RegularWork>PT0H0M0S</RegularWork>" + System.Environment.NewLine; s += "<RemainingDuration>PT0H0M0S</RemainingDuration>" + System.Environment.NewLine; s += "<RemainingCost>0</RemainingCost>" + System.Environment.NewLine; s += "<RemainingWork>PT0H0M0S</RemainingWork>" + System.Environment.NewLine; s += "<RemainingOvertimeCost>0</RemainingOvertimeCost>" + System.Environment.NewLine; s += "<RemainingOvertimeWork>PT0H0M0S</RemainingOvertimeWork>" + System.Environment.NewLine; s += "<ACWP>0.00</ACWP>" + System.Environment.NewLine; s += "<CV>0.00</CV>" + System.Environment.NewLine; s += "<ConstraintType>6</ConstraintType>" + System.Environment.NewLine; s += "<CalendarUID>-1</CalendarUID>" + System.Environment.NewLine; s += "<ConstraintDate>2017-12-12T17:00:00</ConstraintDate>" + System.Environment.NewLine; s += "<LevelAssignments>1</LevelAssignments>" + System.Environment.NewLine; s += "<LevelingCanSplit>1</LevelingCanSplit>" + System.Environment.NewLine; s += "<LevelingDelay>0</LevelingDelay>" + System.Environment.NewLine; s += "<LevelingDelayFormat>8</LevelingDelayFormat>" + System.Environment.NewLine; s += "<IgnoreResourceCalendar>0</IgnoreResourceCalendar>" + System.Environment.NewLine; s += "<HideBar>0</HideBar>" + System.Environment.NewLine; s += "<Rollup>0</Rollup>" + System.Environment.NewLine; s += "<BCWS>0.00</BCWS>" + System.Environment.NewLine; s += "<BCWP>0.00</BCWP>" + System.Environment.NewLine; s += "<PhysicalPercentComplete>0</PhysicalPercentComplete>" + System.Environment.NewLine; s += "<EarnedValueMethod>0</EarnedValueMethod>" + System.Environment.NewLine; s += "<PredecessorLink>" + System.Environment.NewLine; s += " <PredecessorUID>147</PredecessorUID>" + System.Environment.NewLine; s += " <Type>1</Type>" + System.Environment.NewLine; s += " <CrossProject>0</CrossProject>" + System.Environment.NewLine; s += " <LinkLag>0</LinkLag>" + System.Environment.NewLine; s += " <LagFormat>7</LagFormat>" + System.Environment.NewLine; s += "</PredecessorLink>" + System.Environment.NewLine; s += "<IsPublished>1</IsPublished>" + System.Environment.NewLine; s += "<CommitmentType>0</CommitmentType>" + System.Environment.NewLine; s += "<ExtendedAttribute>" + System.Environment.NewLine; s += " <FieldID>188743731</FieldID>" + System.Environment.NewLine; s += " <Value>Yes</Value>" + System.Environment.NewLine; s += "</ExtendedAttribute>" + System.Environment.NewLine; s += " <TimephasedData>" + System.Environment.NewLine; s += " <Type>11</Type>" + System.Environment.NewLine; s += " <UID>149</UID>" + System.Environment.NewLine; s += " <Start>2017-12-12T08:00:00</Start>" + System.Environment.NewLine; s += " <Finish>2017-12-12T17:00:00</Finish>" + System.Environment.NewLine; s += " <Unit>2</Unit>" + System.Environment.NewLine; s += " <Value>12.5</Value>" + System.Environment.NewLine; s += " </TimephasedData>" + System.Environment.NewLine; s += "</Task>"; return(s); }
/// <summary> /// Saves to an xml file /// </summary> /// <param name="FileName">File path of the new xml file</param> public void Save() { this.GameDate = GameEngine.GameTimer.GameDate; this.NightState = GameEngine.GameTimer.NightState; string FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\SavedGames\" + CreatedDate.ToString("yyyy-MM-dd hh_mm_ss") + ".sav"; using (FileStream fileStream = new FileStream(FileName, FileMode.Create)) using (StreamWriter sw = new StreamWriter(fileStream)) using (XmlTextWriter xmlWriter = new XmlTextWriter(sw)) { xmlWriter.Formatting = Formatting.Indented; xmlWriter.Indentation = 4; ToXml(xmlWriter); } }
public override string ToString() { return(string.Concat(Author.ToString(), " (", CreatedDate.ToString(), ")")); }
public Invoice(int issuerId, byte[] content) { CreatedDate = DateTime.UtcNow; Name = $"{issuerId}_Invoice_{CreatedDate.ToString("dd-MM-yyyy_HH-mm-ss")}.pdf"; Content = content; }
public override string ToString() { return($"legacyProfileData: \n \t username: {Username.ToString()}, \n \t isMember: {IsMember.ToString()}, \n \t createdDate: {CreatedDate.ToString()}, \n \t migratedDate: {MigratedDate.ToString()}"); }