Replace F extension with string interpolation
This commit is contained in:
@@ -69,14 +69,14 @@ namespace OpenRA
|
||||
il.MarkLabel(l);
|
||||
}
|
||||
else if (type != typeof(int))
|
||||
throw new NotImplementedException("SyncAttribute on member of unhashable type: {0}".F(type.FullName));
|
||||
throw new NotImplementedException($"SyncAttribute on member of unhashable type: {type.FullName}");
|
||||
|
||||
il.Emit(OpCodes.Xor);
|
||||
}
|
||||
|
||||
static Func<object, int> GenerateHashFunc(Type t)
|
||||
{
|
||||
var d = new DynamicMethod("hash_{0}".F(t.Name), typeof(int), new Type[] { typeof(object) }, t);
|
||||
var d = new DynamicMethod($"hash_{t.Name}", typeof(int), new Type[] { typeof(object) }, t);
|
||||
var il = d.GetILGenerator();
|
||||
var this_ = il.DeclareLocal(t).LocalIndex;
|
||||
il.Emit(OpCodes.Ldarg_0);
|
||||
|
||||
Reference in New Issue
Block a user