0

i'm working with C# .In my prjt there is one class library added.My problem is how to get reference of objects tat of my project in my class library.

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by LizR
0

You need to "use" the reference, and then the classes within it can be instantiated.

0

i hav added reference of my project to Classlibrary by right clicking class library and addreference option it compiles successfully but i'm getting strange error ,something like :


System.ArgumentNullException was unhandled
Message="Value cannot be null.\r\nParameter name: activationContext"
Source="mscorlib"
ParamName="activationContext"
StackTrace:
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.