C#

C# Advanced – csharpstudy 유튜브 강의 정리

  https://www.csharpstudy.com/ https://www.youtube.com/watch?v=j0FYmsNvQbY&list=PLiNvMfa_Y5hcR5N0yFzi1KlK_e8zBaIrD     포인터와 레퍼런스의 차이는?         포인터와 레퍼런스의 차이는?   포인터 (Pointer) void* p = &buff; 고정된 임의의 데이터에 대한 메모리 주소 Native Heap   레퍼런스 (Reference) MyData obj = new MyData(); 이동할 수 있는 객체에 대한 메모리 주소 Managed Heap 가비지 컬렉션이 발생하면 객체의 주소가 이동할 수 있다.   unsafe void ReferenceRun() { for (int i = 0; i < 100000; i++) { var obj = new MyData(); } var data = new MyData(); data.Value = 55; // data 객체가 Managed Heap 에서…

Read More
C#

C# 기초 – csharpstudy 유튜브 강의 정리

  https://www.csharpstudy.com/ https://www.youtube.com/watch?v=NZ0csWCxD3g&list=PLiNvMfa_Y5hfgpgd3hgXdHACCZuIEozjL     C# 데이타 타입 C# yield 문 C# 구조체 (struct) C# 클래스 (class) 개념과 사용법 C# 이벤트(event) 활용 사례       C# yield 문 yield return은 데이터를 하나씩 리턴한다. yield break는 메소드를 끝낸다. (break 는 가장 가까운 반복문을 끝낸다.)   private void main() { foreach (var score in GetScores()) { Console.WriteLine(score); } } private IEnumerable<int> GetScores() // foreach 를 하나씩 돈다. { int[] scores = new int[] { 10, 20, 30, 40, 50 }; for (int i = 0; i < scores.Length; i++) { if…

Read More
C#

C# 중급 – csharpstudy 유튜브 강의 정리

  https://www.csharpstudy.com/ https://www.youtube.com/watch?v=T58M6aSanCw&list=PLiNvMfa_Y5hdz3Pitggrisaam_35ZqdtE   C# 접근 제한자 (Access Modifier) 의 개념과 사용법 C# 인터페이스 기초 인터페이스를 활용한 사례       C# 접근 제한자 (Access Modifier) 의 개념과 사용법   # 클래스 내부의 멤버에 대한 기본 액세스 권한은 private # class 나 struct 의 기본 기본 액세스 권한은 internal # internal 은 현재 어셈블리에서만 사용 가능함 # 어셈블리는 빌드하면 나오는 exe 파일이나 dll 파일을 말함         C# 인터페이스 기초   # 클래스 상속보다 더 가볍고 유연함   public interface ISendable { void Send(string msg); }   class…

Read More
프로그램

Visual Studio 2019 단축키

    Ctrl + Shift + L :  라인 지우기     Remove empty lines in text using Visual Studio Is there a way to delete a line in Visual Studio without cutting it?     Remove empty lines in text using Visual Studio   https://stackoverflow.com/questions/12453160/remove-empty-lines-in-text-using-visual-studio   Open Tools > Options or press Alt + T + O Under Environment tab > Keyboard Search for “DeleteBlank” and select Edit.DeleteBlankLines Add a new shortcut for example Ctrl+D, Ctrl+E Assign > OK       Is there a way to delete a…

Read More
WPF

WPF – Local SQL Database

    WPF Create and Work with Local SQL Database in your Project Walkthrough: Display data from a SQL Server database in a DataGrid control       1. WPF Create and Work with Local SQL Database in your Project   https://codedocu.com/Net-Framework/WPF/Code-Samples/Add-WPF-Local-SQL-Database-to-Application-and-Connect-Data?2140   https://www.youtube.com/watch?v=_1Hdk5pi8C4   1. mdf 데이터베이스 추가 Add New Item-> Service Based Database   2. 테이블 추가 Database-> Tables-> Add New Table   3. 테이블 작성 CREATE TABLE [dbo].[Table] ( [IDDetail] INT NOT NULL PRIMARY KEY, [URL] NVARCHAR(255) NULL, [Title] NVARCHAR(255) NULL, [Text] NVARCHAR(MAX) NULL ) // t-sql…

