Changeset 1324
- Timestamp:
- 03/11/09 17:25:40 (16 years ago)
- Location:
- branches/New Persistence Exploration/Persistence/Persistence
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Persistence/Persistence.csproj
r1323 r1324 42 42 <ItemGroup> 43 43 <Reference Include="System" /> 44 <Reference Include="System.Core"> 45 <RequiredTargetFramework>3.5</RequiredTargetFramework> 46 </Reference> 44 47 <Reference Include="System.Data" /> 45 <Reference Include="System.Data. Linq">48 <Reference Include="System.Data.DataSetExtensions"> 46 49 <RequiredTargetFramework>3.5</RequiredTargetFramework> 47 50 </Reference> -
branches/New Persistence Exploration/Persistence/Persistence/StorableAttribute.cs
r1323 r1324 2 2 using System.Collections.Generic; 3 3 using System.Reflection; 4 using System.Linq; 4 5 5 6 namespace Persistence { … … 134 135 } 135 136 object method(object obj, Dictionary<object, object> twins) { 136 return serializer.DeSerialize( 137 Functional.Map(138 serializer.Serialize(obj),139 140 type); 137 return serializer.DeSerialize( 138 serializer.Serialize(obj) 139 .OfType<object>() 140 .Select(o => factory.Clone(o, twins)), 141 type); 141 142 } 142 143 } -
branches/New Persistence Exploration/Persistence/Persistence/Util.cs
r1321 r1324 5 5 using System.Collections; 6 6 7 namespace Persistence { 8 public class Functional { 9 10 public delegate object Mapper(object x); 11 12 public static IEnumerable Map(IEnumerable enumeration, Mapper m) { 13 foreach (object t in enumeration) { 14 yield return m(t); 15 } 16 } 17 18 } 7 namespace Persistence { 19 8 public class InterfaceInstantiatior { 20 9 public static List<T> InstantiateAll<T>() {
Note: See TracChangeset
for help on using the changeset viewer.