허당 레몬도리
article thumbnail
Protobuf Repeated readonly 변경하기
가. 언어유형/C# 2018. 4. 17. 19:07

mongodb collection을 protobuf class로 가져오려고 하던 중에 List 형태를 가져와보려고 많은 시간을 소비해 가며 보던 중에 .proto로 gen할 때 자세히 보니 repeated 값들이 readonly로 생성 되는 것을 보았다. 여기 저기 검색하던 중에 protobuf를 본 외국인의 글을 발견했다.(질문자는 다른 방법이 필요했던 거였지만 아래 더 자세한 설명을 해준 답변자의 답변이 눈에 들어왔다)링크 : https://stackoverflow.com/questions/16617933/protobuf-net-generated-class-from-proto-is-repeated-field-supposed-to-be-re This was a new issue for us as wel..

HttpListener 연결 거부 시 사용 명령어
가. 언어유형/C# 2017. 6. 7. 18:47

HttpListener를 사용하여 개발 중에 서버포트로 연결이 불가하다는 메시지로 Exception이 떨어지는 현상이 발생하여 찾아본 명령어 명령 프롬프트(관리자 권한)를 열고 아래 명령어에 포트만 변경하여 실행하고 실행해보자 netsh http add urlacl url=http://*:8888/ user=Everyone listen=yes 아래 참고 블로그를 링크 걸어놓는다. 참고 : http://www.windowcmc.com/q.php?q=netsh-http-kr-manual

gcServer 속성
가. 언어유형/C# 2017. 5. 30. 10:25

출처 : https://nabacg.wordpress.com/2013/05/13/gc-background-vs-concurrent-mode/ 번역이며 오역이 있을 수 있습니다. 저는 최근 .NET에서 Garbage Collection에 대해 많은 것을 읽었습니다. 프로젝트 중 하나에서 메모리 누출을 연구하고 점점 더 많은 MSDN 기사를 읽었습니다. 놀랍게도 지난 번에 주제에 대해 괴롭힘을당한 이후로이 지역에 새로운 개발이 많이있었습니다. 그래서 다른 사람들이 유용하다고 생각할 때 나중에 참조 할 수 있도록 그들을 요약 해 보겠습니다. 이 MSDN 기사 에서 CLR의 현재 GC 상태에 대한 개요를 찾을 수 있으므로 자유롭게 시작할 수 있습니다.워크 스테이션 대 서버실제로 두 가지 모드 가비지 콜렉션이 있..

[C#] 변수명 가져오기
가. 언어유형/C# 2016. 7. 29. 12:39

변수명 찾기 http://stackoverflow.com/questions/9801624/get-name-of-a-variable-or-parameter변수명 찾기, 변수 값 가져오기https://blogs.msdn.microsoft.com/csharpfaq/2010/03/11/how-can-i-get-objects-and-property-values-from-expression-trees/

where 제네릭 제약 조건
가. 언어유형/C# 2016. 5. 12. 11:12

출처 : https://msdn.microsoft.com/ko-kr/library/bb384067.aspx where(제네릭 형식 제약 조건)(C# 참조) 제네릭 형식 정의에서 where 절은 제네릭 선언에 정의된 형식 매개 변수의 인수로 사용할 수 있는 형식에 대해 제약 조건을 지정하는 데 사용됩니다. 예를 들어, 다음과 같이 형식 매개 변수 T가 IComparable 인터페이스를 구현하도록 제네릭 클래스 MyGenericClass를 선언할 수 있습니다. public class MyGenericClass where T:IComparable { } 참고 쿼리 식의 where 절에 대한 자세한 내용은 where 절(C# 참조)을 참조하십시오. where 절에는 인터페이스 제약 조건 외에 기본 클래스 제약 ..

article thumbnail
Mono Linux SslStream 사용하기
가. 언어유형/C# 2016. 2. 22. 18:11

SslStream 클래스 https://msdn.microsoft.com/ko-kr/library/system.net.security.sslstream(v=vs.110).aspx 참고하기(채팅) : http://it-jerryfamily.tistory.com/entry/Program-C-SslStream-%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%9C-%ED%86%B5%EC%8B%A0-%EB%B0%A9%EB%B2%95 샘플 코드를 Mono를 이용해서 Debian에 올릴 일이 있어서 테스를 진행하다 아래와 같은 오류를 해결하려고 애쓰고 있었습니다.. System.IO.IOException: The authentication or decryption has failed. ---> Mono..

Building Web API using MVC 6 & MongoDB
가. 언어유형/C# 2016. 2. 15. 16:35

출처 : http://tattoocoder.azurewebsites.net/building-vnext-web-api-using-mvc-6-mongodb-azure/ GIT : https://github.com/spboyer/mongomvc This is a quick walkthrough on using ASP.NET 5 to build a Web API layer using MongoDB. The overall concept is not too dissimilar from previous examples you may have seen using X type of database, however there are some areas covered that are either new in MVC 6 th..

C# worker 스레드에서 UI 스레드 Dispatcher 이용하기.
가. 언어유형/C# 2016. 2. 12. 18:25

출처 : http://bulkdisk.tistory.com/78 public delegate void ShowButtonDelegate(bool IsShow); public void ShowButtonCaller(bool IsShow) { if (canvasButtonGroup.Dispatcher.CheckAccess()) ShowButtonBody(IsShow); else Dispatcher.Invoke(new ShowButtonDelegate(ShowButtonBody), IsShow); } private void ShowButtonBody(bool IsShow) { DebugWrite("ShowButtonBody =" + IsShow.ToString()); }----------------------..