Skip to content

Commit 4814bdb

Browse files
authored
Merge pull request #2 from BlazorExpress/features/method-return-type-name
Method return type name attribute
2 parents 9a7843a + a9e806a commit 4814bdb

2 files changed

Lines changed: 24 additions & 2 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+
}

BlazorExpress.Core/BlazorExpress.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<PackageId>BlazorExpress.Core</PackageId>
5-
<Version>0.1.0</Version>
6-
<PackageVersion>0.1.0</PackageVersion>
5+
<Version>0.1.1</Version>
6+
<PackageVersion>0.1.1</PackageVersion>
77

88
<!--<PackageIconUrl></PackageIconUrl>-->
99
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

0 commit comments

Comments
 (0)