-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new line to C# item templates with file-scoped namespaces (#30955)
- Loading branch information
1 parent
1430396
commit 43efc3b
Showing
13 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ssTemplatesTest.class.langVersion=10.0.targetFramework=net6.0.verified/class/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public class TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...emplatesTest.class.langVersion=preview.targetFramework=net7.0.verified/class/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public class TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...pClassTemplatesTest.enum.langVersion=10.targetFramework=net6.0.verified/enum/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public enum TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...als/DotnetCSharpClassTemplatesTest.enum.targetFramework=net7.0.verified/enum/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public enum TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...tesTest.interface.langVersion=10.0.targetFramework=net6.0.verified/interface/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public interface TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...ssTemplatesTest.record.langVersion=10.targetFramework=net6.0.verified/record/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public record class TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...ssTemplatesTest.struct.langVersion=10.targetFramework=net6.0.verified/struct/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public struct TestItem1 | ||
{ | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...provals/DotnetCSharpClassTemplatesTest.struct.langVersion=10.verified/struct/TestItem1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace ClassLib; | ||
|
||
public struct TestItem1 | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
template_feed/Microsoft.DotNet.Common.ItemTemplates/content/Enum-CSharp/Enum1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#if (csharpFeature_FileScopedNamespaces) | ||
namespace Company.ClassLibrary1; | ||
|
||
public enum Enum1 | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
template_feed/Microsoft.DotNet.Common.ItemTemplates/content/Record-CSharp/Record1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#if (csharpFeature_RecordClass) | ||
namespace Company.ClassLibrary1; | ||
|
||
public record class Record1 | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters