scripts
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000062 RID: 98
|
||||
internal sealed class MapFieldAccessor : FieldAccessorBase
|
||||
{
|
||||
// Token: 0x060005C0 RID: 1472 RVA: 0x0001454A File Offset: 0x0001274A
|
||||
internal MapFieldAccessor(PropertyInfo property, FieldDescriptor descriptor)
|
||||
: base(property, descriptor)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060005C1 RID: 1473 RVA: 0x00014554 File Offset: 0x00012754
|
||||
public override void Clear(IMessage message)
|
||||
{
|
||||
((IDictionary)base.GetValue(message)).Clear();
|
||||
}
|
||||
|
||||
// Token: 0x060005C2 RID: 1474 RVA: 0x00014567 File Offset: 0x00012767
|
||||
public override void SetValue(IMessage message, object value)
|
||||
{
|
||||
throw new InvalidOperationException("SetValue is not implemented for map fields");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user