[an error occurred while processing this directive]
Ответ:
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено PicoDev2 24 февраля 2005 г. 08:39
В ответ на: Не получилось отформатировать... :-(( отправлено PicoDev2 24 февраля 2005 г. 08:36

Description C++/CLI C#
Allocate reference type ReferenceType^ h = gcnew ReferenceType; ReferenceType h = new ReferenceType();
Allocate value type ValueType v(3, 4); ValueType v = new ValueType(3, 4);
Reference type, stack semantics ReferenceType h; N/A
Calling Dispose method ReferenceType^ h = gcnew ReferenceType;
delete h;
ReferenceType h = new ReferenceType();
((IDisposable)h).Dispose();

Implementing Dispose method ~TypeName() {} void IDisposable.Dispose() {}
Implementing Finalize method !TypeName() {} ~TypeName() {}
Boxing int^ h = 123; object h = 123;
Unboxing int^ hi = 123;
int c = *hi;
object h = 123;
int i = (int) h;

Reference type definition ref class ReferenceType {};
ref struct ReferenceType {};
class ReferenceType {}
Value type definition value class ValueType {};
value struct ValueType {};
struct ValueType {}
Using properties h.Prop = 123;
int v = h.Prop;
h.Prop = 123;
int v = h.Prop;

Property definition property String^ Name
{
String^ get()
{
return m_value;
}
void set(String^ value)
{
m_value = value;
}
} string Name
{
get
{
return m_name;
}
set
{
m_name = value;
}
}


Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа

Имя (обязательно): 
Пароль: 
E-mail: 

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru