My COM interface:
[ComVisible(true)]
public interface IPersonAccessor
{
Person GetById(int id);
}
The Person Class is a simple data class as below:
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
Do I need to do anything else for the Person class(putting attributes on person class etc) so that C++ code can access its properties?