Gendarme Report

Table of contents

1  Summary
  1.1  List of assemblies searched
  1.2  List of rules used
2  Reported defects

Summary

List of assemblies searched

List of rules used

Assembly:

Module:

Type:

Method:

Reported Defects

1 UseStringEmptyRule hit in Mono.CSharp.CSharpCodeCompiler::CreateErrorFromString:0007

Problem:

The method 'System.CodeDom.Compiler.CompilerError Mono.CSharp.CSharpCodeCompiler::CreateErrorFromString(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

2 UseStringEmptyRule hit in Mono.CSharp.CSharpCodeGenerator::GenerateCompileUnitStart:004b

Problem:

The method 'System.Void Mono.CSharp.CSharpCodeGenerator::GenerateCompileUnitStart(System.CodeDom.CodeCompileUnit)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

3 UseStringEmptyRule hit in Mono.CSharp.CSharpCodeGenerator::GenerateCompileUnit:0030

Problem:

The method 'System.Void Mono.CSharp.CSharpCodeGenerator::GenerateCompileUnit(System.CodeDom.CodeCompileUnit)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

4 UseStringEmptyRule hit in Mono.CSharp.CSharpCodeGenerator::OutputStartBrace:0020

Problem:

The method 'System.Void Mono.CSharp.CSharpCodeGenerator::OutputStartBrace()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

5 NewLineLiteralRule hit in Mono.CSharp.CSharpCodeGenerator::QuoteSnippetString:0034

Problem:

The method 'System.String Mono.CSharp.CSharpCodeGenerator::QuoteSnippetString(System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

6 NewLineLiteralRule hit in Mono.CSharp.CSharpCodeGenerator::QuoteSnippetString:0045

Problem:

The method 'System.String Mono.CSharp.CSharpCodeGenerator::QuoteSnippetString(System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

7 UseStringEmptyRule hit in System.ComponentModel.MemberDescriptor::get_Description:0038

Problem:

The method 'System.String System.ComponentModel.MemberDescriptor::get_Description()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

8 UseStringEmptyRule hit in Microsoft.VisualBasic.VBCodeCompiler::CompileFromFileBatch:0036

Problem:

The method 'System.CodeDom.Compiler.CompilerResults Microsoft.VisualBasic.VBCodeCompiler::CompileFromFileBatch(System.CodeDom.Compiler.CompilerParameters,System.String[])' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

9 UseStringEmptyRule hit in Microsoft.VisualBasic.VBCodeGenerator::GenerateCompileUnitStart:004b

Problem:

The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::GenerateCompileUnitStart(System.CodeDom.CodeCompileUnit)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

10 UseStringEmptyRule hit in Microsoft.VisualBasic.VBCodeGenerator::GenerateTypeStart:00d2

Problem:

The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::GenerateTypeStart(System.CodeDom.CodeTypeDeclaration)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

11 UseStringEmptyRule hit in Microsoft.VisualBasic.VBCodeGenerator::OutputAttributes:0066

Problem:

The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::OutputAttributes(System.CodeDom.CodeAttributeDeclarationCollection,System.String,Microsoft.VisualBasic.VBCodeGenerator/LineHandling)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

12 UseStringEmptyRule hit in Microsoft.VisualBasic.VBCodeGenerator::OutputAttributes:00dd

Problem:

The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::OutputAttributes(System.CodeDom.CodeAttributeDeclarationCollection,System.String,Microsoft.VisualBasic.VBCodeGenerator/LineHandling)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

13 UseStringEmptyRule hit in System.Configuration.ConfigurationData::ReadConfigFile:0061

Problem:

The method 'System.Void System.Configuration.ConfigurationData::ReadConfigFile(System.Xml.XmlTextReader)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

14 UseStringEmptyRule hit in System.Diagnostics.DefaultTraceListener::GetPrefix:0020

Problem:

The method 'System.String System.Diagnostics.DefaultTraceListener::GetPrefix(System.String,System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

15 UseStringEmptyRule hit in System.Diagnostics.TraceListener::Fail:0002

Problem:

The method 'System.Void System.Diagnostics.TraceListener::Fail(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

16 UseStringEmptyRule hit in System.Diagnostics.TraceListener::Fail:0030

Problem:

The method 'System.Void System.Diagnostics.TraceListener::Fail(System.String,System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

17 UseStringEmptyRule hit in System.Diagnostics.PerformanceCounter::get_CounterHelp:0000

Problem:

The method 'System.String System.Diagnostics.PerformanceCounter::get_CounterHelp()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

18 UseStringEmptyRule hit in System.Diagnostics.Process::Start_common:0011

Problem:

The method 'System.Boolean System.Diagnostics.Process::Start_common(System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

