Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
11c08b50
R
runtime
项目概览
dotNET Platform
/
runtime
11 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
11c08b50
编写于
6月 19, 2020
作者:
A
Aaron Robinson
提交者:
GitHub
6月 19, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Feedback from 38072 (#38155)
上级
a8d8b4a0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
66 deletion
+21
-66
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml
....Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml
+1
-0
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
...ivate.CoreLib/src/System.Private.CoreLib.Shared.projitems
+0
-1
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/IMarshal.cs
...te.CoreLib/src/System/Runtime/InteropServices/IMarshal.cs
+0
-25
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/StandardOleMarshalObject.Unix.cs
.../Runtime/InteropServices/StandardOleMarshalObject.Unix.cs
+1
-34
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/StandardOleMarshalObject.Windows.cs
...ntime/InteropServices/StandardOleMarshalObject.Windows.cs
+19
-0
src/libraries/System.Runtime.InteropServices/src/ILLinkTrim.xml
...braries/System.Runtime.InteropServices/src/ILLinkTrim.xml
+0
-6
未找到文件。
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml
浏览文件 @
11c08b50
...
...
@@ -43,6 +43,7 @@
<type
fullname=
"System.Runtime.InteropServices.CustomMarshalers.*"
/>
<!-- Workaround for https://github.com/mono/linker/issues/378 -->
<type
fullname=
"System.Runtime.InteropServices.IDispatch"
/>
<type
fullname=
"System.Runtime.InteropServices.IMarshal"
/>
<type
fullname=
"Internal.Runtime.InteropServices.IClassFactory2"
/>
<type
fullname=
"System.Threading.ThreadPoolBoundHandle"
>
<!-- Workaround to keep .interfaceimpl even though this type
...
...
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
浏览文件 @
11c08b50
...
...
@@ -746,7 +746,6 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ICustomMarshaler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ICustomQueryInterface.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\IDynamicInterfaceCastable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\IMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InterfaceTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InvalidComObjectException.cs" />
...
...
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/IMarshal.cs
已删除
100644 → 0
浏览文件 @
a8d8b4a0
// 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.
namespace
System.Runtime.InteropServices
{
[
ComImport
]
[
Guid
(
"00000003-0000-0000-C000-000000000046"
)]
[
InterfaceType
(
ComInterfaceType
.
InterfaceIsIUnknown
)]
internal
interface
IMarshal
{
[
PreserveSig
]
int
GetUnmarshalClass
(
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
,
out
Guid
pCid
);
[
PreserveSig
]
int
GetMarshalSizeMax
(
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
,
out
int
pSize
);
[
PreserveSig
]
int
MarshalInterface
(
IntPtr
pStm
,
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
);
[
PreserveSig
]
int
UnmarshalInterface
(
IntPtr
pStm
,
ref
Guid
riid
,
out
IntPtr
ppv
);
[
PreserveSig
]
int
ReleaseMarshalData
(
IntPtr
pStm
);
[
PreserveSig
]
int
DisconnectObject
(
int
dwReserved
);
}
}
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/StandardOleMarshalObject.Unix.cs
浏览文件 @
11c08b50
...
...
@@ -4,43 +4,10 @@
namespace
System.Runtime.InteropServices
{
public
class
StandardOleMarshalObject
:
MarshalByRefObject
,
IMarshal
public
class
StandardOleMarshalObject
:
MarshalByRefObject
{
protected
StandardOleMarshalObject
()
{
}
int
IMarshal
.
GetUnmarshalClass
(
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
,
out
Guid
pCid
)
{
pCid
=
Guid
.
Empty
;
return
HResults
.
E_NOTIMPL
;
}
int
IMarshal
.
GetMarshalSizeMax
(
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
,
out
int
pSize
)
{
pSize
=
-
1
;
return
HResults
.
E_NOTIMPL
;
}
int
IMarshal
.
MarshalInterface
(
IntPtr
pStm
,
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
)
{
return
HResults
.
E_NOTIMPL
;
}
int
IMarshal
.
UnmarshalInterface
(
IntPtr
pStm
,
ref
Guid
riid
,
out
IntPtr
ppv
)
{
ppv
=
IntPtr
.
Zero
;
return
HResults
.
E_NOTIMPL
;
}
int
IMarshal
.
ReleaseMarshalData
(
IntPtr
pStm
)
{
return
HResults
.
E_NOTIMPL
;
}
int
IMarshal
.
DisconnectObject
(
int
dwReserved
)
{
return
HResults
.
E_NOTIMPL
;
}
}
}
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/StandardOleMarshalObject.Windows.cs
浏览文件 @
11c08b50
...
...
@@ -118,4 +118,23 @@ int IMarshal.DisconnectObject(int dwReserved)
return
HResults
.
E_NOTIMPL
;
}
}
[
ComImport
]
[
Guid
(
"00000003-0000-0000-C000-000000000046"
)]
[
InterfaceType
(
ComInterfaceType
.
InterfaceIsIUnknown
)]
internal
interface
IMarshal
{
[
PreserveSig
]
int
GetUnmarshalClass
(
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
,
out
Guid
pCid
);
[
PreserveSig
]
int
GetMarshalSizeMax
(
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
,
out
int
pSize
);
[
PreserveSig
]
int
MarshalInterface
(
IntPtr
pStm
,
ref
Guid
riid
,
IntPtr
pv
,
int
dwDestContext
,
IntPtr
pvDestContext
,
int
mshlflags
);
[
PreserveSig
]
int
UnmarshalInterface
(
IntPtr
pStm
,
ref
Guid
riid
,
out
IntPtr
ppv
);
[
PreserveSig
]
int
ReleaseMarshalData
(
IntPtr
pStm
);
[
PreserveSig
]
int
DisconnectObject
(
int
dwReserved
);
}
}
src/libraries/System.Runtime.InteropServices/src/ILLinkTrim.xml
已删除
100644 → 0
浏览文件 @
a8d8b4a0
<linker>
<assembly
fullname=
"System.Runtime.InteropServices"
>
<!-- IMarshal is internal and never directly called, but needed by COM -->
<type
fullname=
"System.Runtime.InteropServices.IMarshal"
/>
</assembly>
</linker>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录