12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- namespace ProtoBuf
- {
-
-
-
-
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field,
- AllowMultiple = false, Inherited = true)]
- public class ProtoIgnoreAttribute : Attribute { }
-
-
-
-
-
-
-
- [AttributeUsage(AttributeTargets.Class,
- AllowMultiple = true, Inherited = false)]
- public sealed class ProtoPartialIgnoreAttribute : ProtoIgnoreAttribute
- {
-
-
-
-
- public ProtoPartialIgnoreAttribute(string memberName)
- : base()
- {
- if (string.IsNullOrEmpty(memberName)) throw new ArgumentNullException(nameof(memberName));
- MemberName = memberName;
- }
-
-
-
- public string MemberName { get; }
- }
- }
|