Links to asp.net c # classes and methods in silverlight project

Does anyone know how to do this? I built the C # class backend in asp.net, but want to access the same classes without re-creating them in silverlight. Is it possible?

+5
source share
4 answers

You can reuse cs files by adding them to your AS LINK project. Right-click in your project and select Add Existing ... Browse the file and in the "Open" button, use the drop-down arrow on the right to select "Add as Link". You will see a file added to your project with an icon on which a small Windows shortcut icon is attached to it.

- ASP.Net .NET. Silverlight CoreCLR ( Silverlight.) , oone, ...

, #if , ( , .)

+4

RIA Services - ASP.Net Silverlight.

, - Silverlight, "shared" . "MyClass.shared.cs".

RIA , ( ). .

+2

, ASP.NET ( ), , ..

IIRC , . , , , ...

IMO, - csproj, .cs( / ). . #, dll/.

, #if.

+1

WCF RIA . Silverlight , ASP.Net, , . , WCF RIA . , WCF RIA Services , , -.

MSDN WCF RIA.

+1
source

All Articles