Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c5866d

Browse files
Fix CLSID typo
Fixes:#286
1 parent1b73738 commit6c5866d

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

‎OpenMcdf.Tests/RootStorageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Open(string fileName)
2626
Assert.ThrowsException<NotSupportedException>(()=>rootStorage.Revert());
2727
Assert.ThrowsException<NotSupportedException>(()=>rootStorage.CreationTime=DateTime.MinValue);
2828
Assert.ThrowsException<NotSupportedException>(()=>rootStorage.ModifiedTime=DateTime.MinValue);
29-
Assert.ThrowsException<NotSupportedException>(()=>rootStorage.CLISD=Guid.Empty);
29+
Assert.ThrowsException<NotSupportedException>(()=>rootStorage.CLSID=Guid.Empty);
3030
Assert.ThrowsException<NotSupportedException>(()=>rootStorage.StateBits=0);
3131
}
3232

‎OpenMcdf.Tests/StorageTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,12 @@ public void GetAndSetMetadata(Version version)
288288
{
289289
Storagestorage=rootStorage.CreateStorage("Storage");
290290

291-
Assert.AreEqual(Guid.Empty,storage.CLISD);
291+
Assert.AreEqual(Guid.Empty,storage.CLSID);
292292
Assert.AreNotEqual(DirectoryEntry.ZeroFileTime,storage.CreationTime);
293293
Assert.AreNotEqual(DirectoryEntry.ZeroFileTime,storage.ModifiedTime);
294294
Assert.AreEqual(0U,storage.StateBits);
295295

296-
storage.CLISD=guid;
296+
storage.CLSID=guid;
297297
storage.CreationTime=now;
298298
storage.ModifiedTime=now;
299299
storage.StateBits=1U;
@@ -303,7 +303,7 @@ public void GetAndSetMetadata(Version version)
303303
{
304304
Storagestorage=rootStorage.OpenStorage("Storage");
305305

306-
Assert.AreEqual(guid,storage.CLISD);
306+
Assert.AreEqual(guid,storage.CLSID);
307307
Assert.AreEqual(now,storage.CreationTime);
308308
Assert.AreEqual(now,storage.ModifiedTime);
309309
Assert.AreEqual(1U,storage.StateBits);

‎OpenMcdf/Storage.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ internal Storage(RootContextSite rootContextSite, DirectoryEntry directoryEntry,
2727

2828
publicEntryInfoEntryInfo=>directoryEntry.ToEntryInfo(path);
2929

30+
[Obsolete("Use CLSID instead.")]
3031
publicGuidCLISD
32+
{
33+
get=>CLSID;
34+
set=>CLSID=value;
35+
}
36+
37+
publicGuidCLSID
3138
{
3239
get=>directoryEntry.CLSID;
3340
set

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp