# Gendarme Report

Produced on 16.07.2010 12:41:53 UTC.

# Summary

Gendarme found 7 potential defects using 1 rules.

## List of assemblies analyzed [show]

- C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\bin\Debug\MonoGendarmeSamples.dll: 7 defects

## List of rules used [show]

Assembly:

- None

Type:

- None

Method:

- Gendarme.Rules.Correctness.CheckParametersNullityInVisibleMethodsRule : 7 defects

# Reported Defects

### 1. CheckParametersNullityInVisibleMethodsRule [hide]

Problem:

A visible method does not check its parameter(s) for null values.

Solution:

Since the caller is unknown you should always verify all of your parameters to protect yourself.

7 defect(s) found:

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test1(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈13)
Go to CheckParametersNullityInVisibleMethodsRule description

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test2(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈19)
Go to CheckParametersNullityInVisibleMethodsRule description

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test2Equals(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈30)
Go to CheckParametersNullityInVisibleMethodsRule description

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test2EqualsDefault(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈41)
Go to CheckParametersNullityInVisibleMethodsRule description

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test3(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈52)
Go to CheckParametersNullityInVisibleMethodsRule description

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test3Equals(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈63)
Go to CheckParametersNullityInVisibleMethodsRule description

Target: System.Boolean MonoGendarmeSamples.GenericClass::Test3EqualsDefault(T)
Assembly: MonoGendarmeSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Severity: High Confidence: Normal
Location: fs
Source: C:\wc\04_Prototypes\MonoGendarmeSamples\MonoGendarmeSamples\GenericClass.cs(≈74)
Go to CheckParametersNullityInVisibleMethodsRule description