public override bool __TryGetFieldMarshal(out FieldMarshal fieldMarshal) { fieldMarshal = new FieldMarshal(); return false; }
public override bool __TryGetFieldMarshal(out FieldMarshal fieldMarshal) { fieldMarshal = new FieldMarshal(); return(false); }
public override bool __TryGetFieldMarshal(out FieldMarshal fieldMarshal) { return FieldMarshal.ReadFieldMarshal(this.Module, this.MetadataToken, out fieldMarshal); }
public override bool __TryGetFieldMarshal(out FieldMarshal fieldMarshal) { return(FieldMarshal.ReadFieldMarshal(this.Module, this.MetadataToken, out fieldMarshal)); }
internal static void SetFieldMarshal(this IHasFieldMarshal owner, LazyValue <FieldMarshal> container, FieldMarshal newValue) { if (newValue != null && newValue.Parent != null) { throw new InvalidOperationException("Field marshal is already added to another member."); } if (container.Value != null) { container.Value.Parent = null; } container.Value = newValue; if (newValue != null) { newValue.Parent = owner; } }
private void UpdateFieldMarshal(Workspace workspace, FieldMarshal marshal) { marshal.MetaDataRow.Parts[0] = GetMemberIndex(workspace, Constructor.OriginalAssembly.NETHeader.TablesHeap.HasFieldMarshall, marshal.Parent); // TODO: serialize blob. }
internal override sealed void BuildTables(MetaDataOut md) { md.AddToTable(MDTable.Param, this); nameIx = md.AddToStringsHeap(pName); if (defaultVal != null) { ConstantElem constElem = new ConstantElem(this, defaultVal); constElem.BuildMDTables(md); } if (marshalType != null) { FieldMarshal marshalInfo = new FieldMarshal(this, marshalType); marshalInfo.BuildMDTables(md); } }