Searched refs:clearDelegate (Results 1 – 2 of 2) sorted by relevance
50 private readonly Action<IMessage> clearDelegate; field in Google.Protobuf.Reflection.SingleFieldAccessor70 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);
45 private readonly Action<IMessage> clearDelegate; field in Google.Protobuf.Reflection.OneofAccessor47 …essor(OneofDescriptor descriptor, Func<IMessage, int> caseDelegate, Action<IMessage> clearDelegate) in OneofAccessor() argument51 this.clearDelegate = clearDelegate; in OneofAccessor()84 public void Clear(IMessage message) => clearDelegate(message);