Home
last modified time | relevance | path

Searched refs:clearDelegate (Results 1 – 2 of 2) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DSingleFieldAccessor.cs50 private readonly Action<IMessage> clearDelegate; field in Google.Protobuf.Reflection.SingleFieldAccessor
70 clearDelegate = message => SetValue(message, null); in SingleFieldAccessor()
78 clearDelegate = message => in SingleFieldAccessor()
101 clearDelegate = ReflectionUtil.CreateActionIMessage(clearMethod); in SingleFieldAccessor()
116 clearDelegate = message => SetValue(message, defaultValue); in SingleFieldAccessor()
120 public override void Clear(IMessage message) => clearDelegate(message);
DOneofAccessor.cs45 private readonly Action<IMessage> clearDelegate; field in Google.Protobuf.Reflection.OneofAccessor
47 …essor(OneofDescriptor descriptor, Func<IMessage, int> caseDelegate, Action<IMessage> clearDelegate) in OneofAccessor() argument
51 this.clearDelegate = clearDelegate; in OneofAccessor()
84 public void Clear(IMessage message) => clearDelegate(message);