Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MarshalAsAttribute.cs « System.Runtime.InteropServices « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48e9f523d07280be8fb9427765a32c235892931f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;

namespace System.Runtime.InteropServices {

	[AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
	public sealed class MarshalAsAttribute : Attribute {
		private UnmanagedType utype;
		public UnmanagedType ArraySubType;
		public string MarshalCookie;
		public string MarshalType;
		public Type MarshalTypeRef;
		public VarEnum SafeArraySubType;
		public int SizeConst;
		public short SizeParamIndex;

		public MarshalAsAttribute (short unmanagedType) {
			utype = (UnmanagedType)unmanagedType;
		}
		public MarshalAsAttribute( UnmanagedType unmanagedType) {
			utype = unmanagedType;
		}
		public UnmanagedType Value {
			get {return utype;}
		}
		
	}
}