-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from d1820/add-enum-support
added enum support
- Loading branch information
Showing
26 changed files
with
527 additions
and
2 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
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
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,13 @@ | ||
|
||
namespace ProtoAttributor.Tests.Mocks | ||
{ | ||
|
||
public enum TestEnum | ||
{ | ||
One, | ||
Two, | ||
Three, | ||
Four, | ||
Five | ||
} | ||
} |
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,18 @@ | ||
|
||
using System.Runtime.Serialization; | ||
|
||
namespace ProtoAttributor.Tests.Mocks | ||
{ | ||
|
||
[DataContract] | ||
public enum TestEnumWithDataAttributes | ||
{ | ||
[EnumMember] | ||
One, | ||
[EnumMember] | ||
Two, | ||
Three, | ||
Four, | ||
Five | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
ProtoAttributor.Tests/Mocks/TestEnumWithDataMemberIgnore.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,17 @@ | ||
|
||
using System.Runtime.Serialization; | ||
|
||
namespace ProtoAttributor.Tests.Mocks | ||
{ | ||
[DataContract] | ||
public enum TestEnumWithDataMemberIgnore | ||
{ | ||
One, | ||
Two, | ||
[IgnoreDataMember] | ||
Three, | ||
Four, | ||
[IgnoreDataMember] | ||
Five | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
ProtoAttributor.Tests/Mocks/TestEnumWithProtoAttributes.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,17 @@ | ||
|
||
using ProtoBuf; | ||
|
||
namespace ProtoAttributor.Tests.Mocks | ||
{ | ||
[ProtoContract] | ||
public enum TestEnumWithProtoAttributes | ||
{ | ||
One, | ||
[ProtoEnum] | ||
Two, | ||
[ProtoEnum] | ||
Three, | ||
Four, | ||
Five | ||
} | ||
} |
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,17 @@ | ||
|
||
using ProtoBuf; | ||
|
||
namespace ProtoAttributor.Tests.Mocks | ||
{ | ||
[ProtoContract] | ||
public enum TestEnumWithProtoIgnore | ||
{ | ||
One, | ||
[ProtoIgnore] | ||
Two, | ||
Three, | ||
Four, | ||
[ProtoIgnore] | ||
Five | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.