본문 바로가기

IT/C#9

[.Net 교육] Day6 오전 3.1 -> 5.0 @ razor using System; using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; using System.Text; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using BlazorApp9.Data; namespace BlazorApp9 { public class Program { publi.. 2020. 7. 22.
[.Net교육] Day 6 설치과정 https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-5-preview-7/?fbclid=IwAR2vFwIc3Lm4eKLFgKb1tDhMwTA0ErTIhQZFIDWUNgDQLDeAqpiOrkwXzeQ ASP.NET Core Updates in .NET 5 Preview 7 | ASP.NET Blog .NET 5 Preview 7 is now available and is ready for evaluation. Here’s what’s new in this release: Blazor WebAssembly apps now target .NET 5 Updated debugging requirements for Blazor WebAssembly .. 2020. 7. 22.
[.NET 교육] Day5 오전 Web Brower(css) HTML Template brower Markup Language Template Rendering Service CSS CSS ver2 Spark view engine Razor view Engine NoGet == nodejs npm MVC는 모델 = Data(execution?) service dataService Person.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BlazorApp4.Data { public class Person { public int Id { get; set; } = default; public.. 2020. 7. 21.
[c# 교육]day4 2 route Component client-side blazor webassembly -> mobile solution andriod Xplatform \watching TV VR- PersonService.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BlazorApp4.Data { public class PersonService { public Task GetPersonAsync() { List people = new List{ new Person{ Id =1,Age=11, Gender =true, Name="Son"}, new Person{ Id =2,.. 2020. 7. 20.
[C#] 상속 상속 (inheritance) 계층적인 관계 공통적인 특징을 정의하는 부모 클래스(parent class ; base or super)를 두고 자식 클래스(child class)에서 부모의 기능으을 물려 받는 식으로 처리 public class Computer { bool PowerOn; public void Boot() { } public void Shutdown() { } public void Reset() { } } public class Notebook: Computer{ bool fingerScan; // Notebook 타입에 해당하는 멤버만 추가 public bool HasFingerScanDevice() { return fingerScan; } } public class Desktop : .. 2020. 7. 10.
[C#] C# 클래스 확장 타입 유형 확장 중첩 클래스(nested class) 클래스 내부에 또 다른 클래스를 정의하는 것 class는 접근 제한자를 생략하면 internal로 지정된다. 중첩 클래스의 경우 접근 제한자를 생략하면 private으로 지정되어 외부에서 인스턴스를 직접 생성하는게 불가능해진다. 외부에서 쓰고 싶다면 public으로 지정해야 한다. class Platter {} class Head{} public class HardDist{ Platter[] platter; Head head; } ↓ public class HardDisk{ class Platter{} class Head{} Platter[] platter; Head head; } 추상클래스 부모 클래스의 인스턴스를 생성하지 못하게 하면서 특정 메서드.. 2020. 7. 9.