Hi All,
I have a property and filed in a class as shown below
but when I try to assign an object of Claim class to 'Claims' property by reflection, it is throwing 'Parameter count mismatch.' exception. below is the code what I have used.
where property=Claims property
parentObject=ABC class
currentObject= Claim object
Please help me on this
Shiyas
I have a property and filed in a class as shown below
public Class ABC { public Claim[] Claims { get { return this.claimField; } set { this.claimField = value; } } private Claim[] claimField; } public class Claim { }
but when I try to assign an object of Claim class to 'Claims' property by reflection, it is throwing 'Parameter count mismatch.' exception. below is the code what I have used.
object[] indexArgs = { 0 }; property.SetValue(parentObject, currentObject, indexArgs);
where property=Claims property
parentObject=ABC class
currentObject= Claim object
Please help me on this
Shiyas