fix amp
This commit is contained in:
parent
95fc3e43d7
commit
1e0beb41ed
|
|
@ -581,7 +581,7 @@ namespace AutoMapProperty
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(Key).Append(" = (").Append(GetFullString(Value.ToType)).Append(@")").Append(GetFullMethodName(Value.CustomFromMethod)).Append(@"(providers, this, source.").Append(Key).Append(")");
|
sb.Append(Key).Append(" = (").Append(GetFullString(Value.ToType)).Append(@")").Append(GetFullMethodName(Value.CustomFromMethod)).Append(@"(providers, source, source.").Append(Key).Append(")");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -833,6 +833,10 @@ namespace ").Append(classToGenerate.Namespace).Append(@"
|
||||||
public int GetHashCode(").Append(classToGenerate.Name).Append(@" obj)
|
public int GetHashCode(").Append(classToGenerate.Name).Append(@" obj)
|
||||||
{
|
{
|
||||||
return obj.GetHashCode();
|
return obj.GetHashCode();
|
||||||
|
}
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
return 7;
|
||||||
}");
|
}");
|
||||||
|
|
||||||
var abstr = cds.Modifiers.Any(x => x.IsKind(SyntaxKind.AbstractKeyword));
|
var abstr = cds.Modifiers.Any(x => x.IsKind(SyntaxKind.AbstractKeyword));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user