summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs
blob: 86939880c1147c7005cf888e1e182cff8d42c1ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;

namespace ProtoBuf
{
	[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
	public sealed class ProtoPartialIgnoreAttribute : ProtoIgnoreAttribute
	{
		public string MemberName
		{
			get
			{
				return this.memberName;
			}
		}

		private readonly string memberName;

		public ProtoPartialIgnoreAttribute(string memberName)
		{
			bool flag = Helpers.IsNullOrEmpty(memberName);
			if (flag)
			{
				throw new ArgumentNullException("memberName");
			}
			this.memberName = memberName;
		}
	}
}