Skip to content

Commit 2bf245f

Browse files
committed
Add MethodReturnTypeNameAttribute class
Introduces the `MethodReturnTypeNameAttribute` class in the `BlazorExpress.Core` namespace. This attribute allows for the specification of a method's return type name through a constructor that accepts a string parameter, which is stored in a read-only property called `TypeName`. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 9a7843a commit 2bf245f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
namespace BlazorExpress.Core;
2+
3+
/// <summary>
4+
/// Attribute to specify the method return type name.
5+
/// </summary>
6+
public class MethodReturnTypeNameAttribute : Attribute
7+
{
8+
#region Constructors
9+
10+
public MethodReturnTypeNameAttribute(string typeName)
11+
{
12+
TypeName = typeName;
13+
}
14+
15+
#endregion
16+
17+
#region Properties, Indexers
18+
19+
public string TypeName { get; }
20+
21+
#endregion
22+
}

0 commit comments

Comments
 (0)