Here is the code I'm calling
PropertyInfo targetColumn;
targetColumn = targetType.GetProperty("CtrId");
Here is the Class
using System;
using System.Runtime.Serialization;
using System.Xml.Serialization;
namespace JCDCHelper.CV
{
[DataContract, Serializable]
public class CenterAllActiveCV
{
[DataMember]
[XmlElement( DataType = "long" )]
public Int64 CtrId { get; set; }
[DataMember]
[XmlElement( DataType = "string", IsNullable = true )]
public string Name { get; set; }
}
}
I'm expecting targetColumn to be a valid PropertyInfo, but I'm getting null.
Am I missing something obvious?
Thanks,
Eric-