Mono.CSharp.MethodSpec.SetMetaInfo C# (CSharp) Method

SetMetaInfo() public method

public SetMetaInfo ( MethodInfo info ) : void
info MethodInfo
return void
        public void SetMetaInfo(MethodInfo info)
        {
            if (this.metaInfo != null)
                throw new InternalErrorException ("MetaInfo reset");

            this.metaInfo = info;
        }

Usage Example

Example #1
0
			public override MethodBuilder Define (DeclSpace parent)
			{
				parameters.Resolve (this);
				
				base.Define (parent);

				Spec = new MethodSpec (MemberKind.Method, parent.PartialContainer.Definition, this, ReturnType, null, ParameterInfo, ModFlags);

				method_data = new MethodData (method, ModFlags, flags, this);

				if (!method_data.Define (parent, method.GetFullName (MemberName), Report))
					return null;

				Spec.SetMetaInfo (method_data.MethodBuilder);

				return method_data.MethodBuilder;
			}