Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# iformfile to string

public static List<string> ReadAsList(this IFormFile file)
{
    var result = new StringBuilder();
    using (var reader = new StreamReader(file.OpenReadStream()))
    {
        while (reader.Peek() >= 0)
            result.AppendLine(reader.ReadLine()); 
    }
    return result;
}
Comment

c# iformfile to string

public static List<string> ReadAsList(this IFormFile file)
{
    var result = new StringBuilder();
    using (var reader = new StreamReader(file.OpenReadStream()))
    {
        while (reader.Peek() >= 0)
            result.AppendLine(reader.ReadLine()); 
    }
    return result;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# write to console 
Csharp :: double to int c# 
Csharp :: c# round to 2 decimal places 
Csharp :: wpf label text color rgb string 
Csharp :: unity convert mouse position to world position in editor mode 
Csharp :: this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework 
Csharp :: check if string is a guid c# 
Csharp :: loadscene unity 
Csharp :: mvc select list order by 
Csharp :: unity list of gameobjects 
Csharp :: get string name of dropdown in unity 
Csharp :: mymove() method c# 
Csharp :: c# print array 
Csharp :: unity system time 
Csharp :: How can I make an action repeat every x seconds with Timer in C#? 
Csharp :: c# check valid datetime 
Csharp :: xamarin overlay 
Csharp :: how to change scenes in unity 
Csharp :: bluestacks unity black screen 
Csharp :: textbox only numbers c# 
Csharp :: clear array c# 
Csharp :: canty obituary schenectady ny 
Csharp :: blazor alert 
Csharp :: unity c# set object tag 
Csharp :: how to join array indexes with comma in c# 
Csharp :: unity hub black screen 
Csharp :: rigidbody.addtorque 
Csharp :: group by linq multiple columns c# 
Csharp :: how to change textMesh Pro unity 
Csharp :: c# func with no return 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =