Address OpenTK Issue 1880

This commit is contained in:
Andy Korth 2013-01-03 10:14:59 -06:00
parent 5a6f5a870e
commit 84e97adf45
9 changed files with 18 additions and 9 deletions

View file

@ -1044,7 +1044,8 @@ namespace OpenTK
/// <returns></returns>
public override string ToString()
{
return String.Format("({0}, {1})", X, Y);
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{2} {1})", X, Y, separator);
}
#endregion

View file

@ -948,7 +948,8 @@ namespace OpenTK
/// <returns></returns>
public override string ToString()
{
return String.Format("({0}, {1})", X, Y);
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{2} {1})", X, Y, separator);
}
#endregion

View file

@ -315,7 +315,8 @@ namespace OpenTK
/// <summary>Returns a string that contains this Half2's numbers in human-legible form.</summary>
public override string ToString()
{
return String.Format("({0}, {1})", X.ToString(), Y.ToString());
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{2} {1})", X, Y, separator);
}
#endregion ToString()

View file

@ -1323,7 +1323,8 @@ namespace OpenTK
/// <returns></returns>
public override string ToString()
{
return String.Format("({0}, {1}, {2})", X, Y, Z);
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, separator);
}
#endregion

View file

@ -1337,7 +1337,8 @@ namespace OpenTK
/// <returns></returns>
public override string ToString()
{
return String.Format("({0}, {1}, {2})", X, Y, Z);
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, separator);
}
#endregion

View file

@ -358,7 +358,8 @@ namespace OpenTK
/// <summary>Returns a string that contains this Half3's numbers in human-legible form.</summary>
public override string ToString()
{
return String.Format("({0}, {1}, {2})", X.ToString(), Y.ToString(), Z.ToString());
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{3} {1}{3} {2})", X.ToString(), Y.ToString(), Z.ToString(), separator);
}
#endregion ToString()

View file

@ -1155,7 +1155,8 @@ namespace OpenTK
/// <returns></returns>
public override string ToString()
{
return String.Format("({0}, {1}, {2}, {3})", X, Y, Z, W);
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, separator);
}
#endregion

View file

@ -1174,7 +1174,8 @@ namespace OpenTK
/// <returns></returns>
public override string ToString()
{
return String.Format("({0}, {1}, {2}, {3})", X, Y, Z, W);
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, separator);
}
#endregion

View file

@ -389,7 +389,8 @@ namespace OpenTK
/// <summary>Returns a string that contains this Half4's numbers in human-legible form.</summary>
public override string ToString()
{
return String.Format("({0}, {1}, {2}, {3})", X.ToString(), Y.ToString(), Z.ToString(), W.ToString());
string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
return String.Format("({0}{4} {1}{4} {2}{4} {3})", X.ToString(), Y.ToString(), Z.ToString(), W.ToString(), separator);
}
#endregion ToString()