Skip to content

Commit 1a11dd2

Browse files
Use four spaces for indentatios
1 parent ae17e58 commit 1a11dd2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/csharp/nullable-references.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -388,36 +388,36 @@ Constructor of a class will still call the finalizer, even when there was an exc
388388
```csharp
389389
public class A
390390
{
391-
private string _name;
392-
private B _b;
391+
private string _name;
392+
private B _b;
393393

394-
public A(string name)
395-
{
396-
ArgumentNullException.ThrowIfNullOrEmpty(name);
397-
_name = name;
398-
_b = new B();
399-
}
394+
public A(string name)
395+
{
396+
ArgumentNullException.ThrowIfNullOrEmpty(name);
397+
_name = name;
398+
_b = new B();
399+
}
400400

401401
~A()
402402
{
403-
Dispose();
403+
Dispose();
404404
}
405405

406406
public void Dispose()
407407
{
408-
_b.Dispose();
409-
GC.SuppressFinalize(this);
408+
_b.Dispose();
409+
GC.SuppressFinalize(this);
410410
}
411411
}
412412

413413
public class B: IDisposable
414414
{
415-
public void Dispose() { }
415+
public void Dispose() { }
416416
}
417417

418418
public void Main()
419419
{
420-
var a = new A(string.Empty);
420+
var a = new A(string.Empty);
421421
}
422422
```
423423

0 commit comments

Comments
 (0)