Skip to main content

Microsoft Silverlight

Answered Question How to use emit technology to create an assembly that can load by Silverlight?RSS Feed

(0)

timiil
timiil

Member

Member

7 points

11 Posts

How to use emit technology to create an assembly that can load by Silverlight?

Hello all, i am looking for a such solution, use .NET reflection/emit technology to create an assembly, not same with the common .NET platform , but compatible with Silverlight , so we can use System.Reflection.Assembly.Load(byte[] rawAsm) method to load this assembly in Silverlight and call its type and member. Thanks for any help.

silverbyte
silverbyte

Participant

Participant

1338 points

405 Posts

Re: How to use emit technology to create an assembly that can load by Silverlight?

 Hi,

 I am not sure it's possible. It depends what you want to put in the assembly. Is it code or resources?

 Can you explain a bit your scenario?

 

Please click on 'Mark as answer' near my comment if you feel I answered your question.

timiil
timiil

Member

Member

7 points

11 Posts

Re: Re: How to use emit technology to create an assembly that can load by Silverlight?

Hi, i am just want to put some very simple POCO like entity code in this assembly , something like that : public class Product { public int ID { get; set; } public string Name { get; set; } //... } Of course we can not add something that don't supported in Silverlight :)

silverbyte
silverbyte

Participant

Participant

1338 points

405 Posts

Re: Re: Re: How to use emit technology to create an assembly that can load by Silverlight?

Have you tried to do it using examples for the full .NET framework?

Please click on 'Mark as answer' near my comment if you feel I answered your question.

mehroz
mehroz

Member

Member

409 points

88 Posts

Answered Question

Re: How to use emit technology to create an assembly that can load by Silverlight?

Hi,

 

See an example from Allen Chen – MSFT in this thread.

 

Regards,

Syed Mehroz Alam

My Blog | My Articles

timiil
timiil

Member

Member

7 points

11 Posts

Re: Re: How to use emit technology to create an assembly that can load by Silverlight?

Hi , Thanks for your information. But the problem is still very confuse to us , we can produce this assembly in Silverlight , but we don't know how to create one in common .NET platform (for example : Winform or ASP.NET) that is compatible with Silverlight...

silverbyte
silverbyte

Participant

Participant

1338 points

405 Posts

Re: Re: Re: How to use emit technology to create an assembly that can load by Silverlight?

I am not sure you can and you don't need actually.

Where do you need to use the created dynamic assembly?

Is it in Silvelright or on desktop app (Winform) or in ASP.NET ?

Please click on 'Mark as answer' near my comment if you feel I answered your question.

harishbhattbhatt
harishbh...

Member

Member

16 points

5 Posts

Answered Question

Re: Re: Re: Re: How to use emit technology to create an assembly that can load by Silverlight?

I am not sure but you can also try codedom technology to generate assembly...in my case i have developed a class and not an assembly, if required i can provide you that code

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities