More file types will be added in future and developer have to create a class for each newly added file type and should inherit it from BaseFileData. But each file may have specific attributes like
defaultText in TextFileData and runTimeVersion in CSharpFileData.

The problem here is that how can I design BaseFileData to get specific attributes of each files without using Reflection? and also please tell me how ObjectBuilder helps me in this problem or any other ready component of EL.

Please refer any article, book or any type of material which will be helpful to me for this problem.

I have FileDataCollection object at run-time which is a PolymorphicConfigurationElementCollection<BaseFileData>. The properties like DefaultText and RuntimeVersion which is the properties of child classes of BaseFileData and I don't know how many
child classes of BaseFileData are there so i can't cast the base object to any of it's child because of no knowledge at run-time.

One solution could be that I introduce a method in BaseFileData Class called object GetSpecificAttribute(string attributeName) and then use reflection to get the value of this attribute but I want not to use reflection and this solution always box the
values to object in case of primitive.