File tree Expand file tree Collapse file tree 6 files changed +17
-21
lines changed Expand file tree Collapse file tree 6 files changed +17
-21
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
-
3
- <PropertyGroup >
4
- <TargetFrameworks >net8.0;net6.0;netcoreapp3.1;net48</TargetFrameworks >
5
- <OutputType >Exe</OutputType >
6
- <LangVersion >latest</LangVersion >
7
- </PropertyGroup >
8
-
9
- <ItemGroup >
10
- <PackageReference Include =" BenchmarkDotNet" Version =" 0.14.0" />
11
- </ItemGroup >
12
-
13
- <ItemGroup >
14
- <ProjectReference Include =" ..\Ical.Net\Ical.Net.csproj" />
15
- </ItemGroup >
16
-
2
+ <PropertyGroup >
3
+ <TargetFrameworks >net8.0;net6.0;netcoreapp3.1;net48</TargetFrameworks >
4
+ <OutputType >Exe</OutputType >
5
+ <LangVersion >latest</LangVersion >
6
+ </PropertyGroup >
7
+ <ItemGroup >
8
+ <PackageReference Include =" BenchmarkDotNet" Version =" 0.14.0" />
9
+ </ItemGroup >
10
+ <ItemGroup >
11
+ <ProjectReference Include =" ..\Ical.Net\Ical.Net.csproj" />
12
+ </ItemGroup >
17
13
</Project >
Original file line number Diff line number Diff line change 3
3
<TargetFrameworks >net8.0;net6.0;net48</TargetFrameworks >
4
4
<SignAssembly >true</SignAssembly >
5
5
<AssemblyOriginatorKeyFile >..\IcalNetStrongnameKey.snk</AssemblyOriginatorKeyFile >
6
+ <LangVersion >latest</LangVersion >
6
7
</PropertyGroup >
7
8
<ItemGroup >
8
9
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1" />
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ namespace Ical.Net.CalendarComponents
10
10
/// </summary>
11
11
public class Alarm : CalendarComponent
12
12
{
13
- //ToDo: Implement IEquatable
14
13
public virtual string Action
15
14
{
16
15
get => Properties . Get < string > ( AlarmAction . Key ) ;
@@ -177,4 +176,4 @@ protected virtual void AddRepeatedItems()
177
176
}
178
177
}
179
178
}
180
- }
179
+ }
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public override void CopyFrom(ICopyable obj)
78
78
base . CopyFrom ( obj ) ;
79
79
80
80
Uri = att . Uri != null ? new Uri ( att . Uri . ToString ( ) ) : null ;
81
- if ( att . Data != null && att . Data . Length != 0 )
81
+ if ( att . Data != null )
82
82
{
83
83
Data = new byte [ att . Data . Length ] ;
84
84
Array . Copy ( att . Data , Data , att . Data . Length ) ;
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ public override void CopyFrom(ICopyable obj)
51
51
52
52
if ( obj is not Period p ) return ;
53
53
54
- StartTime = p . StartTime ;
55
- EndTime = p . EndTime ;
54
+ StartTime = p . StartTime ? . Copy < IDateTime > ( ) ;
55
+ EndTime = p . EndTime ? . Copy < IDateTime > ( ) ;
56
56
Duration = p . Duration ;
57
57
}
58
58
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public override void CopyFrom(ICopyable obj)
82
82
return ;
83
83
}
84
84
85
- DateTime = t . DateTime ;
85
+ DateTime = t . DateTime ? . Copy < IDateTime > ( ) ;
86
86
Duration = t . Duration ;
87
87
Related = t . Related ;
88
88
}
You can’t perform that action at this time.
0 commit comments