本文整理汇总了C#中Writer.WriteProperty方法的典型用法代码示例。如果您正苦于以下问题:C# Writer.WriteProperty方法的具体用法?C# Writer.WriteProperty怎么用?C# Writer.WriteProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Writer
的用法示例。
在下文中一共展示了Writer.WriteProperty方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Balance", Balance);
writer.WriteProperty("LastDay", LastDay);
writer.WriteProperty("LastHour", LastHour);
writer.WriteProperty("BankLoan", BankLoan);
writer.WriteProperty("BankCreditRating", BankCreditRating);
writer.WriteProperty("Ownership", Ownership);
}
示例2: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Forname", Forname);
writer.WriteProperty("Surname", Surname);
writer.WriteProperty("Sentence", Sentence);
writer.WriteProperty("Served", Served);
writer.WriteProperty("Nitg", Nitg);
if (Reputations != null) {
foreach (string reputation in Reputations) {
writer.WriteProperty("Reputation", reputation);
}
writer.WriteProperty("ReputationRevealed", ReputationRevealed);
}
}
示例3: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Type", Type);
}
示例4: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Version", Version);
writer.WriteProperty("TimeIndex", TimeIndex);
if (EnabledMisconduct) {
writer.WriteProperty("EnabledMisconduct", EnabledMisconduct);
}
if (FailureConditions) {
writer.WriteProperty("FailureConditions", FailureConditions);
}
if (EnabledVisibility) {
writer.WriteProperty("EnabledVisibility", EnabledVisibility);
} else {
Nodes.Remove("Visibility");
}
if (EnabledDecay) {
writer.WriteProperty("EnabledDecay", EnabledDecay);
} else {
// erase all dirt
var cellNodes = Nodes["Cells"][0].ListNodes().ToList();
cellNodes.ForEach(node => node.Properties.Remove("Con"));
}
if (UnlimitedFunds) {
writer.WriteProperty("UnlimitedFunds", UnlimitedFunds);
}
if (EnabledIntake) {
writer.WriteProperty("EnabledIntake", EnabledIntake);
}
}
示例5: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Size", Prisoners.Count);
}
示例6: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Id.i", Id);
}
示例7: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Progress", Progress);
}
示例8: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("ObjectId.i", ObjectId);
}
示例9: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Prisoner.i", PrisonerId);
writer.WriteProperty("Coverage", Coverage);
writer.WriteProperty("Suspicion", Suspicion);
writer.WriteProperty("HighestSuspicion", HighestSuspicion);
}
示例10: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Size", Log.Count);
}
示例11: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Size", PenaltyList.Values.Sum(penList => penList.Count));
}
示例12: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("TimeWithoutIncident", TimeWithoutIncident);
}
示例13: WriteProperties
public override void WriteProperties(Writer writer) {
writer.WriteProperty("Type", Type);
writer.WriteProperty("Category", Category);
}
示例14: WriteNodes
public override void WriteNodes(Writer writer) {
if (IsEntrance) {
writer.WriteProperty("Entrance", IsEntrance);
}
}