-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding reference constructors attributes (#20611)
* update constructors for reference types * fix stylecop issue * add two way implicit for autorest deserialization * update constructor signatures for autogen * add attributes to define ctor types for autogen
- Loading branch information
Showing
5 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/InitializationConstructor.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Azure.ResourceManager.Core | ||
{ | ||
/// <summary> | ||
/// An attribute class indicating the constructor to use for initialization. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Constructor)] | ||
public class InitializationConstructor : Attribute | ||
{ | ||
/// <summary> | ||
/// Instatiate a new InitializationConstructor attribute. | ||
/// </summary> | ||
public InitializationConstructor() | ||
{ | ||
} | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SerializationConstructor.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Azure.ResourceManager.Core | ||
{ | ||
/// <summary> | ||
/// An attribute class indicating the constructor to use for serialization. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Constructor)] | ||
public class SerializationConstructor : Attribute | ||
{ | ||
/// <summary> | ||
/// Instatiate a new SerializationConstructor attribute. | ||
/// </summary> | ||
public SerializationConstructor() | ||
{ | ||
} | ||
} | ||
} |
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
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