IgnoreAttribute -> IgnoreMemberAttribute
This commit is contained in:
Родитель
c33045671c
Коммит
f22ec10875
|
@ -167,9 +167,9 @@ namespace SharedData
|
|||
{
|
||||
[Key(0)]
|
||||
public int X { get; set; }
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public bool CalledBefore { get; private set; }
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public bool CalledAfter { get; private set; }
|
||||
|
||||
public Callback1(int x)
|
||||
|
@ -194,9 +194,9 @@ namespace SharedData
|
|||
[Key(0)]
|
||||
public int X { get; set; }
|
||||
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public bool CalledBefore { get; private set; }
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public bool CalledAfter { get; private set; }
|
||||
public Callback1_2(int x)
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace MessagePack.CodeGenerator
|
|||
UnionAttribute = compilation.GetTypeByMetadataName("MessagePack.UnionAttribute");
|
||||
SerializationConstructorAttribute = compilation.GetTypeByMetadataName("MessagePack.SerializationConstructorAttribute");
|
||||
KeyAttribnute = compilation.GetTypeByMetadataName("MessagePack.KeyAttribute");
|
||||
IgnoreAttribnute = compilation.GetTypeByMetadataName("MessagePack.IgnoreAttribute");
|
||||
IgnoreAttribnute = compilation.GetTypeByMetadataName("MessagePack.IgnoreMemberAttribute");
|
||||
IMessagePackSerializationCallbackReceiver = compilation.GetTypeByMetadataName("MessagePack.IMessagePackSerializationCallbackReceiver");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ namespace UnityEngine
|
|||
[Key(0)]
|
||||
public Vector3 center { get; set; }
|
||||
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public Vector3 extents { get; set; }
|
||||
|
||||
[Key(1)]
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace MessagePack
|
|||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public class IgnoreAttribute : Attribute
|
||||
public class IgnoreMemberAttribute : Attribute
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -785,7 +785,7 @@ namespace MessagePack.Internal
|
|||
var hiddenIntKey = 0;
|
||||
foreach (var item in type.GetRuntimeProperties())
|
||||
{
|
||||
if (item.GetCustomAttribute<IgnoreAttribute>(true) != null) continue;
|
||||
if (item.GetCustomAttribute<IgnoreMemberAttribute>(true) != null) continue;
|
||||
|
||||
var member = new EmittableMember
|
||||
{
|
||||
|
@ -800,7 +800,7 @@ namespace MessagePack.Internal
|
|||
}
|
||||
foreach (var item in type.GetRuntimeFields())
|
||||
{
|
||||
if (item.GetCustomAttribute<IgnoreAttribute>(true) != null) continue;
|
||||
if (item.GetCustomAttribute<IgnoreMemberAttribute>(true) != null) continue;
|
||||
if (item.GetCustomAttribute<System.Runtime.CompilerServices.CompilerGeneratedAttribute>(true) != null) continue;
|
||||
if (item.IsStatic) continue;
|
||||
|
||||
|
@ -824,7 +824,7 @@ namespace MessagePack.Internal
|
|||
|
||||
foreach (var item in type.GetRuntimeProperties())
|
||||
{
|
||||
if (item.GetCustomAttribute<IgnoreAttribute>(true) != null) continue;
|
||||
if (item.GetCustomAttribute<IgnoreMemberAttribute>(true) != null) continue;
|
||||
|
||||
var member = new EmittableMember
|
||||
{
|
||||
|
@ -871,7 +871,7 @@ namespace MessagePack.Internal
|
|||
|
||||
foreach (var item in type.GetRuntimeFields())
|
||||
{
|
||||
if (item.GetCustomAttribute<IgnoreAttribute>(true) != null) continue;
|
||||
if (item.GetCustomAttribute<IgnoreMemberAttribute>(true) != null) continue;
|
||||
if (item.GetCustomAttribute<System.Runtime.CompilerServices.CompilerGeneratedAttribute>(true) != null) continue;
|
||||
if (item.IsStatic) continue;
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ namespace MessagePackAnalyzer
|
|||
UnionAttribute = compilation.GetTypeByMetadataName("MessagePack.UnionAttribute");
|
||||
SerializationConstructorAttribute = compilation.GetTypeByMetadataName("MessagePack.SerializationConstructorAttribute");
|
||||
KeyAttribnute = compilation.GetTypeByMetadataName("MessagePack.KeyAttribute");
|
||||
IgnoreAttribnute = compilation.GetTypeByMetadataName("MessagePack.IgnoreAttribute");
|
||||
IgnoreAttribnute = compilation.GetTypeByMetadataName("MessagePack.IgnoreMemberAttribute");
|
||||
IMessagePackSerializationCallbackReceiver = compilation.GetTypeByMetadataName("MessagePack.IMessagePackSerializationCallbackReceiver");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ namespace MessagePack.Tests.ExtensionTests
|
|||
public IReactiveProperty<int> Prop2 { get; private set; }
|
||||
[Key(2)]
|
||||
public IReadOnlyReactiveProperty<int> Prop3 { get; private set; }
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public IReadOnlyReactiveProperty<int> Prop4 { get; private set; }
|
||||
|
||||
public ViewModel(int x, int y, int z)
|
||||
|
|
|
@ -83,7 +83,7 @@ namespace ComplexdUnion
|
|||
[MessagePackObject]
|
||||
public class B : A
|
||||
{
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public string Type { get { return "B"; } }
|
||||
|
||||
[Key(0)]
|
||||
|
@ -95,7 +95,7 @@ namespace ComplexdUnion
|
|||
[MessagePackObject]
|
||||
public class C : A
|
||||
{
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public string Type { get { return "C"; } }
|
||||
|
||||
[Key(0)]
|
||||
|
@ -121,7 +121,7 @@ namespace ComplexdUnion
|
|||
[MessagePackObject]
|
||||
public class B2 : A2
|
||||
{
|
||||
[Ignore]
|
||||
[IgnoreMember]
|
||||
public string Type { get { return "B"; } }
|
||||
|
||||
[Key(0)]
|
||||
|
|
Загрузка…
Ссылка в новой задаче