Exemplo n.º 1
0
        internal override bool TryGetEventHandle(Cci.IEventDefinition def, out EventDefinitionHandle handle)
        {
            if (mapToMetadata.MapDefinition(def) is PEEventSymbol other)
            {
                handle = other.Handle;
                return(true);
            }

            handle = default;
            return(false);
        }
Exemplo n.º 2
0
        internal override bool TryGetEventHandle(Cci.IEventDefinition def, out EventDefinitionHandle handle)
        {
            var other = this.mapToMetadata.MapDefinition(def) as PEEventSymbol;

            if ((object)other != null)
            {
                handle = other.Handle;
                return(true);
            }
            else
            {
                handle = default(EventDefinitionHandle);
                return(false);
            }
        }
Exemplo n.º 3
0
 internal abstract bool TryGetEventHandle(Cci.IEventDefinition def, out EventDefinitionHandle handle);