본문 바로가기

프로그래밍/Unity 코드7

C# xml, json, txt, binary 타입 읽고 쓰기 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816.. 2016. 2. 5.
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.
가비지 컬렉션과 메모리에 대한 정리. *가비지 컬렉션 (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.