/// <inheritdoc /> public MetadataToken GetMethodDefinitionToken(MethodDefinition method) { ; return(AssertIsImported(method) ? _methodTokens.GetValue(method) : MetadataToken.Zero); }
internal uint GetImplementationMapRid(MetadataToken ownerToken) { EnsureImplementationMapsInitialized(); return(_implementationMaps.GetValue(ownerToken)); }
internal uint GetClassLayoutRid(MetadataToken ownerToken) { EnsureClassLayoutsInitialized(); return(_classLayouts.GetValue(ownerToken)); }
internal uint GetConstantRid(MetadataToken ownerToken) { EnsureConstantsInitialized(); return(_constants.GetValue(ownerToken)); }
/// <summary> /// Gets the newly assigned metadata token of an event definition stored in a tables stream or tables stream buffer. /// </summary> /// <param name="event">The reference to the event to add.</param> /// <returns>The metadata token of the added event definition.</returns> public MetadataToken GetEventDefinitionToken(EventDefinition @event) { AssertIsImported(@event); return(_eventTokens.GetValue(@event)); }
/// <summary> /// Gets the newly assigned metadata token of a property definition stored in a tables stream or tables stream buffer. /// </summary> /// <param name="property">The reference to the property to add.</param> /// <returns>The metadata token of the added property definition.</returns> public MetadataToken GetPropertyDefinitionToken(PropertyDefinition property) { AssertIsImported(property); return(_propertyTokens.GetValue(property)); }
/// <summary> /// Gets the newly assigned metadata token of a parameter definition stored in a tables stream or tables /// stream buffer. /// </summary> /// <param name="parameter">The reference to the parameter to add.</param> /// <returns>The metadata token of the added parameter definition.</returns> public MetadataToken GetParameterDefinitionToken(ParameterDefinition parameter) { AssertIsImported(parameter); return(_parameterTokens.GetValue(parameter)); }
/// <inheritdoc /> public MetadataToken GetFieldDefinitionToken(FieldDefinition field) { return(AssertIsImported(field) ? _fieldTokens.GetValue(field) : MetadataToken.Zero); }
/// <inheritdoc /> public MetadataToken GetFieldDefinitionToken(FieldDefinition field) { AssertIsImported(field); return(_fieldTokens.GetValue(field)); }
/// <inheritdoc /> public MetadataToken GetTypeDefinitionToken(TypeDefinition type) { AssertIsImported(type); return(_typeDefTokens.GetValue(type)); }
/// <summary> /// Gets the newly assigned metadata token of an event definition stored in a tables stream or tables stream buffer. /// </summary> /// <param name="event">The reference to the event to add.</param> /// <returns>The metadata token of the added event definition.</returns> public MetadataToken GetEventDefinitionToken(EventDefinition @event) { return(AssertIsImported(@event) ? _eventTokens.GetValue(@event) : MetadataToken.Zero); }
/// <summary> /// Gets the newly assigned metadata token of a property definition stored in a tables stream or tables stream buffer. /// </summary> /// <param name="property">The reference to the property to add.</param> /// <returns>The metadata token of the added property definition.</returns> public MetadataToken GetPropertyDefinitionToken(PropertyDefinition property) { return(AssertIsImported(property) ? _propertyTokens.GetValue(property) : MetadataToken.Zero); }
/// <summary> /// Gets the newly assigned metadata token of a parameter definition stored in a tables stream or tables /// stream buffer. /// </summary> /// <param name="parameter">The reference to the parameter to add.</param> /// <returns>The metadata token of the added parameter definition.</returns> public MetadataToken GetParameterDefinitionToken(ParameterDefinition parameter) { return(AssertIsImported(parameter) ? _parameterTokens.GetValue(parameter) : MetadataToken.Zero); }
internal uint GetFieldMarshalRid(MetadataToken fieldToken) { EnsureFieldMarshalsInitialized(); return(_fieldMarshals.GetValue(fieldToken)); }
/// <inheritdoc /> public MetadataToken GetMethodDefinitionToken(MethodDefinition method) { AssertIsImported(method); return(_methodTokens.GetValue(method)); }
internal uint GetFieldLayoutRid(MetadataToken fieldToken) { EnsureFieldLayoutsInitialized(); return(_fieldLayouts.GetValue(fieldToken)); }
/// <inheritdoc /> public MetadataToken GetTypeDefinitionToken(TypeDefinition type) { return(AssertIsImported(type) ? _typeDefTokens.GetValue(type) : MetadataToken.Zero); }