Beispiel #1
0
 /// <inheritdoc />
 public MetadataToken GetMethodDefinitionToken(MethodDefinition method)
 {
     ;
     return(AssertIsImported(method)
         ? _methodTokens.GetValue(method)
         : MetadataToken.Zero);
 }
Beispiel #2
0
 internal uint GetImplementationMapRid(MetadataToken ownerToken)
 {
     EnsureImplementationMapsInitialized();
     return(_implementationMaps.GetValue(ownerToken));
 }
Beispiel #3
0
 internal uint GetClassLayoutRid(MetadataToken ownerToken)
 {
     EnsureClassLayoutsInitialized();
     return(_classLayouts.GetValue(ownerToken));
 }
Beispiel #4
0
 internal uint GetConstantRid(MetadataToken ownerToken)
 {
     EnsureConstantsInitialized();
     return(_constants.GetValue(ownerToken));
 }
Beispiel #5
0
 /// <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));
 }
Beispiel #6
0
 /// <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));
 }
Beispiel #7
0
 /// <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));
 }
Beispiel #8
0
 /// <inheritdoc />
 public MetadataToken GetFieldDefinitionToken(FieldDefinition field)
 {
     return(AssertIsImported(field)
         ? _fieldTokens.GetValue(field)
         : MetadataToken.Zero);
 }
Beispiel #9
0
 /// <inheritdoc />
 public MetadataToken GetFieldDefinitionToken(FieldDefinition field)
 {
     AssertIsImported(field);
     return(_fieldTokens.GetValue(field));
 }
Beispiel #10
0
 /// <inheritdoc />
 public MetadataToken GetTypeDefinitionToken(TypeDefinition type)
 {
     AssertIsImported(type);
     return(_typeDefTokens.GetValue(type));
 }
Beispiel #11
0
 /// <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);
 }
Beispiel #12
0
 /// <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);
 }
Beispiel #13
0
 /// <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);
 }
Beispiel #14
0
 internal uint GetFieldMarshalRid(MetadataToken fieldToken)
 {
     EnsureFieldMarshalsInitialized();
     return(_fieldMarshals.GetValue(fieldToken));
 }
Beispiel #15
0
 /// <inheritdoc />
 public MetadataToken GetMethodDefinitionToken(MethodDefinition method)
 {
     AssertIsImported(method);
     return(_methodTokens.GetValue(method));
 }
Beispiel #16
0
 internal uint GetFieldLayoutRid(MetadataToken fieldToken)
 {
     EnsureFieldLayoutsInitialized();
     return(_fieldLayouts.GetValue(fieldToken));
 }
Beispiel #17
0
 /// <inheritdoc />
 public MetadataToken GetTypeDefinitionToken(TypeDefinition type)
 {
     return(AssertIsImported(type)
         ? _typeDefTokens.GetValue(type)
         : MetadataToken.Zero);
 }