Browse Source

Removed EmitDev test project

Brad Robinson 11 years ago
parent
commit
d633017eca
3 changed files with 0 additions and 219 deletions
  1. 0 61
      EmitDev/EmitDev.csproj
  2. 0 122
      EmitDev/Program.cs
  3. 0 36
      EmitDev/Properties/AssemblyInfo.cs

+ 0 - 61
EmitDev/EmitDev.csproj

@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
-    <ProductVersion>8.0.30703</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{C70C2324-5076-497A-B93F-C3C49DFDB045}</ProjectGuid>
-    <OutputType>Exe</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>EmitDev</RootNamespace>
-    <AssemblyName>EmitDev</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
-    <FileAlignment>512</FileAlignment>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
-    <PlatformTarget>x86</PlatformTarget>
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>TRACE;DEBUG</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
-    <PlatformTarget>x86</PlatformTarget>
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Runtime.Serialization" />
-    <Reference Include="System.Xml.Linq" />
-    <Reference Include="System.Data.DataSetExtensions" />
-    <Reference Include="Microsoft.CSharp" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="..\PetaJson.cs">
-      <Link>PetaJson.cs</Link>
-    </Compile>
-    <Compile Include="Program.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>

+ 0 - 122
EmitDev/Program.cs

@@ -1,122 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using PetaJson;
-using System.Globalization;
-using System.Runtime.Serialization.Json;
-using System.IO;
-using System.Runtime.Serialization;
-
-namespace EmitDev
-{
-    [Json]
-    class Stuff
-    {
-        public string Name;
-        public string Address;
-    }
-
-    [Json]
-    struct Person : IJsonWriting, IJsonWritten
-    {
-        public string StringField;
-        public int IntField;
-        public double DoubleField;
-        public bool BoolField;
-        public char CharField;
-        public DateTime DateTimeField;
-        public byte[] BlobField;
-        public List<Stuff> StuffsField;
-
-        public string StringProp { get; set; }
-        public int IntProp { get; set; }
-        public double DoubleProp { get; set; }
-        public bool BoolProp { get; set; }
-        public char CharProp { get; set; }
-        public DateTime DateTimeProp { get; set; }
-        public byte[] BlobProp { get; set; }
-        public List<Stuff> StuffsProp { get; set; }
-
-        public int? NullableField1;
-        public int? NullableField2;
-        public int? NullableProp1;
-        public int? NullableProp2;
-
-        void IJsonWritten.OnJsonWritten(IJsonWriter w)
-        {
-            w.WriteRaw("/* OnJsonWritten */ ");
-        }
-
-        void IJsonWriting.OnJsonWriting(IJsonWriter w)
-        {
-            w.WriteRaw("/* OnJsonWriting */");
-        }
-    }
-
-    [DataContract]
-    class DCTest
-    {
-        [DataMember(Name="AAA")] public string ZZZ;
-        [DataMember] private int priv;
-        [DataMember] public string Prop { get; set; }
-        [DataMember] public string Field;
-    }
-
-    class Program
-    {
-
-        static void Main(string[] args)
-        {
-            Json.WriteWhitespaceDefault = false;
-
-            var dc = new DCTest() { Prop = "Hi", Field = "Bye" };
-            var ser = new DataContractJsonSerializer(typeof(DCTest));
-            var memStream = new MemoryStream();
-            ser.WriteObject(memStream, dc);
-            var str = Encoding.UTF8.GetString(memStream.GetBuffer());
-            Console.WriteLine(str);
-
-            Console.WriteLine(Json.Format(dc));
-            return;
-
-
-            var p = new Person()
-            {
-                StringField = "Hello World",
-                IntField = 23,
-                DoubleField = 99.99,
-                BoolField = false,
-                CharField = 'X',
-                DateTimeField = DateTime.Now,
-                BlobField = new byte[] { 1, 2, 3, 4},
-                StuffsField = new List<Stuff>() { new Stuff() { Name="Brad", Address="Home" } },
-
-                StringProp = "Hello World",
-                IntProp = 23,
-                DoubleProp = 99.99,
-                BoolProp = false,
-                CharProp = 'X',
-                DateTimeProp = DateTime.Now,
-                BlobProp = new byte[] { 1, 2, 3, 4},
-                StuffsProp = new List<Stuff>() { new Stuff() { Name="Brad", Address="Home" } },
-
-                NullableField1 = null,
-                NullableField2 = 23,
-                NullableProp1 = null,
-                NullableProp2 = 23,
-            };
-
-            var json = Json.Format(p);
-            Console.WriteLine(json);
-
-            var p2 = Json.Parse<Person>(json);
-
-            Console.WriteLine();
-            Console.WriteLine();
-
-            var json2 = Json.Format(p2);
-            Console.WriteLine(json2);
-        }
-    }
-}

+ 0 - 36
EmitDev/Properties/AssemblyInfo.cs

@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following 
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("EmitDev")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("EmitDev")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible 
-// to COM components.  If you need to access a type in this assembly from 
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("43b1567f-dfaf-4b72-9172-43a259ba6c47")]
-
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers 
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]