Permalink
Browse files

c# sample code

  • Loading branch information...
1 parent 54250d0 commit 1e79c06bc5f4fd026f3180168414bba5bcfb92ec Preston Lee committed Jan 25, 2010
@@ -0,0 +1,26 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following attributes.
+// Change them to the values specific to your project.
+
+[assembly: AssemblyTitle("sample_code")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
+
+[assembly: AssemblyVersion("1.0.*")]
+
+// The following attributes are used to specify the signing key for the assembly,
+// if desired. See the Mono documentation for more information about signing.
+
+//[assembly: AssemblyDelaySign(false)]
+//[assembly: AssemblyKeyFile("")]
View
@@ -0,0 +1,21 @@
+using System;
+
+namespace sample
+{
+ class MainClass
+ {
+ public static void Main (string[] args)
+ {
+ int times = 10;
+ int start = 42;
+ Console.WriteLine ("Starting loop...");
+ for (int n = start; n < times + start; n++) {
+ Console.WriteLine (n);
+ }
+ Console.WriteLine ("Done!");
+ if(1 == 1) {
+ Console.WriteLine("stuff");
+ }
+ }
+ }
+}
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8"?><Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86</Platform> <ProductVersion>9.0.21022</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{5417B3E9-5AED-43BB-A6F5-7D535C5DCD08}</ProjectGuid> <OutputType>Exe</OutputType> <RootNamespace>sample_code</RootNamespace> <AssemblyName>sample_code</AssemblyName> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug</OutputPath> <DefineConstants>DEBUG</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <PlatformTarget>x86</PlatformTarget> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <DebugType>none</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Release</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <PlatformTarget>x86</PlatformTarget> </PropertyGroup> <ItemGroup> <Reference Include="System" /> </ItemGroup> <ItemGroup> <Compile Include="Main.cs" /> <Compile Include="AssemblyInfo.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /></Project>
Binary file not shown.
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sample_code", "sample_code.csproj", "{5417B3E9-5AED-43BB-A6F5-7D535C5DCD08}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5417B3E9-5AED-43BB-A6F5-7D535C5DCD08}.Debug|x86.ActiveCfg = Debug|x86
+ {5417B3E9-5AED-43BB-A6F5-7D535C5DCD08}.Debug|x86.Build.0 = Debug|x86
+ {5417B3E9-5AED-43BB-A6F5-7D535C5DCD08}.Release|x86.ActiveCfg = Release|x86
+ {5417B3E9-5AED-43BB-A6F5-7D535C5DCD08}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = sample_code.csproj
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,23 @@
+<Properties>
+ <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" ctype="Workspace" />
+ <MonoDevelop.Ide.DebuggingService>
+ <BreakpointStore />
+ </MonoDevelop.Ide.DebuggingService>
+ <MonoDevelop.Ide.Workbench ActiveDocument="Main.cs" ctype="Workbench">
+ <Files>
+ <File FileName="Main.cs" Line="12" Column="2" />
+ </Files>
+ <Pads>
+ <Pad Id="ProjectPad">
+ <State expanded="True">
+ <Node name="sample_code" expanded="True">
+ <Node name="Main.cs" selected="True" />
+ </Node>
+ </State>
+ </Pad>
+ <Pad Id="ClassPad">
+ <State expanded="True" selected="True" />
+ </Pad>
+ </Pads>
+ </MonoDevelop.Ide.Workbench>
+</Properties>

0 comments on commit 1e79c06

Please sign in to comment.