본문 바로가기

전체 글100

System.Reflection , GetType, Getvalue, Setvaule * System.Reflection C#에서 변수의 정보를 접근하기위해 접근자 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778using System;using System.Collections;using System.Collections.Generic;using System.Reflection; namespace nameReflection{ struct stTest { public string strData; public int intData; } class cReflection { // u.. 2016. 2. 5.
랜덤 난수 생성 함수 와 메르센 트위스터 난수 생성 코드12345 srand(GetTickCount()); for (int i = 0; i 2016. 1. 28.
가비지 컬렉션과 메모리에 대한 정리. *가비지 컬렉션 (GC)에 대한 생각 정리 1.C++에서는 메모리 구조가 콜스텍,힙, 레지스터 정적메모리 4가지로 구분된다.하지만 C#으로오면서 콜스텍과 힙영역에만 저장된다.2. 가비지 컬렉터(Garbage Collector)은 메모리가 부족할때 일어난다.레퍼런스 카운팅으로 현재 힙 매모리에 있는 것중 가장 접근 하지않는(사용하지않는) 것부터 세대수를 매겨서 (1세대, 2세대,3세대....)그 중 가장 낮은 세대부터 메모리에 여유가 생길떄 까지 해제한다(즉 지운다) 여기서 키워드 auto , static, extern, register(C언어만)그리고 int,char, float 등 값타입은 스택에 저장된다목록int, float, double, char, struct, bool, enumunsigned,.. 2016. 1. 14.
try -> throw -> cahth try -> throw -> cahth 2015. 7. 4.