.NET TIP 9/2

닷넷디벨·2023년 9월 2일
0





문자열 조작
https://dotnetcoretutorials.com/c-sharp-string-replace/

C# String Replace Basics

string result = originalString.Replace(oldSubstring, newSubstring);

Replace 문 "문자열".Replace("","");

Immutability of Strings

문자열 비교 및 교체

builder.Services.AddControllersWithViews();

app.UseEndpoints(endpoints =>
{
    endpoints.MapDefaultControllerRoute();
    //.RequireAuthorization("ApiScope");
});

이렇게 하면 기본 View가 뜬다.

profile
hardcore developer

0개의 댓글