src/SimpleEntry.cs
/// <summary>
/// Replace the content of this entry by a string with a particular encoding.
/// </summary>
/// <param name="content">The content string.</param>
/// <param name="encoding">The encoding mode for the string.</param>
/// <param name="mode">The mode.</param>
/// <exception cref="System.ArgumentNullException">content</exception>
Replace the content of this entry by a string with a particular encoding.
Replace the content of this entry by a string with a particular encoding .
public void SetBlob(string content, Encoding encoding, Mode mode = Mode.NonExecutableFile)
        {
            if (content == null) throw new ArgumentNullException("content");
            var newBlob = repo.ObjectDatabase.CreateBlob(new MemoryStream(encoding.GetBytes(content)));
            SetBlob(newBlob, mode);
        }
public void SetBlob ( string content , Encoding encoding , Mode mode = Mode . NonExecutableFile ) { if ( content == null ) throw new ArgumentNullException ( " " ) ; var newBlob = repo . ObjectDatabase . CreateBlob ( new MemoryStream ( encoding . GetBytes ( content ) ) ) ; SetBlob ( newBlob , mode ) ; }
Replace the content of this entry by a string with a particular encoding.
Replace the content of this entry by a string with a particular encoding .
None
content
string
The content string.
The content string .
encoding
Encoding
The encoding mode for the string.
The encoding mode for the string .
mode
Mode
None