19 DoubleCheckLockingRule hit in System.IO.FAMWatcher::StartMonitoringDirectory:00c7

Problem:

Method 'System.Void System.IO.FAMWatcher::StartMonitoringDirectory(System.IO.FAMData,System.Boolean)' uses the unreliable double-check locking technique.

Solution:

Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

20 UseStringEmptyRule hit in System.IO.FileSystemWatcher::get_FullPath:001c

Problem:

The method 'System.String System.IO.FileSystemWatcher::get_FullPath()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

21 UseStringEmptyRule hit in System.IO.FileSystemWatcher::set_Filter:0007

Problem:

The method 'System.Void System.IO.FileSystemWatcher::set_Filter(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

22 UseStringEmptyRule hit in System.IO.FileSystemWatcher::DispatchEvents:00fb

Problem:

The method 'System.Void System.IO.FileSystemWatcher::DispatchEvents(System.IO.FileAction,System.String,System.IO.RenamedEventArgs&)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

23 UseStringEmptyRule hit in System.IO.FileSystemWatcher::DispatchEvents:0133

Problem:

The method 'System.Void System.IO.FileSystemWatcher::DispatchEvents(System.IO.FileAction,System.String,System.IO.RenamedEventArgs&)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

24 DoubleCheckLockingRule hit in System.IO.InotifyWatcher::StartMonitoringDirectory:0138

Problem:

Method 'System.Void System.IO.InotifyWatcher::StartMonitoringDirectory(System.IO.InotifyData,System.Boolean)' uses the unreliable double-check locking technique.

Solution:

Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

25 UseStringEmptyRule hit in System.IO.KeventWatcher::ProcessEvent:0034

Problem:

The method 'System.Void System.IO.KeventWatcher::ProcessEvent(System.IO.kevent)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

26 UseStringEmptyRule hit in System.Net.BasicClient::InternalAuthenticate:0040

Problem:

The method 'System.Net.Authorization System.Net.BasicClient::InternalAuthenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

27 UseStringEmptyRule hit in System.Net.BasicClient::InternalAuthenticate:0069

Problem:

The method 'System.Net.Authorization System.Net.BasicClient::InternalAuthenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

28 UseStringEmptyRule hit in System.Net.BasicClient::InternalAuthenticate:007f

Problem:

The method 'System.Net.Authorization System.Net.BasicClient::InternalAuthenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

29 UseStringEmptyRule hit in System.Net.ChunkStream::ReadTrailer:0141

Problem:

The method 'System.Net.ChunkStream/State System.Net.ChunkStream::ReadTrailer(System.Byte[],System.Int32&,System.Int32)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

30 NewLineLiteralRule hit in System.Net.ChunkStream::ReadTrailer:0051

Problem:

The method 'System.Net.ChunkStream/State System.Net.ChunkStream::ReadTrailer(System.Byte[],System.Int32&,System.Int32)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

31 UseStringEmptyRule hit in System.Net.Configuration.ConnectionManagementData::Add:0007

Problem:

The method 'System.Void System.Net.Configuration.ConnectionManagementData::Add(System.String,System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

32 UseStringEmptyRule hit in System.Net.CookieContainer::Add:0018

Problem:

The method 'System.Void System.Net.CookieContainer::Add(System.Net.Cookie)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

33 UseStringEmptyRule hit in System.Net.CookieContainer::Cook:0011

Problem:

The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

34 UseStringEmptyRule hit in System.Net.CookieContainer::Cook:004e

Problem:

The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

35 UseStringEmptyRule hit in System.Net.CookieContainer::Cook:007a

Problem:

The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

36 UseStringEmptyRule hit in System.Net.CookieContainer::Cook:00b2

Problem:

The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

37 UseStringEmptyRule hit in System.Net.CookieContainer::GetCookieHeader:0025

Problem:

The method 'System.String System.Net.CookieContainer::GetCookieHeader(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

38 UseStringEmptyRule hit in System.Net.CookieContainer::CheckDomain:0001

Problem:

The method 'System.Boolean System.Net.CookieContainer::CheckDomain(System.String,System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

39 UseStringEmptyRule hit in System.Net.CookieContainer::GetCookies:0070

Problem:

The method 'System.Net.CookieCollection System.Net.CookieContainer::GetCookies(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

40 UseStringEmptyRule hit in System.Net.CookieContainer::GetCookies:00ca

Problem:

The method 'System.Net.CookieCollection System.Net.CookieContainer::GetCookies(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

41 UseStringEmptyRule hit in System.Net.CookieContainer::GetDir:0007

Problem:

The method 'System.String System.Net.CookieContainer::GetDir(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

42 UseStringEmptyRule hit in System.Net.CookieContainer::ParseAndAddCookies:0066

