Microsoft MVP성태의 닷넷 이야기
VS.NET IDE : 32. Add-in : Paste XML as serializable type [링크 복사], [링크+제목 복사],
조회: 12368
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


VS.NET Add-in : Paste XML as serializable type


오... 재미있는 툴이네요. 저를 포함해서, 이런 툴이 있다는 사실을 아는 사람들이 거의 없는 모양입니다. 이번 MIX07 에서 관련해서 소개가 되었다는 데 다들 신선했나 봅니다. ^^

다음의 토픽들에서 이에 대해 자세히 설명해 주고 있습니다.

Paste XML as serializable type
; http://bloggingabout.net/blogs/dennis/archive/2007/05/05/paste-xml-as-serializable-type.aspx

Paste XML as serializable type
; http://blogs.msdn.com/mwinkle/archive/2007/05/14/paste-xml-as-serializable-type.aspx

간단하게 풀어보면. 다음과 같은 XML 내용을 클립 보드로 복사한 경우,

<training>
  <name>WCF</name>
  <location>MIC</location>
</training>

VS.NET 2005/Orcas 에서는 다음과 같은 Edit / Paste XML as Serializable Type 메뉴가 생깁니다.

paste_as_serialize_image_thumb.png

선택하면? ^^

다음과 같은 코드가 자동 생성됩니다.

[System.Xml.Serialization.XmlRootAttribute(Namespace = "", ElementName = "training")]
public class TrainingClass
{
  private string nameField;
  private string locationField;
 
  [System.Xml.Serialization.XmlElementAttribute(Namespace = "", ElementName = "name")]
  public virtual string Name
  {
    get { return this.nameField; }
    set  {  this.nameField = value;  }
  }
 
  [System.Xml.Serialization.XmlElementAttribute(Namespace = "", ElementName = "location")]
  public virtual string Location
  {
    get { return this.locationField;}
    set { this.locationField = value;}
  }  
}

오... 훌륭하지요. ^^

의외로, 이 add-in 툴은 현재 "BizTalk Services SDK" 에 포함되어 있습니다. 다음의 경로에서 다운로드 받을 수 있습니다.

BizTalk Labs - BizTalk Services SDK
; http://labs.biztalk.net/downloads.aspx

하지만, 사용자들의 요구 사항으로 인해 조만간 PowerTools 에서 보게 될 수 있을 것 같습니다. ^^



[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 5/16/2007]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
213정성태4/13/200611168Introduction to the MSN Messenger Activity SDK
212정성태4/13/200613254FIN_WAIT_2 상태에 대하여
211정성태4/13/200611828Override CLR Assembly Probing Logic
210정성태4/13/200612229Web.config의 기본 <appSettings /> Handler 교체
209정성태3/25/200612101Win32 FileID API Library
208정성태4/13/200611588(거의)모든 DB 에 대한 ADO.NET Data Provider (유료)목록
205정성태4/13/200611746Static Code Analyzer
206정성태4/13/200611432    답변글 Visual C++ Express를 사용한 보안 응용 프로그램 빌드
203정성태4/13/200611145WGF (Windows Graphic Foundation) [1]
202정성태4/13/200611182사용자 컴퓨터 환경 조사 결과(외국 사례)
201정성태4/13/200616511MySQLDirect .NET Data Provider
207정성태4/13/200610681    답변글 무료: Download Connector/Net 1.0 (MySQL) [1]
200정성태4/13/200611190Understanding Classic COM Interoperability With .NET Applications파일 다운로드1
199정성태4/13/200611555How to get a V2.0 ICorDebug object
198정성태4/13/200611547Whidbey breaking change --- Caching binding failures [1]
197정성태4/13/200610923The JIT does dead-code elimination in Debuggable code
195정성태4/13/200610884910442 - Working with Web Resources in ASP.NET 2.0
194정성태4/13/200611509ASP.NET 2.0 WebPart - SQL Server Error 26: Error Locating Server/Instance Specified
193정성태4/13/200611544WCF - Breaking Changes between Jan CTP and Feb CTP파일 다운로드1
192정성태4/13/200611024Cassini Update
191정성태4/13/200612107LeechBlocker ISAPI Filter
189정성태4/13/200611273The New Anonymous Types Feature in C# 3.0 [1]
188정성태3/8/200611418Microsoft Anti-Cross Site Scripting Library V1.0
196정성태4/13/200610836    답변글 왜 사용해야 하는가?
187정성태4/13/200610802제 1회 INETA 세미나
186정성태4/13/200611356Internet Information Services (IIS) 6.0 Manager for Windows XP
... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...