태그>csharp(총 259개의 글)
'csharp' 관련 최근글
-
- Partial class

-
어린왕자와 여우 by 어린왕자|2011/07/08 12:04
partial class란 동일한 클래스를 여러 파일에 분리하여 개발가능하도록 구현된 기술입니다. 기존 VS 1.0 에서는 하나의 파일에는 하나 혹은 둘 이상의 클래스를 구현할 수 있습니다. 하지만 두 개의 파일에서 하나의 클래스를 구현할 수가 없었습니다. 2.0에서는 이렇게 두개 이상..
- Partial class
-
- Sealed Class

-
어린왕자와 여우 by 어린왕자|2011/07/08 11:47
클래스나 함수에 Sealed라는 키워드를 붙이게 되면 이 클래스나 함수는 최종클래스, 최종함수가 된다. 이것은 다른 곳에서 상속을 할 수 없게 만드는 것을 의미한다. 이처럼 쓰는 이유는 성능 상의 이슈로 상속을 금지한 클래스는 그렇지 않은 것에 비해 메모리 소비가 적고 더 빠..
- Sealed Class
-
- Using The C# WebClient class to upload and download FTP files

-
어린왕자와 여우 by 어린왕자|2011/06/29 10:17
현업에서 FTP관련한 작업이 필요해서 찾아보다가 잘 정리된 Class가 있어 정리해둔다. Your C# program has just calculated the weekly sales report and you need to upload it to the company file server. The C# System.Net.Webclient class make..
- Using The C# WebClient class to upload and download FTP files
-
- 03. value type, reference type

-
Laboratory of alumina by 알루미나|2011/06/28 20:35
일단 변수 선언부터 설명하기로 하자. //value-type variable definition int u; //value-type variable definition with initialization int v = 100; //reference-type variable definition object obj; /..
- 03. value type, reference type
-
- 02. built-in types

-
Laboratory of alumina by 알루미나|2011/06/28 20:20
C#에서 타입(자료형) 시스템은 크게 value 타입과 reference 타입으로 나뉜다. value 타입은 primitive 타입들과 struct, enum이고. 나머지 모든 타입들(class)은 reference 타입이다. C#의 built-in 타입들은 다음과 같다. .NET Framework Classkeyword..
- 02. built-in types
-
- call by value, call by reference

-
Laboratory of alumina by 알루미나|2011/06/27 18:48
함수 호출시 인자를 넘기는 방법으로 흔하게 두가지 방법이 사용된다. C //call by value void inc(int val) { +val; } //call by pointer (copy address of variable) void inc(int* val) { +(*val); } C에선 call by reference가 없다.다만 변수의 주소를..
- call by value, call by reference
-
- codeHTMLer

-
Laboratory of alumina by 알루미나|2011/06/03 22:09
이글루스에 코드를 올릴때 하이라이팅을 해서 올리고 싶은데 그냥 복사 하자니 단순 문자열로만 들어가는게 문제였다. 그래서 스크린샷을 찍어서 올리다가 얼마전에 소스를 HTML문서로 변환시켜주는 곳을 찾았다. 찾아 보니 나온 싸이트: 영 그런데 개행처리나 자잘한게 마음에 들..
- codeHTMLer
-
- asynchronous call

-
Laboratory of alumina by 알루미나|2011/06/02 19:20
비동기 호출은 메서드가 시간을 많이 소요할때(사이클이 많이 소요되거나 I/O를 하거나 통신을 한다거나 등등의 이유로) 별도의 스레드로 메서드를 호출하고 콜백 메서드로 결과를 처리하는 것을 말한다. 간단..
- asynchronous call
-
- lazy initialization with thread-safe

-
Laboratory of alumina by 알루미나|2011/06/02 11:00
저번 포스트에서 초기화 지연에 대해 설명을 했었는데 그 모델은 멀티 스레드에서 안전하지 않다. 일단 왜 그런지 예를 보여 드리겠다. 생성될 객체의 코드: 메인 메서드: 간단히 말해서 100번 루프를 돌 동안 객체가 2개 생성..
- lazy initialization with thread-safe
-
- lazy initialization

-
Laboratory of alumina by 알루미나|2011/06/01 19:16
때때로 생성하는데 비용(그것이 시간이던 메모리건 간에)이 많이 드는 객체들이 있다. 그런 객체종류를 실제 참조되기 전까지 생성을 지연시키는 것을 lazy initialization이라 한다. 다음 코드 샘플을 보자. ..
- lazy initialization
-
- 01. beginning

-
Laboratory of alumina by 알루미나|2011/05/31 19:40
필자는 왜 C#을 선택해야 하는지 굳이 설명하진 않겠다. 다만 C#으로 할 수 있는게 많다는걸 소개할 것이다. 이 카테코리에서는 오직 C#에 집중할 것이므로 윈폼같은 GUI는 일절 다루지 않을 예정이다. 또한 ..
- 01. beginning
-
- C#에서 자기 실행 폴더 알아내기

-
바람 by forour|2011/03/29 16:35
- c# 코드 -using System.Reflection; public static string GetApplicationDir(){ string application_path = Assembly.GetExecutingAssembly().Location; application_path = Path.GetDirectoryName( application_path ); Utils.App..
- C#에서 자기 실행 폴더 알아내기
-
- IronPython에서 C# class 사용하기

-
바람 by forour|2011/03/29 16:31
c#에서 만든 class를 python에서 사용할 수 있고, 심지어 상속 받을 수도 있다.virtual 함수 오버로딩도 기가막히게 잘 된다. - C# 코드 -NetTest.dll 프로젝트에 포함됨 namespace NetSpace{ public class NetClass { public int net_int = 0; public virtual..
- IronPython에서 C# class 사용하기
-
-
- Azure Code Sample

-
Source Archive by 시나브로 유유히|2010/12/23 10:37
Windows Azure Code Samples Map CategoryItemsSample AppsDPEBid NowWindows Azure Management Tool (MMC)Windows Azure Training KitASP.NET MVC Applications with Windows AzureASP.NET Web Form Applications with Window..
- Azure Code Sample