Problem:

The method 'System.Void System.Net.CookieContainer::ParseAndAddCookies(System.Uri,System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

43 UseStringEmptyRule hit in System.Net.Cookie::get_Path:0011

Problem:

The method 'System.String System.Net.Cookie::get_Path()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

44 DoubleCheckLockingRule hit in System.Net.DigestSession::Authenticate:00fb

Problem:

Method 'System.Net.Authorization System.Net.DigestSession::Authenticate(System.Net.WebRequest,System.Net.ICredentials)' uses the unreliable double-check locking technique.

Solution:

Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

45 UseStringEmptyRule hit in System.Net.DigestSession::Authenticate:0056

Problem:

The method 'System.Net.Authorization System.Net.DigestSession::Authenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

46 UseStringEmptyRule hit in System.Net.HttpWebRequest::set_Method:000c

Problem:

The method 'System.Void System.Net.HttpWebRequest::set_Method(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

47 UseStringEmptyRule hit in System.Net.HttpWebRequest::CommonChecks:0073

Problem:

The method 'System.Void System.Net.HttpWebRequest::CommonChecks(System.Boolean)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

48 UseStringEmptyRule hit in System.Net.HttpWebRequest::GetHeaders:01fc

Problem:

The method 'System.String System.Net.HttpWebRequest::GetHeaders()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

49 NewLineLiteralRule hit in System.Net.HttpWebRequest::SendRequestHeaders:0105

Problem:

The method 'System.Void System.Net.HttpWebRequest::SendRequestHeaders()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

50 UseStringEmptyRule hit in System.Net.HttpWebResponse::get_ContentEncoding:0023

Problem:

The method 'System.String System.Net.HttpWebResponse::get_ContentEncoding()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

51 UseStringEmptyRule hit in System.Net.HttpWebResponse::GetResponseHeader:001f

Problem:

The method 'System.String System.Net.HttpWebResponse::GetResponseHeader(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

52 UseStringEmptyRule hit in System.Net.HttpWebResponse::SetCookie:0015

Problem:

The method 'System.Void System.Net.HttpWebResponse::SetCookie(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

53 UseStringEmptyRule hit in System.Net.HttpWebResponse::SetCookie:00d8

Problem:

The method 'System.Void System.Net.HttpWebResponse::SetCookie(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

54 UseStringEmptyRule hit in System.Net.HttpWebResponse::SetCookie:0278

Problem:

The method 'System.Void System.Net.HttpWebResponse::SetCookie(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

55 UseStringEmptyRule hit in System.Net.ServicePoint::GetConnectionGroup:0006

Problem:

The method 'System.Net.WebConnectionGroup System.Net.ServicePoint::GetConnectionGroup(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

56 DontDestroyStackTrace hit in System.Net.Sockets.TcpClient::Connect:00de

Problem:

A catch block in method or property 'System.Void System.Net.Sockets.TcpClient::Connect(System.String,System.Int32)' throws the caught exception.

Solution:

If you need to throw the exception caught by the catch block, use 'throw;' instead of 'throw ex;'

57 DontDestroyStackTrace hit in System.Net.Sockets.UdpClient::Connect:0082

Problem:

A catch block in method or property 'System.Void System.Net.Sockets.UdpClient::Connect(System.String,System.Int32)' throws the caught exception.

Solution:

If you need to throw the exception caught by the catch block, use 'throw;' instead of 'throw ex;'

58 UseStringEmptyRule hit in System.Net.WebClient::get_BaseAddress:0017

Problem:

The method 'System.String System.Net.WebClient::get_BaseAddress()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

59 UseStringEmptyRule hit in System.Net.WebClient::set_BaseAddress:0007

Problem:

The method 'System.Void System.Net.WebClient::set_BaseAddress(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

60 NewLineLiteralRule hit in System.Net.WebClient::UploadFileCore:00b3

Problem:

The method 'System.Byte[] System.Net.WebClient::UploadFileCore(System.Uri,System.String,System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

61 NewLineLiteralRule hit in System.Net.WebClient::UploadFileCore:00d2

Problem:

The method 'System.Byte[] System.Net.WebClient::UploadFileCore(System.Uri,System.String,System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

62 UseStringEmptyRule hit in System.Net.WebClient::SetupRequest:011e

Problem:

The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

63 UseStringEmptyRule hit in System.Net.WebClient::SetupRequest:013d

Problem:

The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

64 UseStringEmptyRule hit in System.Net.WebClient::SetupRequest:015b

Problem:

The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

65 UseStringEmptyRule hit in System.Net.WebClient::SetupRequest:017a

Problem:

The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

66 UseStringEmptyRule hit in System.Net.WebClient::SetupRequest:019a

