diff options
author | Aimeast <lixd3389@gmail.com> | 2013-10-27 12:43:33 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-10-27 12:57:51 +0400 |
commit | da320296382e9695e57caf648d4af291db33de36 (patch) | |
tree | c7558d97fe6d02fb86fbcbfa953aa607a666e94a /LibGit2Sharp/Blob.cs | |
parent | 36945a94de6545d8e301c4b5921baa3b1d76aec7 (diff) |
Rename Blob.ContentStream() as Blob.GetContentStream()
Diffstat (limited to 'LibGit2Sharp/Blob.cs')
-rw-r--r-- | LibGit2Sharp/Blob.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/LibGit2Sharp/Blob.cs b/LibGit2Sharp/Blob.cs index 86134173..9a63d1a1 100644 --- a/LibGit2Sharp/Blob.cs +++ b/LibGit2Sharp/Blob.cs @@ -49,7 +49,7 @@ namespace LibGit2Sharp /// <summary> /// Gets the blob content in a <see cref="Stream"/>. /// </summary> - public virtual Stream ContentStream() + public virtual Stream GetContentStream() { return Proxy.git_blob_rawcontent_stream(repo.Handle, Id, Size); } @@ -59,10 +59,22 @@ namespace LibGit2Sharp /// checked out to the working directory. /// <param name="filteringOptions">Parameter controlling content filtering behavior</param> /// </summary> - public virtual Stream ContentStream(FilteringOptions filteringOptions) + public virtual Stream GetContentStream(FilteringOptions filteringOptions) { Ensure.ArgumentNotNull(filteringOptions, "filteringOptions"); return Proxy.git_blob_filtered_content_stream(repo.Handle, Id, filteringOptions.HintPath, false); } + + /// <summary> + /// Gets the blob content in a <see cref="Stream"/>. + /// </summary> + [Obsolete("This property will be removed in the next release. Please use one of the GetContentStream() overloads instead.")] + public virtual Stream ContentStream + { + get + { + return GetContentStream(); + } + } } } |