Skip to content
Browse files

Update history + fix formatting

  • Loading branch information...
1 parent 8338fae commit f3e136c12da506d9f04a7cb56728eeae4b3b2109 @nikhilk committed
View
1 History.txt
@@ -32,6 +32,7 @@ v0.7.6
(Change Custom Tool property of resx file to
ResxPublicScriptGenerator)
- [git #230] Add String.IsNullOrWhitespace
+ - [git #234] Knockout API update - added CompareResult status enum
v0.7.5.0
- DOM metadata update (readyState property on Document,
View
10 src/Libraries/Knockout/CompareResult.cs
@@ -13,8 +13,7 @@ namespace KnockoutApi {
public class CompareResult<T> {
[IntrinsicProperty]
- public CompareResultStatus Status
- {
+ public CompareResultStatus Status {
get;
set;
}
@@ -25,11 +24,4 @@ public CompareResultStatus Status
set;
}
}
-
- [NamedValues]
- public enum CompareResultStatus{
- added,
- deleted,
- retained
- }
}
View
24 src/Libraries/Knockout/CompareResultStatus.cs
@@ -0,0 +1,24 @@
+// CompareResultStatus.cs
+// Script#/Libraries/Knockout
+// This source code is subject to terms and conditions of the Apache License, Version 2.0.
+//
+
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+
+namespace System {
+
+ // This doesn't map to an actual type, but needs to be present
+ // in the set of types, so that the C# void type can be mapped
+ [IgnoreNamespace]
+ [Imported]
+ [NamedValues]
+ public enum CompareResultStatus {
+
+ Added,
+
+ Deleted,
+
+ Retained
+ }
+}
View
1 src/Libraries/Knockout/Knockout.csproj
@@ -57,6 +57,7 @@
<Compile Include="Knockout.cs" />
<Compile Include="Observable.cs" />
<Compile Include="Subscribable.cs" />
+ <Compile Include="CompareResultStatus.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />

0 comments on commit f3e136c

Please sign in to comment.
Something went wrong with that request. Please try again.