// Copyright 2003-2008 Novell, Inc.
//
-using System;
-
#if STATIC
using IKVM.Reflection;
#else
{
visitor.Visit (this);
}
+
+ public override void PrepareEmit ()
+ {
+ base.PrepareEmit ();
+ DefineValue ();
+ }
}
public class ConstSpec : FieldSpec
public ConstSpec (TypeSpec declaringType, IMemberDefinition definition, TypeSpec memberType, FieldInfo fi, Modifiers mod, Expression value)
: base (declaringType, definition, memberType, fi, mod)
{
- if (value == null)
- throw new ArgumentNullException ("value");
-
this.value = value;
}