@@ -104,7 +104,7 @@ public IList<string> Directors
104
104
}
105
105
106
106
/// <summary>
107
- /// Gets or sets a list of producers for this movie.
107
+ /// Gets a list of producers for this movie.
108
108
/// </summary>
109
109
/// <remarks>
110
110
/// The <see cref="Producers"/> property is read-only, but can be
@@ -132,7 +132,7 @@ public IList<string> Producers
132
132
}
133
133
134
134
/// <summary>
135
- /// Gets or sets a list of screenwriters for this movie.
135
+ /// Gets a list of screenwriters for this movie.
136
136
/// </summary>
137
137
/// <remarks>
138
138
/// The <see cref="Screenwriters"/> property is read-only, but can be
@@ -159,61 +159,95 @@ public IList<string> Screenwriters
159
159
}
160
160
}
161
161
162
-
162
+ /// <summary>
163
+ /// Gets a value indicating whether the <see cref="Cast"/> property has data, potentially including an empty list.
164
+ /// Returns <see langword="false"/> if the <see cref="Cast"/> property is <see langword="null"/>.
165
+ /// </summary>
163
166
public bool HasCast
164
167
{
165
168
get { return this . cast != null ; }
166
169
}
167
170
171
+ /// <summary>
172
+ /// Gets a value indicating whether the <see cref="Directors"/> property has data, potentially including an empty list.
173
+ /// Returns <see langword="false"/> if the <see cref="Directors"/> property is <see langword="null"/>.
174
+ /// </summary>
168
175
public bool HasDirectors
169
176
{
170
177
get { return this . directors != null ; }
171
178
}
172
179
180
+ /// <summary>
181
+ /// Gets a value indicating whether the <see cref="Producers"/> property has data, potentially including an empty list.
182
+ /// Returns <see langword="false"/> if the <see cref="Producers"/> property is <see langword="null"/>.
183
+ /// </summary>
173
184
public bool HasProducers
174
185
{
175
186
get { return this . producers != null ; }
176
187
}
177
188
189
+ /// <summary>
190
+ /// Gets a value indicating whether the <see cref="Screenwriters"/> property has data, potentially including an empty list.
191
+ /// Returns <see langword="false"/> if the <see cref="Screenwriters"/> property is <see langword="null"/>.
192
+ /// </summary>
178
193
public bool HasScreenwriters
179
194
{
180
195
get { return this . screenwriters != null ; }
181
196
}
182
197
198
+ /// <summary>
199
+ /// Gets the meaning of the atom.
200
+ /// </summary>
183
201
internal override string Meaning
184
202
{
185
203
get { return "com.apple.iTunes" ; }
186
204
}
187
205
206
+ /// <summary>
207
+ /// Gets the name of the atom.
208
+ /// </summary>
188
209
internal override string Name
189
210
{
190
211
get { return "iTunMOVI" ; }
191
212
}
192
213
214
+ /// <summary>
215
+ /// Removes all data from the <see cref="Cast"/> property, causing it to be <see langword="null"/>.
216
+ /// </summary>
193
217
public void RemoveCast ( )
194
218
{
195
219
this . cast = null ;
196
220
}
197
221
222
+ /// <summary>
223
+ /// Removes all data from the <see cref="Directors"/> property, causing it to be <see langword="null"/>.
224
+ /// </summary>
198
225
public void RemoveDirectors ( )
199
226
{
200
227
this . directors = null ;
201
228
}
202
229
230
+ /// <summary>
231
+ /// Removes all data from the <see cref="Producers"/> property, causing it to be <see langword="null"/>.
232
+ /// </summary>
203
233
public void RemoveProducers ( )
204
234
{
205
235
this . producers = null ;
206
236
}
207
237
238
+ /// <summary>
239
+ /// Removes all data from the <see cref="Screenwriters"/> property, causing it to be <see langword="null"/>.
240
+ /// </summary>
208
241
public void RemoveScreenwriters ( )
209
242
{
210
243
this . screenwriters = null ;
211
244
}
212
245
213
246
/// <summary>
214
- /// Populates this <see cref="MovieInfo"/> with the specific data stored in it in the referenced file .
247
+ /// Populates this <see cref="MovieInfo"/> with the specific data stored in it.
215
248
/// </summary>
216
- /// <param name="data">The iTunes Metadata Format data used to populate this <see cref="MovieInfo"/>.</param>
249
+ /// <param name="dataBuffer">A byte array containing the iTunes Metadata Format data
250
+ /// used to populate this <see cref="MovieInfo"/>.</param>
217
251
internal override void Populate ( byte [ ] dataBuffer )
218
252
{
219
253
Dictionary < string , object > map = null ;
@@ -252,6 +286,10 @@ internal override void Populate(byte[] dataBuffer)
252
286
}
253
287
}
254
288
289
+ /// <summary>
290
+ /// Returns the data to be stored in this <see cref="MovieInfo"/> as a byte array.
291
+ /// </summary>
292
+ /// <returns>The byte array containing the data to be stored in the atom.</returns>
255
293
internal override byte [ ] ToByteArray ( )
256
294
{
257
295
byte [ ] buffer = null ;
@@ -314,7 +352,7 @@ internal override byte[] ToByteArray()
314
352
return buffer ;
315
353
}
316
354
317
- private void WriteList ( XmlWriter writer , IList < string > list , string listName )
355
+ private static void WriteList ( XmlWriter writer , IList < string > list , string listName )
318
356
{
319
357
writer . WriteElementString ( "key" , listName ) ;
320
358
writer . WriteStartElement ( "array" ) ;
0 commit comments