What Is CLR?
The .NET Framework provides a run-time environment, called the common language runtime, that runs the code and provides services that make the development process easier. Compilers and tools expose the common language runtime's functionality and enable you to write code that benefits from this managed execution environment. Code that you develop with a language compiler that targets the runtime is called managed code. Managed code benefits from features such as cross-language integration, cross-language exception handling, enhanced security, versioning and deployment support, a simplified model for component interaction, and debugging and profiling services.
.NET Framework Example
// Create an instance of the stream writer var file = new System.IO.StreamWriter('c:\\log.txt'); // Write some text to the file file.WriteLine('Hello World !'); // Close the file and dispose the object file.Dispose();
EZ_B Driver Example
// Move the servo on port D2 to position 20 on EZB #0 EZBs.Servo.SetServoPosition(2, 20);