mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C#: Add example of sealing ToString on a record type.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
using System;
|
||||
|
||||
public record MyEntry(string Name, string Address)
|
||||
{
|
||||
sealed public override string ToString() => $"{Name} lives at {Address}";
|
||||
};
|
||||
Reference in New Issue
Block a user