public TypeDefBuilder(BuildReferences references, TypeDefMetadataTableRow fromRow) { _references = references; _assembly = references.Assembly; _fromRow = fromRow; _metadata = references.Metadata; _map = references.Map; _metadataStream = _metadata.GetMetadataStream(); }
/// <summary> /// Source values as every method signature location in the files. /// </summary> /// <returns></returns> public IEnumerable <int> Values() { MetadataRow[] rows = _metadata.GetMetadataStream().Tables[MetadataTables.MethodDef]; return(new List <int>() { // 3 methods picked at random (int)((MethodMetadataTableRow)rows[10]).Signiture.Value, (int)((MethodMetadataTableRow)rows[70]).Signiture.Value, (int)((MethodMetadataTableRow)rows[110]).Signiture.Value }); }