본문 바로가기

IT개발113

[c#] c# 에서 Brushes.[] 클래스에서 제공하는 color table 정리 .AliceBlue240,248,255.LightSalmon255,160,122.AntiqueWhite250,235,215.LightSeaGreen32,178,170.Aqua0,255,255.LightSkyBlue135,206,250.Aquamarine127,255,212.LightSlateGray119,136,153.Azure240,255,255.LightSteelBlue176,196,222.Beige245,245,220.LightYellow255,255,224.Bisque255,228,196.Lime0,255,0.Black0,0,0.LimeGreen50,205,50.BlanchedAlmond255,255,205.Linen250,240,230.Blue0,0,255.Magenta255,0,255.Blue.. 2014. 4. 25.
[c#] string 데이터를 utf-8 로 인코딩 하여 담아보자 (string to utf-8, encoding) As you know the string is coming in as Encoding.Default you could simply use: byte[] bytes = Encoding.Default.GetBytes(myString); myString = Encoding.UTF8.GetString(bytes); 2014. 4. 25.
[Java] java compile 시 utf-8 문제 (癤?) : Unexpected character (癤) at position 0. Unexpected character (癤) at position 0. 다음과 같은 에러가 나온다면 인코딩의 문제이다. 즉 utf-8 이 아닌 데이터를 읽어올 때 발생되는 에러. 해결방법 : 편법으로 같은 내용의 데이터를 복사해서 파일을 새로 만든다.;; 방법이 있을텐데.. 열심히 구글링 하다 결국 편법으로... 2014. 4. 24.
[c#] c# 형변환에 대해서 알아보자 프로그래밍을 하다보면 형변환을 해야 하는 경우가 많은데, 각각의 자료형 형변환에 대해서 정리했습니다. 일단 가장 기본적으로 수치 자료형들을 str형으로 바꿀때는 ""+자료형 을 해주면 str형으로 바뀝니다. 또는 각각의 ToString() 메소드를 통해서 형을 변환 시킬 수 도 있습니다. 그리고 나머지 수치 자료들은 모두 Parse() 메소드를 가지고 있습니다. 예를 들면 String str = "1234"; 라는 변수는 int a = int.Parse(str) 을 통해서 int 형으로 변환이 됩니다. double 같은 경우는 double.Parse() 가 있습니다. float, long 형 모두 같습니다. 그 외에 double를 int로 바꿀때는 앞에 (int)를 붙여주면 됩니다 예를들면 double .. 2014. 4. 23.
[WPF] ListBox 안에 Button 넣기 In this tutorial I will demonstrate how to create a listbox in WPF which is databound to a collection, we then would like to add a button to each item in the listbox. Clicking this button will button will delete that item from the collection. Making an ObservableCollection We create a small class which represents a User with a Name and Age: public class User {public string Name { get; set; } pub.. 2014. 4. 23.
[c#] Collection 에 대해서 알아보자 C# Collection 정리 System.Collections 네임스페이스System.CollectionsSystem.Collections.ConcurrentSystem.Collections.GenericSystem.Collections.ObjectModelSystem.Collections.Specialized System.CollectionsArrayList 클래스BitArray 클래스CaseInsensitiveComparer 클래스CaseInsensitiveHashCodeProvider 클래스CollectionBase 클래스Comparer 클래스DictionaryBase 클래스DictionaryEntry 구조체Hashtable 클래스ICollection 인터페이스IComparer 인터페이스IDict.. 2014. 4. 23.