Add a property to already created Type at runtime C# ASP.NET -


I needed to prepare squares and items on runtime. Therefore, I made it look like this

< P> I am storing all the built-in types in a list.

But now the other requirements are to add properties of the type already prepared.

This reason, if I want to use Class A as a property type in class B and both say in class C.

I have read a lot of articles on it, but have not yet resolved

Any help would be appreciated.

Thank you


Actually, I'm in the process of developing a Multitenant application such as LiterwHRR by Microsoft.

This will be a system where the administrator can do all the sites with the same growth management functionality (such as MS SharePoint)

Everything is done in addition to the workflow!

In the table to store the data, I am storing it in XML format ..

Example:

   

Web Parts are created on the runtime by using XSLT for everything from control of events with events for web parts.

Here, the challenge occurs when I need to use an expression evaluator to apply workflows to it.

Example: if UserInfo.Name == "Miron"

everything is built on runtime, so retrieve table information as an object Have to do.

Let me know that I am not clear!

If types are present then it becomes very difficult; You can not add the real properties to an existing type, but if the code that inspects, the value will be used by TypeDescriptor (which is the most data-binding ) then you type of custom via PropertyDescriptor s - either iCstType descriptor (which you do on Build ), Or TypeDescriptionProvider .

Both too many are complex, and both also demand that you have easier access to additional data (asset-bags).

Note that in 4.0, there may be some utility in dynamic .

If you want to avoid it, then wrap some of the types that look similar but with additional properties.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -