끄적끄적 메모공간
close
프로필 배경
프로필 로고

끄적끄적 메모공간

  • 분류 전체보기 (569) N
    • [====== Development ======] (408)
      • C# (139)
      • C++ (25)
      • Python (42)
      • Android (16)
      • React (18)
      • Flutter (63)
      • DICOM (14)
      • Etc (91)
    • [======= 지식 저장소 =======] (41)
    • [======= 주식 , 경제 =======] (67) N
    • [========== Etc =========] (33)
  • 홈
  • 태그
  • 방명록

C# JSON Array 읽는 방법

using Newtonsoft.Json; using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string json = @"[{ 'name': 'John Doe', 'age': 30, 'isMarried': false }, { 'name': 'Jane Doe', 'age': 25, 'isMarried': true }]"; List persons = JsonConvert.DeserializeObject(json); foreach (Person person in persons) { Console.WriteLine($"Name: {person.Name}, Age: {person.Age}, ..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 28.
  • textsms

C# 리스트를 포함한 Json 만들기

using Newtonsoft.Json; using System; using System.Collections.Generic; public class Program { public static void Main() { // create an array of items List items = new List { "item1", "item2", "item3" }; // create a dictionary to hold the object properties Dictionary jsonDict = new Dictionary(); jsonDict.Add("name", "myArray"); jsonDict.Add("items", items); // serialize the dictionary to JSON str..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 28.
  • textsms

C# 구조체 리스트 정렬

C#에서 구조체 목록을 정렬하려면 List.Sort() 메서드를 사용하고 람다 식 또는 별도의 메서드를 사용하여 사용자 지정 비교 함수를 제공할 수 있습니다. 다음은 Name 및 Age 필드가 있는 간단한 Person 구조체를 사용하는 예입니다. public struct Person { public string Name; public int Age; } // create a list of persons List persons = new List { new Person { Name = "Alice", Age = 25 }, new Person { Name = "Bob", Age = 20 }, new Person { Name = "Charlie", Age = 30 } }; // sort the list by ..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 20.
  • textsms

C# Enum 타입을 리스트로 만드는 방법

public enum Size { Small, Medium, Large } private void Test() { List sizeStrings = Enum.GetNames(typeof(Size)).ToList(); List sizeValues = Enum.GetValues(typeof(Size)) .Cast() .ToList(); }

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 16.
  • textsms

C# Tesseract를 이용한 OCR 검출 샘플 코드

using System; using Tesseract; namespace OCRDemo { class Program { static void Main(string[] args) { // Create an instance of the Tesseract OCR engine using (var engine = new TesseractEngine(@"./tessdata", "eng", EngineMode.Default)) { // Load the image to be processed using (var img = Pix.LoadFromFile(@"./image.png")) { // Set the page segmentation mode to automatic engine.SetVariable("tessedit..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 14.
  • textsms

WPF - Canvas를 이용한 도형 이동 및 크기고

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace WpfApp..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 10.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • ···
  • 24
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (569) N
    • [====== Development ======] (408)
      • C# (139)
      • C++ (25)
      • Python (42)
      • Android (16)
      • React (18)
      • Flutter (63)
      • DICOM (14)
      • Etc (91)
    • [======= 지식 저장소 =======] (41)
    • [======= 주식 , 경제 =======] (67) N
    • [========== Etc =========] (33)
최근 글
인기 글
최근 댓글
태그
  • #Python
  • #블록체인
  • #Bitcoin
  • #비트코인
  • #코인
  • #c#
  • #XAML
  • #WPF
  • #이더리움
  • #소주전쟁
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바