Permalink
Browse files

updated NUnit. Moved all code over to Silverlight project and soft li…

…nked in full .net framework.
  • Loading branch information...
1 parent 24ef2d9 commit ce160109dc7ac6bbadb6f210c6687c311a64ab57 @staxmanade staxmanade committed Feb 14, 2011
Showing with 12,720 additions and 135 deletions.
  1. +8 −0 i4o.Silverlight.Tests/App.xaml
  2. +58 −0 i4o.Silverlight.Tests/App.xaml.cs
  3. +43 −1 {i4o2.Tests → i4o.Silverlight.Tests}/IndexTests.cs
  4. +7 −0 i4o.Silverlight.Tests/Properties/AppManifest.xml
  5. +37 −0 i4o.Silverlight.Tests/Properties/AssemblyInfo.cs
  6. +131 −0 i4o.Silverlight.Tests/i4o.Silverlight.Tests.csproj
  7. 0 {i4o2 → i4o.Silverlight}/ComparisonIndex.cs
  8. 0 {i4o2 → i4o.Silverlight}/DelegateFactory.cs
  9. 0 {i4o2 → i4o.Silverlight}/EqualityIndex.cs
  10. 0 {i4o2 → i4o.Silverlight}/ExtensionHelpers.cs
  11. +25 −0 i4o.Silverlight/Extensions.cs
  12. 0 {i4o2 → i4o.Silverlight}/IIndex.cs
  13. 0 {i4o2 → i4o.Silverlight}/IndexBuilder.cs
  14. 0 {i4o2 → i4o.Silverlight}/IndexLookupFailedException.cs
  15. 0 {i4o2 → i4o.Silverlight}/IndexSet.cs
  16. 0 {i4o2 → i4o.Silverlight}/IndexSetExtensions.cs
  17. 0 {i4o2 → i4o.Silverlight}/IndexSpecification.cs
  18. 0 {i4o2 → i4o.Silverlight}/ObservingIndexSet.cs
  19. +35 −0 i4o.Silverlight/Properties/AssemblyInfo.cs
  20. 0 {i4o2 → i4o.Silverlight}/PropertyReader.cs
  21. 0 {i4o2 → i4o.Silverlight}/c5/Attributes.cs
  22. +16 −16 {i4o2 → i4o.Silverlight}/c5/Builtin.cs
  23. +6 −6 {i4o2 → i4o.Silverlight}/c5/Collections.cs
  24. +4 −4 {i4o2 → i4o.Silverlight}/c5/Comparer.cs
  25. 0 {i4o2 → i4o.Silverlight}/c5/Delegates.cs
  26. +13 −13 {i4o2 → i4o.Silverlight}/c5/Dictionaries.cs
  27. 0 {i4o2 → i4o.Silverlight}/c5/Enums.cs
  28. +2 −2 {i4o2 → i4o.Silverlight}/c5/Events.cs
  29. +11 −11 {i4o2 → i4o.Silverlight}/c5/Exceptions.cs
  30. 0 {i4o2 → i4o.Silverlight}/c5/Formatting.cs
  31. +6 −6 {i4o2 → i4o.Silverlight}/c5/Hashers.cs
  32. +11 −3 {i4o2 → i4o.Silverlight}/c5/Interfaces.cs
  33. 0 {i4o2 → i4o.Silverlight}/c5/MappedEnumerators.cs
  34. 0 {i4o2 → i4o.Silverlight}/c5/Random.cs
  35. 0 {i4o2 → i4o.Silverlight}/c5/Records.cs
  36. 0 {i4o2 → i4o.Silverlight}/c5/Sorting.cs
  37. +2 −2 {i4o2 → i4o.Silverlight}/c5/ViewSupport.cs
  38. 0 {i4o2 → i4o.Silverlight}/c5/WrappedArray.cs
  39. 0 {i4o2 → i4o.Silverlight}/c5/Wrappers.cs
  40. +1 −1 {i4o2 → i4o.Silverlight}/c5/arrays/ArrayList.cs
  41. 0 {i4o2 → i4o.Silverlight}/c5/arrays/CircularQueue.cs
  42. +1 −1 {i4o2 → i4o.Silverlight}/c5/arrays/HashedArrayList.cs
  43. +1 −1 {i4o2 → i4o.Silverlight}/c5/arrays/SortedArray.cs
  44. +1 −1 {i4o2 → i4o.Silverlight}/c5/hashing/HashBag.cs
  45. +1 −1 {i4o2 → i4o.Silverlight}/c5/hashing/HashDictionary.cs
  46. +2 −2 {i4o2 → i4o.Silverlight}/c5/hashing/HashTable.cs
  47. +3 −3 {i4o2 → i4o.Silverlight}/c5/heaps/IntervalHeap.cs
  48. +3 −3 {i4o2 → i4o.Silverlight}/c5/linkedlists/HashedLinkedList.cs
  49. +3 −3 {i4o2 → i4o.Silverlight}/c5/linkedlists/LinkedList.cs
  50. +3 −3 {i4o2 → i4o.Silverlight}/c5/trees/RedBlackTreeBag.cs
  51. +1 −1 {i4o2 → i4o.Silverlight}/c5/trees/RedBlackTreeDictionary.cs
  52. +3 −3 {i4o2 → i4o.Silverlight}/c5/trees/RedBlackTreeSet.cs
  53. +119 −0 i4o.Silverlight/i4o.Silverlight.csproj
  54. +8 −4 i4o2.Tests/i4o2.Tests.csproj
  55. +4 −0 i4o2.Tests/packages.config
  56. +12 −0 i4o2.sln
  57. +135 −44 i4o2/i4o2.csproj
  58. BIN lib/Silverlight/NUnit-Wilcox/CompatibilityShims.dll
  59. BIN lib/Silverlight/NUnit-Wilcox/NUnitFramework.dll
  60. BIN lib/Silverlight/NUnit-Wilcox/NUnitSilverlight.dll
  61. BIN lib/Silverlight/NUnit-silverlight/Microsoft.Silverlight.Testing.dll
  62. BIN lib/Silverlight/NUnit-silverlight/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
  63. BIN lib/Silverlight/NUnit-silverlight/NUnit.Silverlight.Compatibility.dll
  64. BIN lib/Silverlight/NUnit-silverlight/NUnit.Silverlight.Framework.dll
  65. BIN lib/Silverlight/NUnit-silverlight/NUnit.Silverlight.Metadata.dll
  66. BIN packages/NUnit.2.5.7.10213/Logo.ico
  67. BIN packages/NUnit.2.5.7.10213/NUnit.2.5.7.10213.nupkg
  68. +277 −0 packages/NUnit.2.5.7.10213/NUnitFitTests.html
  69. +277 −0 packages/NUnit.2.5.7.10213/Tools/NUnitFitTests.html
  70. +84 −0 packages/NUnit.2.5.7.10213/Tools/NUnitTests.config
  71. +14 −0 packages/NUnit.2.5.7.10213/Tools/NUnitTests.nunit
  72. +4 −0 packages/NUnit.2.5.7.10213/Tools/agent.conf
  73. +18 −0 packages/NUnit.2.5.7.10213/Tools/agent.log.conf
  74. +18 −0 packages/NUnit.2.5.7.10213/Tools/launcher.log.conf
  75. BIN packages/NUnit.2.5.7.10213/Tools/lib/Failure.png
  76. BIN packages/NUnit.2.5.7.10213/Tools/lib/Ignored.png
  77. BIN packages/NUnit.2.5.7.10213/Tools/lib/Inconclusive.png
  78. BIN packages/NUnit.2.5.7.10213/Tools/lib/Skipped.png
  79. BIN packages/NUnit.2.5.7.10213/Tools/lib/Success.png
  80. BIN packages/NUnit.2.5.7.10213/Tools/lib/fit.dll
  81. BIN packages/NUnit.2.5.7.10213/Tools/lib/log4net.dll
  82. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit-console-runner.dll
  83. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit-gui-runner.dll
  84. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit.core.dll
  85. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit.core.interfaces.dll
  86. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit.fixtures.dll
  87. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit.uiexception.dll
  88. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit.uikit.dll
  89. BIN packages/NUnit.2.5.7.10213/Tools/lib/nunit.util.dll
  90. BIN packages/NUnit.2.5.7.10213/Tools/nunit-agent-x86.exe
  91. +76 −0 packages/NUnit.2.5.7.10213/Tools/nunit-agent-x86.exe.config
  92. BIN packages/NUnit.2.5.7.10213/Tools/nunit-agent.exe
  93. +76 −0 packages/NUnit.2.5.7.10213/Tools/nunit-agent.exe.config
  94. BIN packages/NUnit.2.5.7.10213/Tools/nunit-console-x86.exe
  95. +76 −0 packages/NUnit.2.5.7.10213/Tools/nunit-console-x86.exe.config
  96. BIN packages/NUnit.2.5.7.10213/Tools/nunit-console.exe
  97. +76 −0 packages/NUnit.2.5.7.10213/Tools/nunit-console.exe.config
  98. BIN packages/NUnit.2.5.7.10213/Tools/nunit-x86.exe
  99. +91 −0 packages/NUnit.2.5.7.10213/Tools/nunit-x86.exe.config
  100. BIN packages/NUnit.2.5.7.10213/Tools/nunit.exe
  101. +91 −0 packages/NUnit.2.5.7.10213/Tools/nunit.exe.config
  102. BIN packages/NUnit.2.5.7.10213/Tools/nunit.framework.dll
  103. BIN packages/NUnit.2.5.7.10213/Tools/pnunit-agent.exe
  104. +77 −0 packages/NUnit.2.5.7.10213/Tools/pnunit-agent.exe.config
  105. BIN packages/NUnit.2.5.7.10213/Tools/pnunit-launcher.exe
  106. +77 −0 packages/NUnit.2.5.7.10213/Tools/pnunit-launcher.exe.config
  107. BIN packages/NUnit.2.5.7.10213/Tools/pnunit.framework.dll
  108. BIN packages/NUnit.2.5.7.10213/Tools/pnunit.tests.dll
  109. BIN packages/NUnit.2.5.7.10213/Tools/runFile.exe
  110. +43 −0 packages/NUnit.2.5.7.10213/Tools/runFile.exe.config
  111. +2 −0 packages/NUnit.2.5.7.10213/Tools/runpnunit.bat
  112. +24 −0 packages/NUnit.2.5.7.10213/Tools/test.conf
  113. +342 −0 packages/NUnit.2.5.7.10213/fit-license.txt
  114. BIN packages/NUnit.2.5.7.10213/lib/nunit.framework.dll
  115. +10,228 −0 packages/NUnit.2.5.7.10213/lib/nunit.framework.xml
  116. BIN packages/NUnit.2.5.7.10213/lib/nunit.mocks.dll
  117. BIN packages/NUnit.2.5.7.10213/lib/pnunit.framework.dll
  118. +15 −0 packages/NUnit.2.5.7.10213/license.txt
  119. BIN packages/StatLight.1.3.3981/StatLight.1.3.3981.nupkg
  120. BIN packages/StatLight.1.3.3981/tools/Ionic.Zip.Reduced.dll
  121. +11 −0 packages/StatLight.1.3.3981/tools/Microsoft.Silverlight.Testing.License.txt
  122. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.April2010.xap
  123. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.July2009.xap
  124. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.March2010.xap
  125. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.May2010.xap
  126. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.November2009.xap
  127. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.October2009.xap
  128. BIN packages/StatLight.1.3.3981/tools/StatLight.Client.For.UnitDrivenDecember2009.xap
  129. BIN packages/StatLight.1.3.3981/tools/StatLight.Core.dll
  130. +3 −0 packages/StatLight.1.3.3981/tools/StatLight.EULA.txt
  131. BIN packages/StatLight.1.3.3981/tools/StatLight.exe
  132. +4 −0 packages/repositories.config
