Samples Index

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.

Root of samples Directory

Sample Sample documentation Description
hello

samples\hello

hello.html A simple Hello World program to test the functioning of the SSCLI.
helloxml

samples\helloxml

helloxml.html A simple Hello World program to test the functioning of the SSCLI and XML class libraries.

 

samples\compilers Directory

Sample Sample documentation Description
clisp

compilers\clisp

clisp.html A simple Lisp compiler, which compiles to common intermediate language (CIL).
myc

compilers\myc

myc.html A sample C-subset language implemented using the CLI.

 

samples\howto Directory

Sample Sample documentation Description
StringFormat

howto\basedatatypes\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

howto\codedom

listbuilder.html Demonstrates how to use the code DOM to generate a strongly typed collection.
Net GetResponse

howto\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

howto\net\udpchat

udpchat.html Demonstrates how to use the UDPClient class to create a chat client.
Reflection Emit

howto\reflection\emit

reflectionemit.html Demonstrates how to use reflection emit.
Reflection Invoke

howto\reflection\invoke

reflectioninvoke.html Demonstrates how to invoke different kinds of methods through reflection.
Regular Expressions

howto\regularexpressions

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

howto\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

howto\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

howto\serialization\iserializable

iserializable.html Demonstrates how to use the ISerializable interface and XML serialization to customize the serialization of your own objects.
Serialization SimpleSerialize

howto\serialization\simpleserialize

simpleserialize.html Demonstrates how to serialize a graph of objects using the serialization infrastructure and binary serialization.
XML Schema

howto\xml\xmlschema

xmlschema.html Demonstrates how to read an XML Schema definition language (XSD) file into the Schema Object Model (SOM).
XML Transform

howto\xml\xmltransform

xmltransform.html Demonstrates how to apply an Extensible Stylesheet Language Transformations (XSLT) file to an XML document using the XslTransform class.
XML Serialization

howto\xmlserialization

xmlserialization.html Demonstrates how to use the XSD utility and XML serialization to create in-memory objects that have been deserialized from XML files.

 

samples\pigui Directory

Sample Sample documentation Description
hello

pigui\hello

hello.html Demonstrates a very simple program that uses the Tk wrapper classes. 
pigpad

pigui\pigpad

pigpad.html A more advanced sample that uses the Tk wrapper assembly, sharedsourcecli.tk.dll.  Implements a simple Notepad editor.
tk

pigui\tk

tk_wrapper.html A sample assembly that illustrates wrapping a dynamic link library implemented in C.

 

samples\utilities Directory

Sample Sample documentation Description
cleanbuild

utilities\cleanbuild

cleanbuild.html Illustrates obtaining standard output and standard error from a console application without deadlocking. 
codetohtml

utilities\codetohtml

codetohtml.html Creates a HTML file containing color-coded source code, in various languages including JScript and C#.
corclass

utilities\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

utilities\crlf

crlf.html Reads a text file and analyzes all line termination in the file.
dnprofiler

utilities\dnprofiler

dnprofiler.html Implements a profiling implementation in a dynamic link library.
getcliversion

utilities\getcliversion

getcliversion.html Supports viewing and changing the runtime version number of an assembly.
grep

utilities\grep

grep.html Implements a simple grep text search sample utility.
keyconfig

utilities\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

utilities\typefinder

typefinder.html Provides the user with a command line interface to provide information about types in their environment.
wordcount

utilities\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

utilities\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.