Permalink
Browse files

adding missing numeric signatures for Elem

  • Loading branch information...
sdether committed Feb 8, 2012
1 parent 15c1a83 commit a4a3493126bd70950840d957e1e8e98623b35158
Showing with 47 additions and 2 deletions.
  1. +47 −2 src/mindtouch.dream/Xml/XDoc.cs
@@ -1240,24 +1240,67 @@ public class XDoc : IEnumerable<XDoc>, ICloneable {
}
return Start(tag).Value(value).End();
}
+
+ /// <summary>
+ /// Adds a complete child.
+ /// </summary>
+ /// <param name="tag">Element name</param>
+ /// <param name="value">Value to add</param>
+ /// <returns>Current XDoc instance</returns>
+ public XDoc Elem(string tag, short value) {
+ return Elem(tag, value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
+ }
+
+ /// <summary>
+ /// Adds a complete child.
+ /// </summary>
+ /// <param name="tag">Element name</param>
+ /// <param name="value">Value to add</param>
+ /// <returns>Current XDoc instance</returns>
+ public XDoc Elem(string tag, ushort value) {
+ return Elem(tag, value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
+ }
+
/// <summary>
/// Adds a complete child.
/// </summary>
/// <param name="tag">Element name</param>
/// <param name="value">Value to add</param>
/// <returns>Current XDoc instance</returns>
public XDoc Elem(string tag, int value) {
- return Elem(tag,value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
+ return Elem(tag, value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
}
+
+ /// <summary>
+ /// Adds a complete child.
+ /// </summary>
+ /// <param name="tag">Element name</param>
+ /// <param name="value">Value to add</param>
+ /// <returns>Current XDoc instance</returns>
+ public XDoc Elem(string tag, uint value) {
+ return Elem(tag, value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
+ }
+
/// <summary>
/// Adds a complete child.
/// </summary>
/// <param name="tag">Element name</param>
/// <param name="value">Value to add</param>
/// <returns>Current XDoc instance</returns>
public XDoc Elem(string tag, long value) {
- return Elem(tag,value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
+ return Elem(tag, value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
}
+
+ /// <summary>
+ /// Adds a complete child.
+ /// </summary>
+ /// <param name="tag">Element name</param>
+ /// <param name="value">Value to add</param>
+ /// <returns>Current XDoc instance</returns>
+ public XDoc Elem(string tag, ulong value) {
+ return Elem(tag, value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
+ }
+
/// <summary>
/// Adds a complete child.
/// </summary>
@@ -1267,6 +1310,7 @@ public class XDoc : IEnumerable<XDoc>, ICloneable {
public XDoc Elem(string tag, float value) {
return Elem(tag,value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
}
+
/// <summary>
/// Adds a complete child.
/// </summary>
@@ -1276,6 +1320,7 @@ public class XDoc : IEnumerable<XDoc>, ICloneable {
public XDoc Elem(string tag, double value) {
return Elem(tag,value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat));
}
+
/// <summary>
/// Adds a complete child.
/// </summary>

0 comments on commit a4a3493

Please sign in to comment.