Read More
[유튜브] 앤젤라쌤

미국 현지에서 느낀 BTS 실제 인기!

안녕하세요, 여러분! 제가 돌아왔습니다. Hi, everyone! I’m back! 오늘은 미국을 장악해오고 있는 한국 아이돌 그룹에 대해 이야기 하고자 합니다. Today, I’m going to talk about a Korean idol group that has been taking over in the US. 누구를 말하는지 아실텐데요… You might know who I’m talking about… 아시나요? do you know? BTS! 그들은 미국에서 엄청 유명합니다. They are crazy popular here in the States. 매일 확인할 수 있는데요, 왜냐하면 제가 중학교 선생님이기 때문입니다. 어떤 학생들은 BTS에 완전 빠져있어요. I have daily proof because I am a middle school teacher, and…

Read More
WPF

WPF 도움되는 정보

    Drag Dropping from WPF to Notepad How do I set a cookie on HttpClient’s HttpRequestMessage UserControl Thumb 컨트롤의 DragDelta 사용법 볼륨 컨트롤 MVVM 기본 코드       1. Drag Dropping from WPF to Notepad   https://stackoverflow.com/questions/13308745/drag-dropping-from-wpf-to-notepad   private void listView1_MouseMove(object sender, MouseEventArgs e) { try { if (e.LeftButton == MouseButtonState.Released) { alreadycopying = false; } if (e.LeftButton == MouseButtonState.Pressed && alreadycopying == false) { alreadycopying = true; System.IO.StreamWriter test = new System.IO.StreamWriter(@”C:\SuperSecretTestFile.txt”); test.WriteLine(“Test”); test.Close(); List<String> testlist = new List<string>(); testlist.Add(@”C:\SuperSecretTestFile.txt”); DataObject d = new DataObject(); d.SetData(DataFormats.FileDrop, testlist.ToArray<string>());…

Read More
C++

C++ 한정판 코딩강좌 (개발자 라라)

  https://www.youtube.com/watch?v=mWSlaRNLSls&list=PLhKL63I03LuZBRwUGElubYHHNXTcTARLk       Hello World 출력 자료형, for 반복문 if 와 for, 함수 사용 보충 논리식       1강 Hello World 출력   구글 검색 : visual studio 2019 community https://visualstudio.microsoft.com/ko/vs/community/   #include <cstdio> int main() { printf(“Hello World”); return 0; }     2강 자료형, for 반복문   // 변수 이름은 공백이 있으면 안됨. // 변수 이름은 숫자로 시작하면 안됨   # 자료형 #include <cstdio> int main() { // 4가지만 외워라. // int : 정수 // float : 실수 // bool : 참 거짓 // char…

Read More
WPF

헬테이커 – 윈도우용 지옥 스티커 (개발자 라라)

  헬테이커 – 윈도우용 지옥 스티커를 만들어보았다 (개발자 라라)   https://www.youtube.com/watch?v=UkflQCKjDdg   구글 검색 helltaker sprite lucifer https://www.spriters-resource.com/pc_computer/helltaker/sheet/132965/     #  Debug 나 Release 폴더에 리소스 파일이 없어서 오류가 난다. 리소스 파일의 build action 을 None 으로 설정하라.       https://lektion-von-erfolglosigkeit.tistory.com/38 Helltaker_v1.3     https://blog.naver.com/chlwlsgur963/222017361013 HellTakerAni-master   https://github.com/TomoTherapy/FunnyStuff FunnyStuff-master    

Read More
[유튜브] 구슬쌤

potluck, chip in, pet peeve, fair enough, You bet

  구슬쌤도 네이티브 앞에선 일단 아는 척하고 나중에 사전 찾아본 표현 5 (potluck, pet peeve, fair enough 등)   1. potluck: 각자 요리를 조금씩 해와서 같이 먹는 것 2. chip in: 돈으로 조금씩 보태다 3. pet peeve: 특히 싫어하는 것 4. Fair enough: 그럴만 하네/ 그럴 수 있지 5. You bet: 그럼, 당연하지   #1: potluck: 각자 요리를 조금씩 해와서 같이 나눠 먹는 것 *캠브릿지 사전: an informal meal where guests bring a different disk that is then shared with the other guests We meet on Tuesdays, and it’s a…

Read More