Problem:

The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

67 UseStringEmptyRule hit in System.Net.WebClient::SetupRequest:01ba

Problem:

The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

68 NewLineLiteralRule hit in System.Net.WebConnection::CreateTunnel:0083

Problem:

The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

69 NewLineLiteralRule hit in System.Net.WebConnection::CreateTunnel:00d6

Problem:

The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

70 NewLineLiteralRule hit in System.Net.WebConnection::CreateTunnel:0139

Problem:

The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

71 NewLineLiteralRule hit in System.Net.WebConnection::CreateTunnel:0153

Problem:

The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

72 UseStringEmptyRule hit in System.Net.WebConnection::GetResponse:0101

Problem:

The method 'System.Int32 System.Net.WebConnection::GetResponse(System.Byte[],System.Int32)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

73 DontDestroyStackTrace hit in System.Net.WebConnection::EndRead:0100

Problem:

A catch block in method or property 'System.Int32 System.Net.WebConnection::EndRead(System.IAsyncResult)' throws the caught exception.

Solution:

If you need to throw the exception caught by the catch block, use 'throw;' instead of 'throw ex;'

74 DoubleCheckLockingRule hit in System.Net.WebConnectionStream::EndRead:0073

Problem:

Method 'System.Int32 System.Net.WebConnectionStream::EndRead(System.IAsyncResult)' uses the unreliable double-check locking technique.

Solution:

Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

75 NewLineLiteralRule hit in System.Net.WebConnectionStream::BeginWrite:0133

Problem:

The method 'System.IAsyncResult System.Net.WebConnectionStream::BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

76 NewLineLiteralRule hit in System.Net.WebConnectionStream::Close:001c

Problem:

The method 'System.Void System.Net.WebConnectionStream::Close()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

77 UseStringEmptyRule hit in System.Net.WebHeaderCollection::IsRestricted:0012

Problem:

The method 'System.Boolean System.Net.WebHeaderCollection::IsRestricted(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

78 NewLineLiteralRule hit in System.Net.WebHeaderCollection::ToString:0037

Problem:

The method 'System.String System.Net.WebHeaderCollection::ToString()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

79 NewLineLiteralRule hit in System.Net.WebHeaderCollection::ToString:004e

Problem:

The method 'System.String System.Net.WebHeaderCollection::ToString()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.

Solution:

Replace literals with Environment.NewLine.

80 UseStringEmptyRule hit in System.Net.WebHeaderCollection::IsMultiValue:0007

Problem:

The method 'System.Boolean System.Net.WebHeaderCollection::IsMultiValue(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

81 UseStringEmptyRule hit in System.Text.RegularExpressions.Syntax.Parser::Escape:0000

Problem:

The method 'System.String System.Text.RegularExpressions.Syntax.Parser::Escape(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

82 UseStringEmptyRule hit in System.Text.RegularExpressions.Syntax.Parser::ParseGroup:0428

Problem:

The method 'System.Void System.Text.RegularExpressions.Syntax.Parser::ParseGroup(System.Text.RegularExpressions.Syntax.Group,System.Text.RegularExpressions.RegexOptions,System.Text.RegularExpressions.Syntax.Assertion)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

83 UseStringEmptyRule hit in System.Text.RegularExpressions.Regex::GroupNameFromNumber:000c

Problem:

The method 'System.String System.Text.RegularExpressions.Regex::GroupNameFromNumber(System.Int32)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

84 UseStringEmptyRule hit in System.Text.RegularExpressions.Regex::GroupNameFromNumber:0078

Problem:

The method 'System.String System.Text.RegularExpressions.Regex::GroupNameFromNumber(System.Int32)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

85 UseStringEmptyRule hit in System.Text.RegularExpressions.ReplacementEvaluator::CompileTerm:00b6

Problem:

The method 'System.Int32 System.Text.RegularExpressions.ReplacementEvaluator::CompileTerm(System.Int32&)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

86 UseStringEmptyRule hit in System.Text.RegularExpressions.ReplacementEvaluator::CompileTerm:0123

Problem:

The method 'System.Int32 System.Text.RegularExpressions.ReplacementEvaluator::CompileTerm(System.Int32&)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

87 UseStringEmptyRule hit in System.UriBuilder::set_Query:0007

Problem:

The method 'System.Void System.UriBuilder::set_Query(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

88 UseStringEmptyRule hit in System.Uri::get_Segments:00f6

Problem:

The method 'System.String[] System.Uri::get_Segments()' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.

89 UseStringEmptyRule hit in System.Uri::Reduce:0041

Problem:

The method 'System.String System.Uri::Reduce(System.String)' use literal "" instead of String.Empty.

Solution:

Change the empty string for String.Empty.