public GenericParamConstraintRow CreateGenericParamConstraintRow(uint _owner, MetadataToken _constraint)
        {
            GenericParamConstraintRow row = new GenericParamConstraintRow();

            row.Owner      = _owner;
            row.Constraint = _constraint;
            return(row);
        }
示例#2
0
 public override void VisitGenericParamConstraintRow(GenericParamConstraintRow row)
 {
     row.Owner      = ReadByIndexSize(GetIndexSize(GenericParamTable.RId));
     row.Constraint = Utilities.GetMetadataToken(CodedIndex.TypeDefOrRef,
                                                 ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeDefOrRef)));
 }
 public override void VisitGenericParamConstraintRow(GenericParamConstraintRow row)
 {
     WriteTablePointer(row.Owner, GenericParamTable.RId);
     WriteMetadataToken(row.Constraint, CodedIndex.TypeDefOrRef);
 }