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