IgnoreAttribute -> IgnoreMemberAttribute

This commit is contained in:
neuecc 2017-03-06 19:54:04 +09:00
Родитель c33045671c
Коммит f22ec10875
8 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -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)]