원문은 이곳에서..
다음은 header의 선언부.
다음은 header의 선언부.
using namespace System;위 선언부에 대한 정의는..
public ref class Test
{
long mValue;
array<long>^ mValues;
public:
Test() {}
property long noindex {
void set(long);
long get();
}
property long indexed[int] {
void set(int,long);
long get(int);
}
};
long Test::noindex::get() { return mValue; }
void Test::noindex::set(long value) { mValue = 0; }
long Test::indexed::get(int index) { return mValues[index]; }
void Test::indexed::set(int index, long value)
{
mValues[index] = value;
}
'of 프로그래머 > plfm.Microsoft' 카테고리의 다른 글
| C++/CLI로 Managed Type, Native Type 짬뽕하기(1/2) (1) | 2006/09/21 |
|---|---|
| Windows 응용프로그램 UI 디자인 가이드라인 (0) | 2006/08/24 |
| .cpp 파일에서의 C++/CLI property, indexer syntax (0) | 2006/07/06 |
| STL/CLR, managed, unmanaged code 상호운용성.. (0) | 2006/06/20 |
| STL.NET Primer (3/3) (0) | 2005/03/31 |
| STL.NET Primer (2.5/3) (0) | 2005/03/30 |
TAG C++/CLI



