You can create .Net assemblies as CMS items using Smartsite iXperion. These assemblies should be stored under Site Root\Configuration\Virtual Assemblies.
By default, a virtual assembly is included that exposes the 'helloworld' macro.
The result of this macro, and a viper method in the same assembly, are shown below
Hello Virtual World