Calling methods from different projects in one solution

There are 3 projects in one solution. I do basic manipulations from the main file in the 1st project. However, I need to call methods and use classes from the 3rd project. For instance:

- The 3rd project has:

public DataClasses1DataContext() : base(global::WindowsFormsApplication1.Properties.Settings.Default.mediaBorshchConnectionString, mappingSource) { OnCreated(); } 

How to name it from my first project?

 DataClasses1DataContext borshch = new DataClasses1DataContext() 
+8
source share
1 answer

You need to add a link to the third project in your first project. To do this, right-click on your project, select "Add Link", then select the project in your solution. When your main project refers to a third project, you can access its public types.

+20
source

Source: https://habr.com/ru/post/918422/


All Articles