[Mantisconnect-cvs] SF.net SVN: mantisconnect:[203] mantisconnect/trunk/clients/dotnet/ mantisconne
Brought to you by:
vboctor
From: <vb...@us...> - 2010-12-02 08:05:56
|
Revision: 203 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=203&view=rev Author: vboctor Date: 2010-12-02 08:05:50 +0000 (Thu, 02 Dec 2010) Log Message: ----------- Changed StringUtils to a static class rather than a sealed class with a private constructor. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs Modified: mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs 2009-10-10 00:52:08 UTC (rev 202) +++ mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs 2010-12-02 08:05:50 UTC (rev 203) @@ -17,16 +17,9 @@ /// <summary> /// A class that includes a set of string utility methods. /// </summary> - public sealed class StringUtils + public static class StringUtils { /// <summary> - /// No need to create inistances of a utility class. - /// </summary> - private StringUtils() - { - } - - /// <summary> /// Converts a multiline string from webservice format to native format that /// is used by the local OS and its controls. /// </summary> @@ -39,9 +32,9 @@ /// </remarks> /// <param name="webserviceMultiline">The string in webservice format.</param> /// <returns>The string in native format</returns> - public static string WebserviceMultilineToNative( string webserviceMultiline ) + public static string WebserviceMultilineToNative(string webserviceMultiline) { - return webserviceMultiline.Replace( "\n", Environment.NewLine ); + return webserviceMultiline.Replace("\n", Environment.NewLine); } /// <summary> @@ -55,9 +48,9 @@ /// </remarks> /// <param name="nativeMultiline"></param> /// <returns></returns> - public static string NativeMultilineToWebservice( string nativeMultiline ) + public static string NativeMultilineToWebservice(string nativeMultiline) { - return nativeMultiline.Replace( Environment.NewLine, "\n" ); + return nativeMultiline.Replace(Environment.NewLine, "\n"); } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |