Skip to content

Commit 06bdaf2

Browse files
Added sample
1 parent dd02556 commit 06bdaf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Word-document/Identify-Word-document-is-Encrypted-or-not/.NET/Identify-Word-document-is-Encrypted-or-not

Word-document/Identify-Word-document-is-Encrypted-or-not/.NET/Identify-Word-document-is-Encrypted-or-not/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static string IsEncrypted(FileStream fileStream)
2121
{
2222
//Open the existing Word document.
2323
WordDocument document = new WordDocument(fileStream, FormatType.Docx);
24-
return "Docuemnt is not encrypted.";
24+
return "Document is not encrypted.";
2525
}
2626
catch (Exception exception)
2727
{
@@ -31,7 +31,7 @@ public static string IsEncrypted(FileStream fileStream)
3131
return exception.Message;
3232
}
3333
}
34-
return "Docuemnt is not encrypted.";
34+
return "Document is not encrypted.";
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)