Skip to main content

References from GAC

🔗 Original Page — Source of this material


Description

When you use C# snippets, you have access to all features of the C# language. It includes an extensive library of classes and methods that cover most of the tasks you might encounter. You can learn more about the features and descriptions of these library classes on the .NET Framework Class Library page.

If you can’t find a class to solve your task, you can add a third-party class library. To do this, add the References from GAC element to the panel, where you can connect your library.

How to use?

If you can’t find a class you need when using C# snippets, you can add a third-party class library. To do this, add the References from GAC element to the static blocks panel.

image-20200817-105211

A new element will appear in the static blocks panel:

image-20200817-105241

When you open this element, a window will appear showing the libraries currently connected.

image-20200817-105308

Use the “Add” button to add your library — select it from the list or upload it from a file.

image-20200817-105344

You can also set a filter to help find the necessary data.

image-20200817-105411

Once you’ve added the desired library, you need to specify a new namespace using the block ❗→ Using Directives and Shared Code.

image-20220211-163401

Whether you are using the standard .NET Framework class library or a third-party library, to access classes without specifying the namespace and keep your code looking clean, it's a good idea to use ❗→ Using Directives and Shared Code.