본문 바로가기
c#

리소스 이미지 속도개선

by 보니스 2016. 7. 20.
반응형
1. 기존 방법

public class Test
{
private Image image;
public Test()
{
image = Test.Properties.Resources.test_image;
}
}


2. 개선된 방법

public class Test
{
private static Image text_image = Test.Properties.Resources.test_image;
private Image image;
public Test()
{
image = text_image;
}
}


출처:

http://devpod.blogspot.kr/2010/01/net-compact-framework-c-%EB%A6%AC%EC%86%8C%EC%8A%A4-%EC%9D%B4%EB%AF%B8%EC%A7%80-%EC%86%8D%EB%8F%84%EA%B0%9C%EC%84%A0.html

'c#' 카테고리의 다른 글

설치된 닷넷 프레임워크 확인  (0) 2016.08.18