Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions src/Foundation/NSTimeZone.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
using System.Collections.ObjectModel;

// Disable until we get around to enable + fix any issues.
#nullable disable
#nullable enable

namespace Foundation {

public partial class NSTimeZone {

static ReadOnlyCollection<string> known_time_zone_names;
static ReadOnlyCollection<string>? known_time_zone_names;

// avoid exposing an array - it's too easy to break
/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
/// <summary>Gets a read-only collection of all known time zone names.</summary>
/// <value>A <see cref="ReadOnlyCollection{T}" /> of strings containing all known time zone names.</value>
/// <remarks>This property provides a read-only view of the time zone names to prevent modification of the underlying array.</remarks>
public static ReadOnlyCollection<string> KnownTimeZoneNames {
get {
if (known_time_zone_names is null)
Expand All @@ -21,11 +19,8 @@ public static ReadOnlyCollection<string> KnownTimeZoneNames {
}
}

/// <summary>Returns a string representation of the value of the current instance.</summary>
/// <returns>
/// </returns>
/// <remarks>
/// </remarks>
/// <summary>Returns a string representation of the current <see cref="NSTimeZone" /> instance.</summary>
/// <returns>A string containing the name of the time zone.</returns>
public override string ToString ()
{
return Name;
Expand Down
Loading