분류 전체보기
-
[C#] params 키워드C#/기초 2023. 10. 31. 10:25
params 키워드란 메소드에서 배열형태의 매개변수를 받을때 사용하는 키워드 입니다. 이 키워드를 사용하면 해당 메소드를 호출할때 반드시 배열을 넘겨줄 필요가 없어집니다. params 키워드가 모든 변수들을 모아서 배열로 만들어 주는 기능을 하기 때문입니다. 간단한 예시를 보겠습니다. 1 2 3 4 5 6 7 public void setVarList(params string[] var) { mTable.Columns.Clear(); for (int i = 0; i
-
[Prism] How to get a name of the active view in PRISMC#/Prism 2023. 10. 30. 17:08
https://stackoverflow.com/questions/18699316/how-to-get-a-name-of-the-active-view-in-prism How to get a name of the active view in PRISM I am trying to navigate to the same view (same as the active one), but with new parameters. The problem is that I struggle to find a clean way to get a currently active view's name from RegionManager stackoverflow.com
-
[C#] Zip 파일 목록, XMLC#/기초 2023. 10. 20. 13:32
UnZip 하지않고 Zip 파일 열어서 파일 목록 가져오고 xml 파일 다루기 List OpenFileApp(string path) { var appPath = path; //string appPath = Directory.GetCurrentDirectory() + @"\AppPackages\Robot.app"; var appList = GetListAppFilesName(appPath); var dicAspec = new Dictionary(); var aspecList = new List(); foreach (var app in appList) { var archiveAppFile = ZipFile.OpenRead(app); Dictionary getFiles = GetFiles(archiveAppF..
-
[C#] Zip, UnZipC#/기초 2023. 10. 17. 10:48
https://chashtag.tistory.com/24 [C#] 압축, 압축 풀기 (zip, unzip) 오늘은 폴더를 zip 파일로, zip 파일을 폴더로 만드는 방법에 대해 알아보겠습니다. 아래 코드를 구현하기 위해선 System.IO.Compression.FileSystem을 Reference에 추가하여야 합니다. static void Main(string[] args) chashtag.tistory.com https://chashtag.tistory.com/90 [C#] 압축, 압축 풀기 with 비밀번호 (zip, unzip with password) 안녕하세요. 오늘은 https://chashtag.tistory.com/24 에 이어 비밀번호와 함께 압축, 압축을 푸는 방법에 대해 알아보도록..
-
[WPF] Pre-build event/post-build eventC#/WPF 2023. 10. 17. 09:54
프로젝트 폴더 내의 dll 파일 OutputDirectory로 복사 Create the project. Add one file as Content. Unload the project and edit the *proj file manually. PreserveNewest Never Always PreserveNewest https://stackoverflow.com/questions/2059562/in-visual-studio-how-can-i-set-the-build-action-for-an-entire-folder
-
[EFCore] reset sqlite_sequenceC#/EFCore 2023. 10. 12. 10:57
Reset an AUTOINCREMENT field in SQLite sqlite_sequence : Primary Key 자동 증가시 생기는 테이블 name : Table이름 sq : 현재 자동 증가된 숫자 모든 테이블 데이타 삭제하더라도 sqlite_sequence 테이블 data를 삭제 하지 않으면 seq 이후의 값으로 Key값 자동 증가 https://www.vbforums.com/showthread.php?861479-RESOLVED-Reset-an-AUTOINCREMENT-field-in-SQLite VBForums Message No Thread specified. If you followed a valid link, please notify the administrator Click Her..