PageRenderTime 28ms CodeModel.GetById 22ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Mono.Cecil/SentinelType.cs

http://github.com/jbevain/cecil
C# | 35 lines | 19 code | 7 blank | 9 comment | 0 complexity | a02bfc3def49aca6f65bfdb91405f6d5 MD5 | raw file
 1//
 2// Author:
 3//   Jb Evain (jbevain@gmail.com)
 4//
 5// Copyright (c) 2008 - 2015 Jb Evain
 6// Copyright (c) 2008 - 2011 Novell, Inc.
 7//
 8// Licensed under the MIT/X11 license.
 9//
10
11using System;
12
13using MD = Mono.Cecil.Metadata;
14
15namespace Mono.Cecil {
16
17	public sealed class SentinelType : TypeSpecification {
18
19		public override bool IsValueType {
20			get { return false; }
21			set { throw new InvalidOperationException (); }
22		}
23
24		public override bool IsSentinel {
25			get { return true; }
26		}
27
28		public SentinelType (TypeReference type)
29			: base (type)
30		{
31			Mixin.CheckType (type);
32			this.etype = MD.ElementType.Sentinel;
33		}
34	}
35}