SIMPL# Library at a glance |
First, let's take a look at what happens after you create and open a new SIMPL# library project in VS.

When a new SIMPL# library project is created, a default namespace (which has the same name as your project, in our example namespaceMySIMPLSharpLibrary) and a default class (named Class1) are generated. A namespace is similar to a folder in a file system. It is associated with a name and it's used to put related program elements (classes) together to reduce the possibility of name conflicts between names used in different places. A namespace can contain other namespaces as well.
Additionally, your SIMPL# Library project will also include the Crestron.SimplSharp namespace, added automatically by the SIMPL# library plug-in, by inserting the using directive:
using Crestron.SimplSharp;The following using directives which allow you to use members of the corresponding namespaces will also be included, as Microsoft Visual Studio 2008 automatically inserts them into each new project that you create:
using System; using System.Collections.Generic; using System.Linq; using System.Text;
The basic framework for your SIMPL# Library project would look very similar to the sample below:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; namespace MySIMPLSharpLibrary { public class Class1 { //Sample } }
To remove namespaces that are not needed for the project:
Right click inside the code editor
Open the Organize Usings submenu
Select option Remove Unused Usings

![]() |
Copyright (C) 2013 to the present, Crestron Electronics, Inc. All rights reserved. No part of this work may be reproduced in any form, machine or natural, without the express written consent of Crestron Electronics.