File tree Expand file tree Collapse file tree 4 files changed +15
-18
lines changed
Xceed.Wpf.Toolkit.LiveExplorer
CollectionControl/Implementation Expand file tree Collapse file tree 4 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <OutputType >Library</OutputType >
4- <TargetFrameworks >netcoreapp3.0;net4;net6.0-windows</TargetFrameworks >
4+ <TargetFrameworks >netcoreapp3.0;net4;net6.0-windows;net8.0-windows </TargetFrameworks >
55 <UseWPF >true</UseWPF >
66 <SignAssembly >true</SignAssembly >
77 <AssemblyOriginatorKeyFile >sn.snk</AssemblyOriginatorKeyFile >
3232 <ItemGroup Condition =" '$(TargetFramework)' == 'net6.0-windows'" >
3333 <PackageReference Include =" System.Drawing.Common" Version =" 6.0.0" />
3434 </ItemGroup >
35+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8.0-windows'" >
36+ <PackageReference Include =" System.Drawing.Common" Version =" 8.0.0" />
37+ </ItemGroup >
3538</Project >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <OutputType >WinExe</OutputType >
4- <TargetFramework >net6.0-windows</ TargetFramework >
5- <UseWPF >true</UseWPF >
6- <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
7- <SignAssembly >true</SignAssembly >
8- <AssemblyOriginatorKeyFile >sn.snk</AssemblyOriginatorKeyFile >
9- <ApplicationIcon />
10- <StartupObject />
4+ <TargetFrameworks >net6.0-windows;net8.0-windows</ TargetFrameworks >
5+ <UseWPF >true</UseWPF >
6+ <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
7+ <SignAssembly >true</SignAssembly >
8+ <AssemblyOriginatorKeyFile >sn.snk</AssemblyOriginatorKeyFile >
9+ <ApplicationIcon />
10+ <StartupObject />
1111 </PropertyGroup >
1212 <ItemGroup >
1313 <None Remove =" Samples\Zoombox\Resources\ZoomboxProperties.xml" />
2424 </ItemGroup >
2525 <ItemGroup >
2626 <Reference Include =" System.ComponentModel.DataAnnotations" />
27- <Reference Include =" System.Data" />
27+ <Reference Include =" System.Data" />
2828 <Reference Include =" System.Data.Entity" />
2929 </ItemGroup >
3030 <ItemGroup >
Original file line number Diff line number Diff line change @@ -199,15 +199,9 @@ private object Clone( object source )
199199 object result = null ;
200200 var sourceType = source . GetType ( ) ;
201201
202- if ( source is Array )
202+ if ( source is Array array )
203203 {
204- using ( var stream = new MemoryStream ( ) )
205- {
206- var formatter = new BinaryFormatter ( ) ;
207- formatter . Serialize ( stream , source ) ;
208- stream . Seek ( 0 , SeekOrigin . Begin ) ;
209- result = ( Array ) formatter . Deserialize ( stream ) ;
210- }
204+ result = array . Clone ( ) ;
211205 }
212206 // For IDictionary, we need to create EditableKeyValuePair to edit the Key-Value.
213207 else if ( ( this . ItemsSource is IDictionary )
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <OutputType >Library</OutputType >
4- <TargetFrameworks >netcoreapp3.0;net4;net6.0-windows</TargetFrameworks >
4+ <TargetFrameworks >netcoreapp3.0;net4;net6.0-windows;net8.0-windows </TargetFrameworks >
55 <UseWPF >true</UseWPF >
66 <SignAssembly >true</SignAssembly >
77 <AssemblyOriginatorKeyFile >sn.snk</AssemblyOriginatorKeyFile >
You can’t perform that action at this time.
0 commit comments