-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ksqlDB.RestApi.Client]: fixed creation of multiple FieldMetadata for…
… primitive field in Base class unit test #102
- Loading branch information
1 parent
644b29a
commit 111a03f
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
using System.Reflection; | ||
|
||
namespace ksqlDb.RestApi.Client.FluentAPI.Builders | ||
namespace ksqlDb.RestApi.Client.FluentAPI.Builders; | ||
internal record MemberInfoKey | ||
{ | ||
internal record MemberInfoKey | ||
internal Module Module { get; set; } | ||
internal int MetadataToken { get; set; } | ||
} | ||
|
||
internal static class MemberInfoExtensions | ||
{ | ||
internal static MemberInfoKey ToMemberInfoKey(this MemberInfo memberInfo) | ||
{ | ||
internal Module Module { get; set; } | ||
internal int MetadataToken { get; set; } | ||
return new MemberInfoKey | ||
{ | ||
Module = memberInfo.Module, | ||
MetadataToken = memberInfo.MetadataToken | ||
}; | ||
} | ||
} |