wasSharp

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 26  →  ?path2? @ 27
/Strings.cs
@@ -4,7 +4,6 @@
// rights of fair usage, the disclaimer and warranty conditions. //
///////////////////////////////////////////////////////////////////////////
 
using System;
using System.IO;
using System.Linq;
 
@@ -24,34 +23,5 @@
{
return paths.Aggregate((x, y) => Path.Combine(x, y));
}
 
///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016 Wizardry and Steamworks - License: GNU GPLv3 //
///////////////////////////////////////////////////////////////////////////
/// <summary>
/// Determines if two strings are equal.
/// </summary>
/// <param name="a">first string</param>
/// <param name="b">second string</param>
/// <param name="comparison">string comparison to use</param>
/// <returns>true if the strings are equal</returns>
public static bool Equals(string a, string b, StringComparison comparison)
{
return (a == null && b == null) || (a.Length == b.Length && string.Equals(a, b, comparison));
}
 
///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016 Wizardry and Steamworks - License: GNU GPLv3 //
///////////////////////////////////////////////////////////////////////////
/// <summary>
/// Determines if two strings are equal.
/// </summary>
/// <param name="a">first string</param>
/// <param name="b">second string</param>
/// <returns>true if the strings are equal</returns>
public static bool Equals(string a, string b)
{
return (a == null && b == null) || (a != null && b != null && a.Length == b.Length && string.Equals(a, b));
}
}
}
}