summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Version.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Version.cs')
-rw-r--r--src/mscorlib/src/System/Version.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/Version.cs b/src/mscorlib/src/System/Version.cs
index f2ef5d4..7c58d3c 100644
--- a/src/mscorlib/src/System/Version.cs
+++ b/src/mscorlib/src/System/Version.cs
@@ -25,7 +25,6 @@ namespace System {
// specified component.
[Serializable]
-[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Version : ICloneable, IComparable
, IComparable<Version>, IEquatable<Version>
{
@@ -34,7 +33,6 @@ namespace System {
private readonly int _Minor;
private readonly int _Build = -1;
private readonly int _Revision = -1;
- private static readonly char[] SeparatorsArray = new char[] { '.' };
public Version(int major, int minor, int build, int revision) {
if (major < 0)
@@ -301,7 +299,7 @@ namespace System {
return false;
}
- String[] parsedComponents = version.Split(SeparatorsArray);
+ String[] parsedComponents = version.Split('.');
int parsedComponentsLength = parsedComponents.Length;
if ((parsedComponentsLength < 2) || (parsedComponentsLength > 4)) {
result.SetFailure(ParseFailureKind.ArgumentException);