Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.3
-
None
Description
Class map automapping does not map the following class correctly:
public class ClassWithReadOnlyProperty
|
{
|
public ClassWithReadOnlyProperty(int x)
|
{
|
X = x;
|
}
|
|
|
public int X { get; }
|
}
|
Note that this is slightly different from properties with private setters, which are already supported:
public class ClassWithPrivateSetter
|
{
|
public ClassWithPrivateSetter(int x)
|
{
|
X = x;
|
}
|
|
|
public int X { get; private set; }
|
}
|