Beispiel #1
0
 /// <summary>
 /// Initializes an instance of <see cref="ClosedCaptionTrack"/>.
 /// </summary>
 public ClosedCaptionTrack(ClosedCaptionTrackInfo info, IReadOnlyList <ClosedCaption> captions)
 {
     Info     = info;
     Captions = captions;
 }
 /// <summary />
 public ClosedCaptionTrack(ClosedCaptionTrackInfo info, IReadOnlyList <ClosedCaption> captions)
 {
     Info     = info.GuardNotNull(nameof(info));
     Captions = captions.GuardNotNull(nameof(captions));
 }
Beispiel #3
0
 /// <inheritdoc />
 public ClosedCaptionTrack(ClosedCaptionTrackInfo info, IEnumerable <ClosedCaption> captions)
 {
     Info     = info ?? throw new ArgumentNullException(nameof(info));
     Captions = captions?.ToArray() ?? throw new ArgumentNullException(nameof(captions));
 }