internal string DebugOutputString() { var sb = new StringBuilder(); foreach (var item in PropertiesBool) { sb.AppendLine($"{Enum.GetName(typeof(RealmPropertyBool), item.Key)}: {item.Value}"); } foreach (var item in PropertiesFloat) { sb.AppendLine($"{Enum.GetName(typeof(RealmPropertyFloat), item.Key)}: {item.Value}"); } foreach (var item in PropertiesInt) { sb.AppendLine($"{Enum.GetName(typeof(RealmPropertyInt), item.Key)}: {item.Value}"); } foreach (var item in PropertiesInt64) { sb.AppendLine($"{Enum.GetName(typeof(RealmPropertyInt64), item.Key)}: {item.Value}"); } foreach (var item in PropertiesString.Where(x => x.Key != RealmPropertyString.Description)) { sb.AppendLine($"{Enum.GetName(typeof(RealmPropertyString), item.Key)}: {item.Value}"); } sb.AppendLine("\n"); return(sb.ToString().Replace("\r", "")); }
private void MakeRandomizationList() { if (Realm.PropertyCountRandomized.HasValue) { var list = new List <AppliedRealmProperty>(); list.AddRange(PropertiesBool.Values); list.AddRange(PropertiesInt.Values); list.AddRange(PropertiesInt64.Values); list.AddRange(PropertiesFloat.Values); list.AddRange(PropertiesString.Where(x => x.Key != RealmPropertyString.Description).Select(x => x.Value)); PropertiesForRandomization = list.AsReadOnly(); } }