JumpKick.HttpLib/NamedFileStream.cs
(完整代码) 1022Bnamespace JumpKick.HttpLib
{
using System.IO;
/// <summary>
/// NamedFileStream is a simple data structre that holds a file name, and stream
/// </summary>
public sealed class NamedFileStream
{
public string Name { get; private set; }
public string Filename { get; private set; }
public string ContentType { get; private set; }
public Stream Stream { get; private set; }
/// <summary>
/// Create a new NamedFileStream
/// </summary>
/// <param name="name">Form name for file</param>
/// <param name="filename">Name of file</param>
/// <param name="contentType">Content type of file</param>
/// <param name="stream">File Stream</param>
public NamedFileStream(string name, string filename, string contentType, Stream stream)
{
this.Name = name;
this.Filename = filename;
this.ContentType = contentType;
this.Stream = stream;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。