Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi all,
I want to know how C# communicate with assembly?
I want to know how(codes and other relation in behind)
thank you.
Posted

This link-[Using Assemblies in Microsoft .NET and C#][^] might help you.
you can also look at this CP Article[^] for more reference.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 12-Nov-11 20:30pm    
Right, my 5, but I think the confusion of OP is see deep so its better to start from the very beginning; please see my solution.
--SA
RaviRanjanKr 13-Nov-11 0:15am    
I agree and Voted you 5+ for your nice answer Once again.
The question is, well… isolated from the reality. C# does not "communicate with assembly". This is a computer languages understood by the compiler (csc.exe) use to create an assembly.

As you already start moving in wrong direction about understanding the very basics of technology, I would advise you to start reading about .NET from the very beginning.

For example, start from here:
http://en.wikipedia.org/wiki/.NET_Framework[^],
http://en.wikipedia.org/wiki/Common_Language_Infrastructure[^],
http://en.wikipedia.org/wiki/.NET_assembly[^],
http://msdn.microsoft.com/en-us/netframework/[^].

Maybe, even deeper:
http://en.wikipedia.org/wiki/Compiler[^],
http://en.wikipedia.org/wiki/Computer_language[^],
http://en.wikipedia.org/wiki/Platform_%28computing%29[^].

—SA
 
Share this answer
 
Comments
RaviRanjanKr 13-Nov-11 0:14am    
Nice suggestion, Good reference links and My 5+
Sergey Alexandrovich Kryukov 13-Nov-11 0:25am    
Thank you, Ravi.
--SA
Sander Rossel 13-Nov-11 4:53am    
Nice links. They go pretty deep. I guess by this time the OP doesn't really want to know anymore ;p
Sergey Alexandrovich Kryukov 13-Nov-11 9:41am    
Do you think, does not want to know? I hope not, otherwise it would be a time to give up programming. Hope not.
Thank you, Ravi,
--SA
Assembly in .net
try Google........
 
Share this answer
 
Do you mean referencing an Assembly to use from your code?
Right click on your project then click "Add reference" from the menu. Browse all available .NET or COM assemblies. You can also locate other assemblies using the Browse tab or select other Projects in the same Solution.
Pick one or more, click select.
In your code you can now call this assembly by calling the reference with it's full namespace.
For example:
C#
// Create a new Object of type MyAssembly.MyType, from your other assembly.
MyAssembly.MyType t = new MyAssembly.MyType();
// Use any public Methods on this assembly.
t.DoSomething();

So from there it works the same as for normal Classes :)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Nov-11 20:31pm    
Who knows what OP means? It makes no sense; and the confusion looks too deep, so, please see my solution.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900