<%@ Webhandler Language="C#" CodeBehind="Global.asax.cs" Inherits="Microsoft.Foundation.Web.Global" %>bool public false
<%
public string Foo()
{
return "foo";
}
%>
<%
Public Function Foo() As String
Return "foo"
End Function
%>
public class Foo
{
// code goes here
}
<span class="className"></span>
public class StringDemo {
public static void main(String[] args) {
String palindrome = "Dot saw I was Tod";
}
}
function FunctionName(argOne, argTwo) {
return argOne + argTwo;
}
SELECT * FROM [TableName]
Public Class Foo
'' code goes here
End Class
<elementName attributeName="attributeValue">
<?php
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// ** Test
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
class DB {
// Determines whether a new link resource is created for each connection
private $NEW_LINK = FALSE;
function doSomething($value) {
return $value;
}
}
?>
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
cout << "Welcome to C++ Programming" << endl;
}
# Create RTF block from text using named console colors.
function Append-RtfBlock ($block, $tokenColor)
{
$colorIndex = $rtfColorMap.$tokenColor
$block = $block.Replace('\','\\').Replace("`r`n","\cf1\par`r`n")
$block = $block.Replace("`t",'\tab').Replace('{','\{').Replace('}','\}')
$null = $rtfBuilder.Append("\cf$colorIndex $block")
}
declare module Test {
function FunctionName(argOne, argTwo) {
return argOne + argTwo;
}
}
// F# Commenttype Person(name:string, age:int) =let mutable internalAge = agenew(name:string) = Person(name, 0)member this.Name = namemember this.Agewith get() = internalAgeand set(value) = internalAge <- valuemember this.HasABirthday () = internalAge <- internalAge + 1member this.IsOfAge targetAge = internalAge >= targetAgeoverride this.ToString () = "Name: " + name + "\n" + "Age:" + (string)internalAge
function encode( s : string, shift : int ){ fun encodeChar(c) {if (c < 'a' || c > 'z') return cbase = (c - 'a').int rot = (base + shift) % 26return (rot.char + 'a') } s.map(encodeChar)}function caesar( s : string ) : string{ s.encode( 3 )}
-- Type annotation (optional)factorial :: Integer -> Integer -- Using recursionfactorial 0 = 1factorial n | n > 0 = n * factorial (n - 1) -- Using recursion but written without pattern matchingfactorial n = if n > 0 then n * factorial (n-1) else 1 -- Using a listfactorial n = product [1..n] -- Using fold (implements product)factorial n = foldl1 (*) [1..n] -- Point-free stylefactorial = foldr (*) 1 . enumFromTo 1 -- Point-free style analytic solutionimport Math.Gammafactorial = round . exp . lnGamma . fromIntegral . (+1)