diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs new file mode 100644 index 00000000..5c352c16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs @@ -0,0 +1,28 @@ +using System;
+
+namespace ProtoBuf
+{
+ [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public sealed class ProtoPartialMemberAttribute : ProtoMemberAttribute
+ {
+ public string MemberName
+ {
+ get
+ {
+ return this.memberName;
+ }
+ }
+
+ private readonly string memberName;
+
+ public ProtoPartialMemberAttribute(int tag, string memberName) : base(tag)
+ {
+ bool flag = Helpers.IsNullOrEmpty(memberName);
+ if (flag)
+ {
+ throw new ArgumentNullException("memberName");
+ }
+ this.memberName = memberName;
+ }
+ }
+}
|