comparison Source/Reflection/Emit/MethodBuilderBase.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2
3 namespace BLToolkit.Reflection.Emit
4 {
5 /// <summary>
6 /// Base class for wrappers around methods and constructors.
7 /// </summary>
8 public abstract class MethodBuilderBase
9 {
10 /// <summary>
11 /// Initializes a new instance of the <see cref="MethodBuilderHelper"/> class
12 /// with the specified parameters.
13 /// </summary>
14 /// <param name="typeBuilder">Associated <see cref="TypeBuilderHelper"/>.</param>
15 protected MethodBuilderBase(TypeBuilderHelper typeBuilder)
16 {
17 if (typeBuilder == null) throw new ArgumentNullException("typeBuilder");
18
19 _type = typeBuilder;
20 }
21
22 private readonly TypeBuilderHelper _type;
23 /// <summary>
24 /// Gets associated <see cref="TypeBuilderHelper"/>.
25 /// </summary>
26 public TypeBuilderHelper Type
27 {
28 get { return _type; }
29 }
30
31 /// <summary>
32 /// Gets <see cref="EmitHelper"/>.
33 /// </summary>
34 public abstract EmitHelper Emitter { get; }
35 }
36 }