I have a task where i am reading from flatfile and i want to replace the values where to space where i find tab. when i run the below script it is giving me error at runtime stating that Property set method not found. below screen shot shows the script and runtime error. any help is welcome
this is my script code
public override void Input0_ProcessInputRow(Input0Buffer Row)
{
foreach (PropertyInfo dataColumn in Row.GetType().GetProperties())
{
if (dataColumn.Name.ToLower().EndsWith("_isnull") == false && dataColumn.PropertyType == typeof(string))
{
object objValue = dataColumn.GetValue(Row, null);
if (objValue != null)
{
string value = objValue.ToString();
value.Replace("\t", " ");
dataColumn.SetValue(Row, value, null);
}
}
}
}