Skip to content

Commit 5a08ad4

Browse files
committed
first stable release
1 parent 51e1c08 commit 5a08ad4

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/JsonObjectScene.cs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,24 @@ public void AddMaterial(Material material)
100100
materials.Add(material.Uuid, material);
101101
}
102102

103+
/// <summary>Determines whether the specified UUID has material.</summary>
104+
/// <param name="uuid">The UUID.</param>
105+
/// <returns>
106+
/// <c>true</c> if the specified UUID has material; otherwise, <c>false</c>.</returns>
103107
public bool HasMaterial(string uuid)
104108
{
105109
return materials.ContainsKey(uuid);
106110
}
107111

112+
/// <summary>Converts to string.</summary>
113+
/// <returns>A <see cref="string"/> that represents this instance.</returns>
114+
public override string ToString() => ToString(JsonDefaultSetting);
115+
116+
/// <summary>Converts to string.</summary>
117+
/// <param name="settings">The settings.</param>
118+
/// <returns>A <see cref="string"/> that represents this instance.</returns>
119+
public string ToString(JsonSerializerSettings settings) => JsonConvert.SerializeObject(this, settings);
120+
108121
[DataContract]
109122
private class ObjectMetadata
110123
{
@@ -162,15 +175,6 @@ internal ObjectMetadata()
162175
[DataMember(Name = "version")]
163176
[JsonProperty("version")]
164177
public string Version { get; } = "4.3";
165-
166-
/// <summary>Converts to string.</summary>
167-
/// <returns>A <see cref="string"/> that represents this instance.</returns>
168-
public override string ToString() => ToString(JsonDefaultSetting);
169-
170-
/// <summary>Converts to string.</summary>
171-
/// <param name="settings">The settings.</param>
172-
/// <returns>A <see cref="string"/> that represents this instance.</returns>
173-
public string ToString(JsonSerializerSettings settings) => JsonConvert.SerializeObject(this, settings);
174178
}
175179
}
176180
}

0 commit comments

Comments
 (0)