Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp1.1'">
<!-- Needs additional APIs that don't exist in the contract. -->
<Compile Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices.Manual.cs" />

<PackageReference Include="Microsoft.NETCore.Platforms" Version="1.1.0" />
<PackageReference Include="Microsoft.NETCore.Targets" Version="1.1.0" />
<PackageReference Include="System.Reflection" Version="4.3.0" />
Expand Down Expand Up @@ -40,6 +43,9 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.5'">
<!-- Needs additional APIs that don't exist in the contract. -->
<Compile Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices.Manual.cs" />

<PackageReference Include="Microsoft.NETCore.Platforms" Version="1.1.0" />
<PackageReference Include="Microsoft.NETCore.Targets" Version="1.1.0" />
<PackageReference Include="System.Reflection" Version="4.3.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------

// See https://github.com/dotnet/source-build/issues/4000 for why this is necessary.

namespace System.Runtime.InteropServices
{
public partial class ComAwareEventInfo : Reflection.EventInfo
{
public override Reflection.MethodInfo GetAddMethod(bool nonPublic) { throw null; }

public override Reflection.MethodInfo GetRaiseMethod(bool nonPublic) { throw null; }

public override Reflection.MethodInfo GetRemoveMethod(bool nonPublic) { throw null; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ public ComAwareEventInfo(Type type, string eventName) { }
public override void AddEventHandler(object target, Delegate handler) { }

public override void RemoveEventHandler(object target, Delegate handler) { }

public override Reflection.MethodInfo GetAddMethod(bool nonPublic) { throw null; }

public override Reflection.MethodInfo GetRaiseMethod(bool nonPublic) { throw null; }

public override Reflection.MethodInfo GetRemoveMethod(bool nonPublic) { throw null; }
}

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ public ComAwareEventInfo(Type type, string eventName) { }
public override void AddEventHandler(object target, Delegate handler) { }

public override void RemoveEventHandler(object target, Delegate handler) { }

public override Reflection.MethodInfo GetAddMethod(bool nonPublic) { throw null; }

public override Reflection.MethodInfo GetRaiseMethod(bool nonPublic) { throw null; }

public override Reflection.MethodInfo GetRemoveMethod(bool nonPublic) { throw null; }
}

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
Expand Down