The following samples provide examples of managed applications and tools that illustrate functionality in the Shared Source CLI (SSCLI).
You can build all the samples at once by switching to the sscli\samples directory and running build.
You can build each individual sample by switching to the root directory of a sample and running build.
The samples below are grouped by directories.
| Sample | Sample documentation | Description |
|---|---|---|
| hello | hello.html | A simple Hello World program to test the functioning of the SSCLI. |
| helloxml | helloxml.html | A simple Hello World program to test the functioning of the SSCLI and XML class libraries. |
| Sample | Sample documentation | Description |
|---|---|---|
| clisp | clisp.html | A simple Lisp compiler, which compiles to common intermediate language (CIL). |
| myc | myc.html | A sample C-subset language implemented using the CLI. |
| Sample | Sample documentation | Description |
|---|---|---|
| StringFormat | stringformat.html | Demonstrates various string formatting codes. The user is allowed to input experimental format strings; the result of applying a format string to sample text is output to the console. |
| ListBuilder | listbuilder.html | Demonstrates how to use the code DOM to generate a strongly typed collection. |
| Net GetResponse | getresponse.html | Demonstrates how to use the System.Net WebRequest and WebResponse classes by getting HTML pages at a URL input by the user and then outputting the URL to the console. |
| Net UDPChat | udpchat.html | Demonstrates how to use the UDPClient class to create a chat client. |
| Reflection Emit | reflectionemit.html | Demonstrates how to use reflection emit. |
| Reflection Invoke | reflectioninvoke.html | Demonstrates how to invoke different kinds of methods through reflection. |
| Regular Expressions | regularexpressions.html | Demonstrates how to use the RegEx class and regular expressions. |
| Remoting howto\remoting\client howto\remoting\server howto\remoting\shared |
remoting.html | Demonstrates various aspects of the System.Runtime.Remoting namespace. |
| Managed Resources | managedresources.html | Demonstrates how to use managed resources. This sample allows the user to experiment with various options in creating and using managed resources and resource assemblies. |
| Security Permissions | permissions.html | Demonstrates how to use the Code Access Security Policy tool to change machine-level settings, and how to create and use a custom permissions object. |
| Serialization ISerializable | iserializable.html | Demonstrates how to use the ISerializable interface and XML serialization to customize the serialization of your own objects. |
| Serialization SimpleSerialize | simpleserialize.html | Demonstrates how to serialize a graph of objects using the serialization infrastructure and binary serialization. |
| XML Schema | xmlschema.html | Demonstrates how to read an XML Schema definition language (XSD) file into the Schema Object Model (SOM). |
| XML Transform | xmltransform.html | Demonstrates how to apply an Extensible Stylesheet Language Transformations (XSLT) file to an XML document using the XslTransform class. |
| XML Serialization | xmlserialization.html | Demonstrates how to use the XSD utility and XML serialization to create in-memory objects that have been deserialized from XML files. |
| Sample | Sample documentation | Description |
|---|---|---|
| hello | hello.html | Demonstrates a very simple program that uses the Tk wrapper classes. |
| pigpad | pigpad.html | A more advanced sample that uses the Tk wrapper assembly, sharedsourcecli.tk.dll. Implements a simple Notepad editor. |
| tk | tk_wrapper.html | A sample assembly that illustrates wrapping a dynamic link library implemented in C. |
| Sample | Sample documentation | Description |
|---|---|---|
| cleanbuild | cleanbuild.html | Illustrates obtaining standard output and standard error from a console application without deadlocking. |
| codetohtml | codetohtml.html | Creates a HTML file containing color-coded source code, in various languages including JScript and C#. |
| corclass | corclass.html | Searches assemblies for class names and return summary information about the class if it is found. This tool extensively uses the System.Reflection functionality. |
| crlf | crlf.html | Reads a text file and analyzes all line termination in the file. |
| dnprofiler | dnprofiler.html | Implements a profiling implementation in a dynamic link library. |
| getcliversion | getcliversion.html | Supports viewing and changing the runtime version number of an assembly. |
| grep | grep.html | Implements a simple grep text search sample utility. |
| keyconfig | keyconfig.html | Implements a simple tool that allows the user to change the default assembly key pair used for signing SSCLI assemblies during an SSCLI build. |
| typefinder | typefinder.html | Provides the user with a command line interface to provide information about types in their environment. |
| wordcount | wordcount.html | Introduces the base class library. This sample shows how to create an application that opens multiple files (specified on the command line) and counts each file's bytes, characters, words, and lines. |
| xsd | xsd.html | Generates XML schemas or managed classes from XDR, XML, and XSD files, or from classes in an assembly. |
Copyright (c) 2002 Microsoft Corporation. All rights reserved.