Skip to content

Commit a869e6e

Browse files
committed
Refactoring
1 parent 3b1bb9c commit a869e6e

File tree

1 file changed

+7
-9
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient

1 file changed

+7
-9
lines changed

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public FbErrorCollection Errors
4040
{
4141
get
4242
{
43-
return _errors ?? (_errors = new FbErrorCollection());
43+
return _errors ??= new FbErrorCollection();
4444
}
4545
}
4646

@@ -66,20 +66,18 @@ public string SQLSTATE
6666

6767
internal FbException()
6868
: base()
69-
{
70-
}
69+
{ }
7170

7271
internal FbException(string message)
7372
: base(message)
74-
{
75-
}
73+
{ }
7674

7775
internal FbException(string message, Exception innerException)
7876
: base(message, innerException)
7977
{
80-
if (innerException is IscException)
78+
if (innerException is IscException iscException)
8179
{
82-
ProcessIscExceptionErrors((IscException)innerException);
80+
ProcessIscExceptionErrors(iscException);
8381
}
8482
}
8583

@@ -102,9 +100,9 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
102100

103101
#endregion
104102

105-
#region Internal Methods
103+
#region Private Methods
106104

107-
internal void ProcessIscExceptionErrors(IscException innerException)
105+
private void ProcessIscExceptionErrors(IscException innerException)
108106
{
109107
foreach (var error in innerException.Errors)
110108
{

0 commit comments

Comments
 (0)