@@ -0,0 +1,8 @@
+<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ x:Class="i4o.Silverlight.Tests.App"
+ >
+ <Application.Resources>
+
+ </Application.Resources>
+</Application>
@@ -0,0 +1,58 @@
+using System;
+using System.Windows;
+using Microsoft.Silverlight.Testing;
+
+namespace i4o.Silverlight.Tests
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.Application_Startup;
+ this.Exit += this.Application_Exit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void Application_Startup(object sender, StartupEventArgs e)
+ {
+ MessageBox.Show("This project uses StatLight [StatLight.CodePlex.com] to execute the unit tests...");
+ }
+
+ private void Application_Exit(object sender, EventArgs e)
+ {
+
+ }
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ // If the app is running outside of the debugger then report the exception using
+ // the browser's exception mechanism. On IE this will display it a yellow alert
+ // icon in the status bar and Firefox will display a script error.
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+
+ // NOTE: This will allow the application to continue running after an exception has been thrown
+ // but not handled.
+ // For production applications this error handling should be replaced with something that will
+ // report the error to the website and stop the application.
+ e.Handled = true;
+ Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
+ }
+ }
+ private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
+ {
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+}
@@ -2,7 +2,6 @@
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
-using System.Drawing;
using NUnit.Framework;
namespace i4o2.Tests
@@ -250,4 +249,47 @@ public void SuperComplexQuery()
Assert.AreEqual(1, oneResult.Count());
}
}
+
+
+ public struct Color
+ {
+ private readonly int _value;
+
+ public static Color Green = new Color(0x4f);
+ public static Color Aqua = new Color(30);
+
+ public Color(int value)
+ : this()
+ {
+ _value = value;
+ }
+
+ public static bool operator ==(Color left, Color right)
+ {
+ return left._value == right._value;
+ }
+
+ public static bool operator !=(Color left, Color right)
+ {
+ return !(left == right);
+ }
+
+ public bool Equals(Color other)
+ {
+ return other._value == _value;
+ }
+
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (obj.GetType() != typeof(Color)) return false;
+ return Equals((Color)obj);
+ }
+
+ public override int GetHashCode()
+ {
+ return _value;
+ }
+ }
+
}
@@ -0,0 +1,7 @@
+<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+>
+ <Deployment.Parts>
+ </Deployment.Parts>
+
+</Deployment>
@@ -0,0 +1,37 @@
+// Copyright © Microsoft 2011
+
+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("i4o.Silverlight.Tests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("i4o.Silverlight.Tests")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[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("f3dd00d3-612b-475b-90ac-b70c594e7275")]
+
+// 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 Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,131 @@
+<?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)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{75049B07-1138-4FAA-A97B-F3D5A2E46FFF}</ProjectGuid>
+ <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>i4o.Silverlight.Tests</RootNamespace>
+ <AssemblyName>i4o.Silverlight.Tests</AssemblyName>
+ <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+ <SilverlightApplication>true</SilverlightApplication>
+ <SupportedCultures />
+ <XapOutputs>true</XapOutputs>
+ <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
+ <XapFilename>i4o.Silverlight.Tests.xap</XapFilename>
+ <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
+ <SilverlightAppEntry>i4o.Silverlight.Tests.App</SilverlightAppEntry>
+ <TestPageFileName>TestPage.html</TestPageFileName>
+ <CreateTestPage>true</CreateTestPage>
+ <ValidateXaml>true</ValidateXaml>
+ <EnableOutOfBrowser>false</EnableOutOfBrowser>
+ <OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
+ <UsePlatformExtensions>false</UsePlatformExtensions>
+ <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
+ <LinkedServerProject />
+ </PropertyGroup>
+ <!--
+ //
+ // Silverlight Code Coverage Instrumentation
+ // List any libraries or assemblies that you would like to instrument during
+ // a code coverage pass. An example, for ClassLibrary1, is provided, and
+ // commented out below as a starting point:
+ //
+ -->
+ <!--
+ <ItemGroup>
+ <InstrumentSilverlightAssemblies Include="SilverlightClassLibrary1">
+ <Visible>false</Visible>
+ </InstrumentSilverlightAssemblies>
+ </ItemGroup>
+ -->
+ <!-- This property group is only here to support building this project using the
+ MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
+ to set the TargetFrameworkVersion to v3.5 -->
+ <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>Bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>Bin\Release</OutputPath>
+ <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.Silverlight.Testing, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\lib\Silverlight\NUnit-silverlight\Microsoft.Silverlight.Testing.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\lib\Silverlight\NUnit-silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll</HintPath>
+ </Reference>
+ <Reference Include="NUnit.Silverlight.Compatibility">
+ <HintPath>..\lib\Silverlight\NUnit-silverlight\NUnit.Silverlight.Compatibility.dll</HintPath>
+ </Reference>
+ <Reference Include="NUnit.Silverlight.Framework">
+ <HintPath>..\lib\Silverlight\NUnit-silverlight\NUnit.Silverlight.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="NUnit.Silverlight.Metadata">
+ <HintPath>..\lib\Silverlight\NUnit-silverlight\NUnit.Silverlight.Metadata.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Windows" />
+ <Reference Include="mscorlib" />
+ <Reference Include="system" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Net" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Windows.Browser" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="App.xaml.cs">
+ <DependentUpon>App.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="IndexTests.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ApplicationDefinition Include="App.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </ApplicationDefinition>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Properties\AppManifest.xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\i4o.Silverlight\i4o.Silverlight.csproj">
+ <Project>{92E48593-F727-4AC6-867C-A89DA79EC79F}</Project>
+ <Name>i4o.Silverlight</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
+ <Import Condition="$(SilverlightVersion)=='v3.0'" Project="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SilverlightToolkit\Tools\v3.0)Microsoft.Silverlight.Toolkit.Build.targets" />
+ <Import Condition="$(SilverlightVersion)=='v4.0'" Project="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SilverlightToolkit\Tools\v4.0)Microsoft.Silverlight.Toolkit.Build.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
+ <SilverlightProjectProperties />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,25 @@
+using System.IO;
+using System.Runtime.Serialization;
+
+#if SILVERLIGHT
+namespace System
+{
+// internal interface ICloneable
+// {
+// object Clone();
+// }
+ public static class CloningExtension
+ {
+ public static T Clone<T>(this T source)
+ {
+ var serializer = new DataContractSerializer(typeof(T));
+ using (var ms = new MemoryStream())
+ {
+ serializer.WriteObject(ms, source);
+ ms.Seek(0, SeekOrigin.Begin);
+ return (T)serializer.ReadObject(ms);
+ }
+ }
+ }
+}
+#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,35 @@
+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("i4o.Silverlight")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("i4o.Silverlight")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[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("e9c60ecc-b3e7-48ed-9433-263a6bbfbc78")]
+
+// 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 Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit ce16010

Please sign in to comment.