Skip to content

Commit bb1e8b1

Browse files
committed
fixed few of deepsource's founds
1 parent ba0fa22 commit bb1e8b1

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/NHibernate.Test/TypesTest/BooleanTypeFixture.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ namespace NHibernate.Test.TypesTest
1212
[TestFixture]
1313
public class BooleanTypeFixture : TypeFixtureBase
1414
{
15-
protected override string TypeName
16-
{
17-
get { return "Boolean"; }
18-
}
15+
protected override string TypeName => "Boolean";
1916

2017
/// <summary>
2118
/// Verify Equals will correctly determine when the property

src/NHibernate/Type/BooleanType.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,9 @@ public override object Get(DbDataReader rs, string name, ISessionImplementor ses
4848
return GetBooleanAsObject(Convert.ToBoolean(rs[name]));
4949
}
5050

51-
public override System.Type PrimitiveClass
52-
{
53-
get { return typeof(bool); }
54-
}
51+
public override System.Type PrimitiveClass => typeof(bool);
5552

56-
public override System.Type ReturnedClass
57-
{
58-
get { return typeof(bool); }
59-
}
53+
public override System.Type ReturnedClass => typeof(bool);
6054

6155
public override void Set(DbCommand cmd, object value, int index, ISessionImplementor session)
6256
{

0 commit comments

Comments
 (0)