Skip to content

Commit 1e1b31d

Browse files
committed
Simpler code
1 parent a869e6e commit 1e1b31d

File tree

1 file changed

+3
-21
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient

1 file changed

+3
-21
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbException.cs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,11 @@ public sealed class FbException : DbException
3636
#region Properties
3737

3838
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
39-
public FbErrorCollection Errors
40-
{
41-
get
42-
{
43-
return _errors ??= new FbErrorCollection();
44-
}
45-
}
39+
public FbErrorCollection Errors => _errors ??= new FbErrorCollection();
4640

47-
public override int ErrorCode
48-
{
49-
get
50-
{
51-
return (InnerException as IscException)?.ErrorCode ?? 0;
52-
}
53-
}
41+
public override int ErrorCode => (InnerException as IscException)?.ErrorCode ?? 0;
5442

55-
public string SQLSTATE
56-
{
57-
get
58-
{
59-
return (InnerException as IscException)?.SQLSTATE;
60-
}
61-
}
43+
public string SQLSTATE => (InnerException as IscException)?.SQLSTATE;
6244

6345
#endregion
6446

0 commit comments

Comments
 (0)