repo_name
stringclasses 6
values | pr_number
int64 512
78.9k
| pr_title
stringlengths 3
144
| pr_description
stringlengths 0
30.3k
| author
stringlengths 2
21
| date_created
timestamp[ns, tz=UTC] | date_merged
timestamp[ns, tz=UTC] | previous_commit
stringlengths 40
40
| pr_commit
stringlengths 40
40
| query
stringlengths 17
30.4k
| filepath
stringlengths 9
210
| before_content
stringlengths 0
112M
| after_content
stringlengths 0
112M
| label
int64 -1
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/native/libs/System.Native/pal_dynamicload.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include "pal_compiler.h"
#include "pal_types.h"
PALEXPORT void* SystemNative_LoadLibrary(const char* filename);
PALEXPORT void* SystemNative_GetProcAddress(void* handle, const char* symbol);
PALEXPORT void SystemNative_FreeLibrary(void* handle);
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include "pal_compiler.h"
#include "pal_types.h"
PALEXPORT void* SystemNative_LoadLibrary(const char* filename);
PALEXPORT void* SystemNative_GetProcAddress(void* handle, const char* symbol);
PALEXPORT void SystemNative_FreeLibrary(void* handle);
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/binder/inc/bindertracing.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// bindertracing.h
//
#ifndef __BINDER_TRACING_H__
#define __BINDER_TRACING_H__
class Assembly;
class AssemblySpec;
class PEAssembly;
namespace BINDER_SPACE
{
class Assembly;
class AssemblyName;
}
namespace BinderTracing
{
bool IsEnabled();
// If tracing is enabled, this class fires an assembly bind start event on construction
// and the corresponding stop event on destruction
class AssemblyBindOperation
{
public:
// This class assumes the assembly spec will have a longer lifetime than itself
AssemblyBindOperation(AssemblySpec *assemblySpec, const SString& assemblyPath = SString::Empty());
~AssemblyBindOperation();
void SetResult(PEAssembly *assembly, bool cached = false);
struct BindRequest
{
AssemblySpec *AssemblySpec;
SString AssemblyName;
SString AssemblyPath;
SString RequestingAssembly;
SString AssemblyLoadContext;
SString RequestingAssemblyLoadContext;
};
private:
bool ShouldIgnoreBind();
private:
BindRequest m_bindRequest;
bool m_populatedBindRequest;
bool m_checkedIgnoreBind;
bool m_ignoreBind;
PEAssembly *m_resultAssembly;
bool m_cached;
};
// An object of this class manages firing events for all the stages during a binder resolving
// attempt operation. It has minimal cost if tracing for this event is disabled.
//
// This class should be declared in the stack. As information is determined by each stage
// (e.g. an AssemblySpec is initialized), the appropriate Set*() method should be called. All
// pointers held by an object of this class must either be a nullptr, or point to a valid
// object during the time it is in scope.
//
// As the resolution progresses to different stages, the GoToStage() method should be called.
// Calling it will fire an event for the previous stage with whatever context the class had
// at that point; it is assumed that if GoToStage() is called, the previous stage failed
// (the HRESULT is read by the dtor to assess success).
//
// It holds a reference to a HRESULT (that must be live during the lifetime of this object),
// which is used to determine the success or failure of a stage either at the moment this
// class is destructed (e.g. last stage), or when moving from one stage to another. (This
// is especially useful if the HRESULT is captured from an exception handler.)
class ResolutionAttemptedOperation
{
public:
// This must match the ResolutionAttemptedStage value map in ClrEtwAll.man
enum class Stage : uint16_t
{
FindInLoadContext = 0,
AssemblyLoadContextLoad = 1,
ApplicationAssemblies = 2,
DefaultAssemblyLoadContextFallback = 3,
ResolveSatelliteAssembly = 4,
AssemblyLoadContextResolvingEvent = 5,
AppDomainAssemblyResolveEvent = 6,
NotYetStarted = 0xffff, // Used as flag to not fire event; not present in value map
};
public: // static
static void TraceAppDomainAssemblyResolve(AssemblySpec *spec, PEAssembly *resultAssembly, Exception *exception = nullptr);
public:
// One of native bindContext or managedALC is expected to be non-zero. If the managed ALC is set, bindContext is ignored.
ResolutionAttemptedOperation(BINDER_SPACE::AssemblyName *assemblyName, AssemblyBinder* bindContext, INT_PTR managedALC, const HRESULT& hr);
void TraceBindResult(const BINDER_SPACE::BindResult &bindResult, bool mvidMismatch = false);
void SetFoundAssembly(BINDER_SPACE::Assembly *assembly)
{
m_pFoundAssembly = assembly;
}
void GoToStage(Stage stage)
{
assert(m_stage != stage);
assert(stage != Stage::NotYetStarted);
if (!m_tracingEnabled)
return;
// Going to a different stage should only happen if the current
// stage failed (or if the binding process wasn't yet started).
// Firing the event at this point not only helps timing each binding
// stage, but avoids keeping track of which stages were reached to
// resolve the assembly.
TraceStage(m_stage, m_hr, m_pFoundAssembly);
m_stage = stage;
m_exceptionMessage.Clear();
}
void SetException(Exception *ex)
{
if (!m_tracingEnabled)
return;
ex->GetMessage(m_exceptionMessage);
}
#ifdef FEATURE_EVENT_TRACE
~ResolutionAttemptedOperation()
{
if (!m_tracingEnabled)
return;
TraceStage(m_stage, m_hr, m_pFoundAssembly);
}
#endif // FEATURE_EVENT_TRACE
private:
// This must match the ResolutionAttemptedResult value map in ClrEtwAll.man
enum class Result : uint16_t
{
Success = 0,
AssemblyNotFound = 1,
IncompatibleVersion = 2,
MismatchedAssemblyName = 3,
Failure = 4,
Exception = 5,
};
// A reference to an HRESULT stored in the same scope as this object lets
// us determine if the last requested stage was successful or not, regardless
// if it was set through a function call (e.g. BindAssemblyByNameWorker()), or
// if an exception was thrown and captured by the EX_CATCH_HRESULT() macro.
const HRESULT &m_hr;
Stage m_stage;
bool m_tracingEnabled;
BINDER_SPACE::AssemblyName *m_assemblyNameObject;
PathString m_assemblyName;
SString m_assemblyLoadContextName;
SString m_exceptionMessage;
BINDER_SPACE::Assembly *m_pFoundAssembly;
void TraceStage(Stage stage, HRESULT hr, BINDER_SPACE::Assembly *resultAssembly, const WCHAR *errorMessage = nullptr);
};
// This must match the BindingPathSource value map in ClrEtwAll.man
enum PathSource
{
ApplicationAssemblies,
Unused,
AppPaths,
PlatformResourceRoots,
SatelliteSubdirectory,
Bundle
};
void PathProbed(const WCHAR *path, PathSource source, HRESULT hr);
};
#endif // __BINDER_TRACING_H__
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// bindertracing.h
//
#ifndef __BINDER_TRACING_H__
#define __BINDER_TRACING_H__
class Assembly;
class AssemblySpec;
class PEAssembly;
namespace BINDER_SPACE
{
class Assembly;
class AssemblyName;
}
namespace BinderTracing
{
bool IsEnabled();
// If tracing is enabled, this class fires an assembly bind start event on construction
// and the corresponding stop event on destruction
class AssemblyBindOperation
{
public:
// This class assumes the assembly spec will have a longer lifetime than itself
AssemblyBindOperation(AssemblySpec *assemblySpec, const SString& assemblyPath = SString::Empty());
~AssemblyBindOperation();
void SetResult(PEAssembly *assembly, bool cached = false);
struct BindRequest
{
AssemblySpec *AssemblySpec;
SString AssemblyName;
SString AssemblyPath;
SString RequestingAssembly;
SString AssemblyLoadContext;
SString RequestingAssemblyLoadContext;
};
private:
bool ShouldIgnoreBind();
private:
BindRequest m_bindRequest;
bool m_populatedBindRequest;
bool m_checkedIgnoreBind;
bool m_ignoreBind;
PEAssembly *m_resultAssembly;
bool m_cached;
};
// An object of this class manages firing events for all the stages during a binder resolving
// attempt operation. It has minimal cost if tracing for this event is disabled.
//
// This class should be declared in the stack. As information is determined by each stage
// (e.g. an AssemblySpec is initialized), the appropriate Set*() method should be called. All
// pointers held by an object of this class must either be a nullptr, or point to a valid
// object during the time it is in scope.
//
// As the resolution progresses to different stages, the GoToStage() method should be called.
// Calling it will fire an event for the previous stage with whatever context the class had
// at that point; it is assumed that if GoToStage() is called, the previous stage failed
// (the HRESULT is read by the dtor to assess success).
//
// It holds a reference to a HRESULT (that must be live during the lifetime of this object),
// which is used to determine the success or failure of a stage either at the moment this
// class is destructed (e.g. last stage), or when moving from one stage to another. (This
// is especially useful if the HRESULT is captured from an exception handler.)
class ResolutionAttemptedOperation
{
public:
// This must match the ResolutionAttemptedStage value map in ClrEtwAll.man
enum class Stage : uint16_t
{
FindInLoadContext = 0,
AssemblyLoadContextLoad = 1,
ApplicationAssemblies = 2,
DefaultAssemblyLoadContextFallback = 3,
ResolveSatelliteAssembly = 4,
AssemblyLoadContextResolvingEvent = 5,
AppDomainAssemblyResolveEvent = 6,
NotYetStarted = 0xffff, // Used as flag to not fire event; not present in value map
};
public: // static
static void TraceAppDomainAssemblyResolve(AssemblySpec *spec, PEAssembly *resultAssembly, Exception *exception = nullptr);
public:
// One of native bindContext or managedALC is expected to be non-zero. If the managed ALC is set, bindContext is ignored.
ResolutionAttemptedOperation(BINDER_SPACE::AssemblyName *assemblyName, AssemblyBinder* bindContext, INT_PTR managedALC, const HRESULT& hr);
void TraceBindResult(const BINDER_SPACE::BindResult &bindResult, bool mvidMismatch = false);
void SetFoundAssembly(BINDER_SPACE::Assembly *assembly)
{
m_pFoundAssembly = assembly;
}
void GoToStage(Stage stage)
{
assert(m_stage != stage);
assert(stage != Stage::NotYetStarted);
if (!m_tracingEnabled)
return;
// Going to a different stage should only happen if the current
// stage failed (or if the binding process wasn't yet started).
// Firing the event at this point not only helps timing each binding
// stage, but avoids keeping track of which stages were reached to
// resolve the assembly.
TraceStage(m_stage, m_hr, m_pFoundAssembly);
m_stage = stage;
m_exceptionMessage.Clear();
}
void SetException(Exception *ex)
{
if (!m_tracingEnabled)
return;
ex->GetMessage(m_exceptionMessage);
}
#ifdef FEATURE_EVENT_TRACE
~ResolutionAttemptedOperation()
{
if (!m_tracingEnabled)
return;
TraceStage(m_stage, m_hr, m_pFoundAssembly);
}
#endif // FEATURE_EVENT_TRACE
private:
// This must match the ResolutionAttemptedResult value map in ClrEtwAll.man
enum class Result : uint16_t
{
Success = 0,
AssemblyNotFound = 1,
IncompatibleVersion = 2,
MismatchedAssemblyName = 3,
Failure = 4,
Exception = 5,
};
// A reference to an HRESULT stored in the same scope as this object lets
// us determine if the last requested stage was successful or not, regardless
// if it was set through a function call (e.g. BindAssemblyByNameWorker()), or
// if an exception was thrown and captured by the EX_CATCH_HRESULT() macro.
const HRESULT &m_hr;
Stage m_stage;
bool m_tracingEnabled;
BINDER_SPACE::AssemblyName *m_assemblyNameObject;
PathString m_assemblyName;
SString m_assemblyLoadContextName;
SString m_exceptionMessage;
BINDER_SPACE::Assembly *m_pFoundAssembly;
void TraceStage(Stage stage, HRESULT hr, BINDER_SPACE::Assembly *resultAssembly, const WCHAR *errorMessage = nullptr);
};
// This must match the BindingPathSource value map in ClrEtwAll.man
enum PathSource
{
ApplicationAssemblies,
Unused,
AppPaths,
PlatformResourceRoots,
SatelliteSubdirectory,
Bundle
};
void PathProbed(const WCHAR *path, PathSource source, HRESULT hr);
};
#endif // __BINDER_TRACING_H__
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/oft1.txt
|
<?xml version="1.0" encoding="utf-8"?>Hello, world!
|
<?xml version="1.0" encoding="utf-8"?>Hello, world!
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/mono/mono/arch/arm/arm_dpimacros.h
|
/* Macros for DPI ops, auto-generated from template */
/* mov/mvn */
/* Rd := imm8 ROR rot */
#define ARM_MOV_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, rot, cond)
#define ARM_MOV_REG_IMM(p, reg, imm8, rot) \
ARM_MOV_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, rot, cond)
#define ARM_MOVS_REG_IMM(p, reg, imm8, rot) \
ARM_MOVS_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, rot, cond)
#define _MOV_REG_IMM(reg, imm8, rot) \
_MOV_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
/* S */
#define _MOVS_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, rot, cond)
#define _MOVS_REG_IMM(reg, imm8, rot) \
_MOVS_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
#endif
/* Rd := imm8 */
#define ARM_MOV_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, 0, cond)
#define ARM_MOV_REG_IMM8(p, reg, imm8) \
ARM_MOV_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, 0, cond)
#define ARM_MOVS_REG_IMM8(p, reg, imm8) \
ARM_MOVS_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, 0, cond)
#define _MOV_REG_IMM8(reg, imm8) \
_MOV_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
/* S */
#define _MOVS_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, 0, cond)
#define _MOVS_REG_IMM8(reg, imm8) \
_MOVS_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
#endif
/* Rd := Rm */
#define ARM_MOV_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_MOV, rd, 0, rm, cond)
#define ARM_MOV_REG_REG(p, rd, rm) \
ARM_MOV_REG_REG_COND(p, rd, rm, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_MOV, rd, 0, rm, cond)
#define ARM_MOVS_REG_REG(p, rd, rm) \
ARM_MOVS_REG_REG_COND(p, rd, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_MOV, rd, 0, rm, cond)
#define _MOV_REG_REG(rd, rm) \
_MOV_REG_REG_COND(rd, rm, ARMCOND_AL)
/* S */
#define _MOVS_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_MOV, rd, 0, rm, cond)
#define _MOVS_REG_REG(rd, rm) \
_MOVS_REG_REG_COND(rd, rm, ARMCOND_AL)
#endif
/* Rd := Rm <shift_type> imm_shift */
#define ARM_MOV_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MOV_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MOV_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MOVS_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MOVS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define _MOV_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MOV_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define _MOVS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define _MOVS_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MOVS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := (Rm <shift_type> Rs) */
#define ARM_MOV_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define ARM_MOV_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MOV_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define ARM_MOVS_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MOVS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define _MOV_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MOV_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define _MOVS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define _MOVS_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MOVS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
#endif
/* Rd := imm8 ROR rot */
#define ARM_MVN_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, rot, cond)
#define ARM_MVN_REG_IMM(p, reg, imm8, rot) \
ARM_MVN_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, rot, cond)
#define ARM_MVNS_REG_IMM(p, reg, imm8, rot) \
ARM_MVNS_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, rot, cond)
#define _MVN_REG_IMM(reg, imm8, rot) \
_MVN_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
/* S */
#define _MVNS_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, rot, cond)
#define _MVNS_REG_IMM(reg, imm8, rot) \
_MVNS_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
#endif
/* Rd := imm8 */
#define ARM_MVN_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, 0, cond)
#define ARM_MVN_REG_IMM8(p, reg, imm8) \
ARM_MVN_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, 0, cond)
#define ARM_MVNS_REG_IMM8(p, reg, imm8) \
ARM_MVNS_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, 0, cond)
#define _MVN_REG_IMM8(reg, imm8) \
_MVN_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
/* S */
#define _MVNS_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, 0, cond)
#define _MVNS_REG_IMM8(reg, imm8) \
_MVNS_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
#endif
/* Rd := Rm */
#define ARM_MVN_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_MVN, rd, 0, rm, cond)
#define ARM_MVN_REG_REG(p, rd, rm) \
ARM_MVN_REG_REG_COND(p, rd, rm, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_MVN, rd, 0, rm, cond)
#define ARM_MVNS_REG_REG(p, rd, rm) \
ARM_MVNS_REG_REG_COND(p, rd, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_MVN, rd, 0, rm, cond)
#define _MVN_REG_REG(rd, rm) \
_MVN_REG_REG_COND(rd, rm, ARMCOND_AL)
/* S */
#define _MVNS_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_MVN, rd, 0, rm, cond)
#define _MVNS_REG_REG(rd, rm) \
_MVNS_REG_REG_COND(rd, rm, ARMCOND_AL)
#endif
/* Rd := Rm <shift_type> imm_shift */
#define ARM_MVN_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MVN_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MVN_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MVNS_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MVNS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define _MVN_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MVN_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define _MVNS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define _MVNS_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MVNS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := (Rm <shift_type> Rs) */
#define ARM_MVN_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define ARM_MVN_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MVN_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define ARM_MVNS_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MVNS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define _MVN_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MVN_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define _MVNS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define _MVNS_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MVNS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
#endif
/* DPIs, arithmetic and logical */
/* -- AND -- */
/* Rd := Rn AND (imm8 ROR rot) ; rot is power of 2 */
#define ARM_AND_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_AND, rd, rn, imm8, rot, cond)
#define ARM_AND_REG_IMM(p, rd, rn, imm8, rot) \
ARM_AND_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ANDS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_AND, rd, rn, imm8, rot, cond)
#define ARM_ANDS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ANDS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_AND, rd, rn, imm8, rot, cond)
#define _AND_REG_IMM(rd, rn, imm8, rot) \
_AND_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ANDS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_AND, rd, rn, imm8, rot, cond)
#define _ANDS_REG_IMM(rd, rn, imm8, rot) \
_ANDS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn AND imm8 */
#define ARM_AND_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_AND_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_AND_REG_IMM8(p, rd, rn, imm8) \
ARM_AND_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ANDS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ANDS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ANDS_REG_IMM8(p, rd, rn, imm8) \
ARM_ANDS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_IMM8_COND(rd, rn, imm8, cond) \
_AND_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _AND_REG_IMM8(rd, rn, imm8) \
_AND_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ANDS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ANDS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ANDS_REG_IMM8(rd, rn, imm8) \
_ANDS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn AND Rm */
#define ARM_AND_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_AND, rd, rn, rm, cond)
#define ARM_AND_REG_REG(p, rd, rn, rm) \
ARM_AND_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ANDS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_AND, rd, rn, rm, cond)
#define ARM_ANDS_REG_REG(p, rd, rn, rm) \
ARM_ANDS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_AND, rd, rn, rm, cond)
#define _AND_REG_REG(rd, rn, rm) \
_AND_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ANDS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_AND, rd, rn, rm, cond)
#define _ANDS_REG_REG(rd, rn, rm) \
_ANDS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn AND (Rm <shift_type> imm_shift) */
#define ARM_AND_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_AND_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_AND_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ANDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ANDS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ANDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define _AND_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_AND_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ANDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define _ANDS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ANDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn AND (Rm <shift_type> Rs) */
#define ARM_AND_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define ARM_AND_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_AND_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ANDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define ARM_ANDS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ANDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define _AND_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_AND_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ANDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define _ANDS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ANDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- EOR -- */
/* Rd := Rn EOR (imm8 ROR rot) ; rot is power of 2 */
#define ARM_EOR_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_EOR, rd, rn, imm8, rot, cond)
#define ARM_EOR_REG_IMM(p, rd, rn, imm8, rot) \
ARM_EOR_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_EORS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_EOR, rd, rn, imm8, rot, cond)
#define ARM_EORS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_EORS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_EOR, rd, rn, imm8, rot, cond)
#define _EOR_REG_IMM(rd, rn, imm8, rot) \
_EOR_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _EORS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_EOR, rd, rn, imm8, rot, cond)
#define _EORS_REG_IMM(rd, rn, imm8, rot) \
_EORS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn EOR imm8 */
#define ARM_EOR_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_EOR_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_EOR_REG_IMM8(p, rd, rn, imm8) \
ARM_EOR_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_EORS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_EORS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_EORS_REG_IMM8(p, rd, rn, imm8) \
ARM_EORS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_IMM8_COND(rd, rn, imm8, cond) \
_EOR_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _EOR_REG_IMM8(rd, rn, imm8) \
_EOR_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _EORS_REG_IMM8_COND(rd, rn, imm8, cond) \
_EORS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _EORS_REG_IMM8(rd, rn, imm8) \
_EORS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn EOR Rm */
#define ARM_EOR_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_EOR, rd, rn, rm, cond)
#define ARM_EOR_REG_REG(p, rd, rn, rm) \
ARM_EOR_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_EORS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_EOR, rd, rn, rm, cond)
#define ARM_EORS_REG_REG(p, rd, rn, rm) \
ARM_EORS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_EOR, rd, rn, rm, cond)
#define _EOR_REG_REG(rd, rn, rm) \
_EOR_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _EORS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_EOR, rd, rn, rm, cond)
#define _EORS_REG_REG(rd, rn, rm) \
_EORS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn EOR (Rm <shift_type> imm_shift) */
#define ARM_EOR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_EOR_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_EOR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_EORS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_EORS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_EORS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define _EOR_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_EOR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _EORS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define _EORS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_EORS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn EOR (Rm <shift_type> Rs) */
#define ARM_EOR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define ARM_EOR_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_EOR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_EORS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define ARM_EORS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_EORS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define _EOR_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_EOR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _EORS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define _EORS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_EORS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- SUB -- */
/* Rd := Rn SUB (imm8 ROR rot) ; rot is power of 2 */
#define ARM_SUB_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_SUB, rd, rn, imm8, rot, cond)
#define ARM_SUB_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SUB_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_SUBS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_SUB, rd, rn, imm8, rot, cond)
#define ARM_SUBS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SUBS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_SUB, rd, rn, imm8, rot, cond)
#define _SUB_REG_IMM(rd, rn, imm8, rot) \
_SUB_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _SUBS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_SUB, rd, rn, imm8, rot, cond)
#define _SUBS_REG_IMM(rd, rn, imm8, rot) \
_SUBS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn SUB imm8 */
#define ARM_SUB_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SUB_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SUB_REG_IMM8(p, rd, rn, imm8) \
ARM_SUB_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_SUBS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SUBS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SUBS_REG_IMM8(p, rd, rn, imm8) \
ARM_SUBS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_IMM8_COND(rd, rn, imm8, cond) \
_SUB_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SUB_REG_IMM8(rd, rn, imm8) \
_SUB_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _SUBS_REG_IMM8_COND(rd, rn, imm8, cond) \
_SUBS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SUBS_REG_IMM8(rd, rn, imm8) \
_SUBS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn SUB Rm */
#define ARM_SUB_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_SUB, rd, rn, rm, cond)
#define ARM_SUB_REG_REG(p, rd, rn, rm) \
ARM_SUB_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_SUBS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_SUB, rd, rn, rm, cond)
#define ARM_SUBS_REG_REG(p, rd, rn, rm) \
ARM_SUBS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_SUB, rd, rn, rm, cond)
#define _SUB_REG_REG(rd, rn, rm) \
_SUB_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _SUBS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_SUB, rd, rn, rm, cond)
#define _SUBS_REG_REG(rd, rn, rm) \
_SUBS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn SUB (Rm <shift_type> imm_shift) */
#define ARM_SUB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SUB_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SUB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_SUBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SUBS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SUBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define _SUB_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SUB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _SUBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define _SUBS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SUBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn SUB (Rm <shift_type> Rs) */
#define ARM_SUB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define ARM_SUB_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SUB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_SUBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define ARM_SUBS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SUBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define _SUB_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SUB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _SUBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define _SUBS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SUBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- RSB -- */
/* Rd := Rn RSB (imm8 ROR rot) ; rot is power of 2 */
#define ARM_RSB_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_RSB, rd, rn, imm8, rot, cond)
#define ARM_RSB_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSB_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_RSBS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_RSB, rd, rn, imm8, rot, cond)
#define ARM_RSBS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSBS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_RSB, rd, rn, imm8, rot, cond)
#define _RSB_REG_IMM(rd, rn, imm8, rot) \
_RSB_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _RSBS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_RSB, rd, rn, imm8, rot, cond)
#define _RSBS_REG_IMM(rd, rn, imm8, rot) \
_RSBS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn RSB imm8 */
#define ARM_RSB_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSB_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSB_REG_IMM8(p, rd, rn, imm8) \
ARM_RSB_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_RSBS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSBS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSBS_REG_IMM8(p, rd, rn, imm8) \
ARM_RSBS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSB_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSB_REG_IMM8(rd, rn, imm8) \
_RSB_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _RSBS_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSBS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSBS_REG_IMM8(rd, rn, imm8) \
_RSBS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn RSB Rm */
#define ARM_RSB_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_RSB, rd, rn, rm, cond)
#define ARM_RSB_REG_REG(p, rd, rn, rm) \
ARM_RSB_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_RSBS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_RSB, rd, rn, rm, cond)
#define ARM_RSBS_REG_REG(p, rd, rn, rm) \
ARM_RSBS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_RSB, rd, rn, rm, cond)
#define _RSB_REG_REG(rd, rn, rm) \
_RSB_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _RSBS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_RSB, rd, rn, rm, cond)
#define _RSBS_REG_REG(rd, rn, rm) \
_RSBS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn RSB (Rm <shift_type> imm_shift) */
#define ARM_RSB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSB_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_RSBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSBS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSB_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _RSBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSBS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn RSB (Rm <shift_type> Rs) */
#define ARM_RSB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSB_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_RSBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSBS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define _RSB_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _RSBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define _RSBS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- ADD -- */
/* Rd := Rn ADD (imm8 ROR rot) ; rot is power of 2 */
#define ARM_ADD_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_ADD, rd, rn, imm8, rot, cond)
#define ARM_ADD_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADD_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ADDS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_ADD, rd, rn, imm8, rot, cond)
#define ARM_ADDS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADDS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_ADD, rd, rn, imm8, rot, cond)
#define _ADD_REG_IMM(rd, rn, imm8, rot) \
_ADD_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ADDS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_ADD, rd, rn, imm8, rot, cond)
#define _ADDS_REG_IMM(rd, rn, imm8, rot) \
_ADDS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn ADD imm8 */
#define ARM_ADD_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADD_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADD_REG_IMM8(p, rd, rn, imm8) \
ARM_ADD_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ADDS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADDS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADDS_REG_IMM8(p, rd, rn, imm8) \
ARM_ADDS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADD_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADD_REG_IMM8(rd, rn, imm8) \
_ADD_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ADDS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADDS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADDS_REG_IMM8(rd, rn, imm8) \
_ADDS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn ADD Rm */
#define ARM_ADD_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_ADD, rd, rn, rm, cond)
#define ARM_ADD_REG_REG(p, rd, rn, rm) \
ARM_ADD_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ADDS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_ADD, rd, rn, rm, cond)
#define ARM_ADDS_REG_REG(p, rd, rn, rm) \
ARM_ADDS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_ADD, rd, rn, rm, cond)
#define _ADD_REG_REG(rd, rn, rm) \
_ADD_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ADDS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_ADD, rd, rn, rm, cond)
#define _ADDS_REG_REG(rd, rn, rm) \
_ADDS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn ADD (Rm <shift_type> imm_shift) */
#define ARM_ADD_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADD_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADD_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ADDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADDS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADD_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADD_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ADDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADDS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn ADD (Rm <shift_type> Rs) */
#define ARM_ADD_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADD_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADD_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ADDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADDS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define _ADD_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADD_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ADDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define _ADDS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- ADC -- */
/* Rd := Rn ADC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_ADC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_ADC, rd, rn, imm8, rot, cond)
#define ARM_ADC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ADCS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_ADC, rd, rn, imm8, rot, cond)
#define ARM_ADCS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADCS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_ADC, rd, rn, imm8, rot, cond)
#define _ADC_REG_IMM(rd, rn, imm8, rot) \
_ADC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ADCS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_ADC, rd, rn, imm8, rot, cond)
#define _ADCS_REG_IMM(rd, rn, imm8, rot) \
_ADCS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn ADC imm8 */
#define ARM_ADC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADC_REG_IMM8(p, rd, rn, imm8) \
ARM_ADC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ADCS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADCS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADCS_REG_IMM8(p, rd, rn, imm8) \
ARM_ADCS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADC_REG_IMM8(rd, rn, imm8) \
_ADC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ADCS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADCS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADCS_REG_IMM8(rd, rn, imm8) \
_ADCS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn ADC Rm */
#define ARM_ADC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_ADC, rd, rn, rm, cond)
#define ARM_ADC_REG_REG(p, rd, rn, rm) \
ARM_ADC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ADCS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_ADC, rd, rn, rm, cond)
#define ARM_ADCS_REG_REG(p, rd, rn, rm) \
ARM_ADCS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_ADC, rd, rn, rm, cond)
#define _ADC_REG_REG(rd, rn, rm) \
_ADC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ADCS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_ADC, rd, rn, rm, cond)
#define _ADCS_REG_REG(rd, rn, rm) \
_ADCS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn ADC (Rm <shift_type> imm_shift) */
#define ARM_ADC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ADCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADCS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ADCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADCS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn ADC (Rm <shift_type> Rs) */
#define ARM_ADC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ADCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADCS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define _ADC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ADCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define _ADCS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- SBC -- */
/* Rd := Rn SBC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_SBC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_SBC, rd, rn, imm8, rot, cond)
#define ARM_SBC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SBC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_SBCS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_SBC, rd, rn, imm8, rot, cond)
#define ARM_SBCS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SBCS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_SBC, rd, rn, imm8, rot, cond)
#define _SBC_REG_IMM(rd, rn, imm8, rot) \
_SBC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _SBCS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_SBC, rd, rn, imm8, rot, cond)
#define _SBCS_REG_IMM(rd, rn, imm8, rot) \
_SBCS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn SBC imm8 */
#define ARM_SBC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SBC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SBC_REG_IMM8(p, rd, rn, imm8) \
ARM_SBC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_SBCS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SBCS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SBCS_REG_IMM8(p, rd, rn, imm8) \
ARM_SBCS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_IMM8_COND(rd, rn, imm8, cond) \
_SBC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SBC_REG_IMM8(rd, rn, imm8) \
_SBC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _SBCS_REG_IMM8_COND(rd, rn, imm8, cond) \
_SBCS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SBCS_REG_IMM8(rd, rn, imm8) \
_SBCS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn SBC Rm */
#define ARM_SBC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_SBC, rd, rn, rm, cond)
#define ARM_SBC_REG_REG(p, rd, rn, rm) \
ARM_SBC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_SBCS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_SBC, rd, rn, rm, cond)
#define ARM_SBCS_REG_REG(p, rd, rn, rm) \
ARM_SBCS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_SBC, rd, rn, rm, cond)
#define _SBC_REG_REG(rd, rn, rm) \
_SBC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _SBCS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_SBC, rd, rn, rm, cond)
#define _SBCS_REG_REG(rd, rn, rm) \
_SBCS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn SBC (Rm <shift_type> imm_shift) */
#define ARM_SBC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SBC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SBC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_SBCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SBCS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SBCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define _SBC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SBC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _SBCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define _SBCS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SBCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn SBC (Rm <shift_type> Rs) */
#define ARM_SBC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define ARM_SBC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SBC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_SBCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define ARM_SBCS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SBCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define _SBC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SBC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _SBCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define _SBCS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SBCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- RSC -- */
/* Rd := Rn RSC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_RSC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_RSC, rd, rn, imm8, rot, cond)
#define ARM_RSC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_RSCS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_RSC, rd, rn, imm8, rot, cond)
#define ARM_RSCS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSCS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_RSC, rd, rn, imm8, rot, cond)
#define _RSC_REG_IMM(rd, rn, imm8, rot) \
_RSC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _RSCS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_RSC, rd, rn, imm8, rot, cond)
#define _RSCS_REG_IMM(rd, rn, imm8, rot) \
_RSCS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn RSC imm8 */
#define ARM_RSC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSC_REG_IMM8(p, rd, rn, imm8) \
ARM_RSC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_RSCS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSCS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSCS_REG_IMM8(p, rd, rn, imm8) \
ARM_RSCS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSC_REG_IMM8(rd, rn, imm8) \
_RSC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _RSCS_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSCS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSCS_REG_IMM8(rd, rn, imm8) \
_RSCS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn RSC Rm */
#define ARM_RSC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_RSC, rd, rn, rm, cond)
#define ARM_RSC_REG_REG(p, rd, rn, rm) \
ARM_RSC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_RSCS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_RSC, rd, rn, rm, cond)
#define ARM_RSCS_REG_REG(p, rd, rn, rm) \
ARM_RSCS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_RSC, rd, rn, rm, cond)
#define _RSC_REG_REG(rd, rn, rm) \
_RSC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _RSCS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_RSC, rd, rn, rm, cond)
#define _RSCS_REG_REG(rd, rn, rm) \
_RSCS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn RSC (Rm <shift_type> imm_shift) */
#define ARM_RSC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_RSCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSCS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _RSCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSCS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn RSC (Rm <shift_type> Rs) */
#define ARM_RSC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_RSCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSCS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define _RSC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _RSCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define _RSCS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- ORR -- */
/* Rd := Rn ORR (imm8 ROR rot) ; rot is power of 2 */
#define ARM_ORR_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_ORR, rd, rn, imm8, rot, cond)
#define ARM_ORR_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ORR_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ORRS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_ORR, rd, rn, imm8, rot, cond)
#define ARM_ORRS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ORRS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_ORR, rd, rn, imm8, rot, cond)
#define _ORR_REG_IMM(rd, rn, imm8, rot) \
_ORR_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ORRS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_ORR, rd, rn, imm8, rot, cond)
#define _ORRS_REG_IMM(rd, rn, imm8, rot) \
_ORRS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn ORR imm8 */
#define ARM_ORR_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ORR_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ORR_REG_IMM8(p, rd, rn, imm8) \
ARM_ORR_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ORRS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ORRS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ORRS_REG_IMM8(p, rd, rn, imm8) \
ARM_ORRS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_IMM8_COND(rd, rn, imm8, cond) \
_ORR_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ORR_REG_IMM8(rd, rn, imm8) \
_ORR_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ORRS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ORRS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ORRS_REG_IMM8(rd, rn, imm8) \
_ORRS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn ORR Rm */
#define ARM_ORR_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_ORR, rd, rn, rm, cond)
#define ARM_ORR_REG_REG(p, rd, rn, rm) \
ARM_ORR_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ORRS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_ORR, rd, rn, rm, cond)
#define ARM_ORRS_REG_REG(p, rd, rn, rm) \
ARM_ORRS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_ORR, rd, rn, rm, cond)
#define _ORR_REG_REG(rd, rn, rm) \
_ORR_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ORRS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_ORR, rd, rn, rm, cond)
#define _ORRS_REG_REG(rd, rn, rm) \
_ORRS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn ORR (Rm <shift_type> imm_shift) */
#define ARM_ORR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ORR_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ORR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ORRS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ORRS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ORRS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define _ORR_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ORR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ORRS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define _ORRS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ORRS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn ORR (Rm <shift_type> Rs) */
#define ARM_ORR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define ARM_ORR_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ORR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ORRS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define ARM_ORRS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ORRS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define _ORR_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ORR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ORRS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define _ORRS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ORRS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- BIC -- */
/* Rd := Rn BIC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_BIC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_BIC, rd, rn, imm8, rot, cond)
#define ARM_BIC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_BIC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_BICS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_BIC, rd, rn, imm8, rot, cond)
#define ARM_BICS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_BICS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_BIC, rd, rn, imm8, rot, cond)
#define _BIC_REG_IMM(rd, rn, imm8, rot) \
_BIC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _BICS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_BIC, rd, rn, imm8, rot, cond)
#define _BICS_REG_IMM(rd, rn, imm8, rot) \
_BICS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn BIC imm8 */
#define ARM_BIC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_BIC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_BIC_REG_IMM8(p, rd, rn, imm8) \
ARM_BIC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_BICS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_BICS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_BICS_REG_IMM8(p, rd, rn, imm8) \
ARM_BICS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_IMM8_COND(rd, rn, imm8, cond) \
_BIC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _BIC_REG_IMM8(rd, rn, imm8) \
_BIC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _BICS_REG_IMM8_COND(rd, rn, imm8, cond) \
_BICS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _BICS_REG_IMM8(rd, rn, imm8) \
_BICS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn BIC Rm */
#define ARM_BIC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_BIC, rd, rn, rm, cond)
#define ARM_BIC_REG_REG(p, rd, rn, rm) \
ARM_BIC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_BICS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_BIC, rd, rn, rm, cond)
#define ARM_BICS_REG_REG(p, rd, rn, rm) \
ARM_BICS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_BIC, rd, rn, rm, cond)
#define _BIC_REG_REG(rd, rn, rm) \
_BIC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _BICS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_BIC, rd, rn, rm, cond)
#define _BICS_REG_REG(rd, rn, rm) \
_BICS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn BIC (Rm <shift_type> imm_shift) */
#define ARM_BIC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_BIC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_BIC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_BICS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_BICS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_BICS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define _BIC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_BIC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _BICS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define _BICS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_BICS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn BIC (Rm <shift_type> Rs) */
#define ARM_BIC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define ARM_BIC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_BIC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_BICS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define ARM_BICS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_BICS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define _BIC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_BIC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _BICS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define _BICS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_BICS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* DPIs, comparison */
/* PSR := TST Rn, (imm8 ROR 2*rot) */
#define ARM_TST_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_TST, 0, rn, imm8, rot, cond)
#define ARM_TST_REG_IMM(p, rn, imm8, rot) \
ARM_TST_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_TST, 0, rn, imm8, rot, cond)
#define _TST_REG_IMM(rn, imm8, rot) \
_TST_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := TST Rn, imm8 */
#define ARM_TST_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_TST_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_TST_REG_IMM8(p, rn, imm8) \
ARM_TST_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_IMM8_COND(rn, imm8, cond) \
_TST_REG_IMM_COND(rn, imm8, 0, cond)
#define _TST_REG_IMM8(rn, imm8) \
_TST_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := TST Rn, Rm */
#define ARM_TST_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_TST, 0, rn, rm, cond)
#define ARM_TST_REG_REG(p, rn, rm) \
ARM_TST_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_TST, 0, rn, rm, cond)
#define _TST_REG_REG(rn, rm) \
_TST_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := TST Rn, (Rm <shift_type> imm8) */
#define ARM_TST_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_TST, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_TST_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_TST_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_TST, 0, rn, rm, shift_type, imm_shift, cond)
#define _TST_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_TST_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, (imm8 ROR 2*rot) */
#define ARM_TEQ_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_TEQ, 0, rn, imm8, rot, cond)
#define ARM_TEQ_REG_IMM(p, rn, imm8, rot) \
ARM_TEQ_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_TEQ, 0, rn, imm8, rot, cond)
#define _TEQ_REG_IMM(rn, imm8, rot) \
_TEQ_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, imm8 */
#define ARM_TEQ_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_TEQ_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_TEQ_REG_IMM8(p, rn, imm8) \
ARM_TEQ_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_IMM8_COND(rn, imm8, cond) \
_TEQ_REG_IMM_COND(rn, imm8, 0, cond)
#define _TEQ_REG_IMM8(rn, imm8) \
_TEQ_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, Rm */
#define ARM_TEQ_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_TEQ, 0, rn, rm, cond)
#define ARM_TEQ_REG_REG(p, rn, rm) \
ARM_TEQ_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_TEQ, 0, rn, rm, cond)
#define _TEQ_REG_REG(rn, rm) \
_TEQ_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, (Rm <shift_type> imm8) */
#define ARM_TEQ_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_TEQ, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_TEQ_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_TEQ_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_TEQ, 0, rn, rm, shift_type, imm_shift, cond)
#define _TEQ_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_TEQ_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* PSR := CMP Rn, (imm8 ROR 2*rot) */
#define ARM_CMP_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_CMP, 0, rn, imm8, rot, cond)
#define ARM_CMP_REG_IMM(p, rn, imm8, rot) \
ARM_CMP_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_CMP, 0, rn, imm8, rot, cond)
#define _CMP_REG_IMM(rn, imm8, rot) \
_CMP_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := CMP Rn, imm8 */
#define ARM_CMP_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_CMP_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_CMP_REG_IMM8(p, rn, imm8) \
ARM_CMP_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_IMM8_COND(rn, imm8, cond) \
_CMP_REG_IMM_COND(rn, imm8, 0, cond)
#define _CMP_REG_IMM8(rn, imm8) \
_CMP_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := CMP Rn, Rm */
#define ARM_CMP_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_CMP, 0, rn, rm, cond)
#define ARM_CMP_REG_REG(p, rn, rm) \
ARM_CMP_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_CMP, 0, rn, rm, cond)
#define _CMP_REG_REG(rn, rm) \
_CMP_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := CMP Rn, (Rm <shift_type> imm8) */
#define ARM_CMP_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_CMP, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_CMP_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_CMP_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_CMP, 0, rn, rm, shift_type, imm_shift, cond)
#define _CMP_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_CMP_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* PSR := CMN Rn, (imm8 ROR 2*rot) */
#define ARM_CMN_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_CMN, 0, rn, imm8, rot, cond)
#define ARM_CMN_REG_IMM(p, rn, imm8, rot) \
ARM_CMN_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_CMN, 0, rn, imm8, rot, cond)
#define _CMN_REG_IMM(rn, imm8, rot) \
_CMN_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := CMN Rn, imm8 */
#define ARM_CMN_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_CMN_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_CMN_REG_IMM8(p, rn, imm8) \
ARM_CMN_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_IMM8_COND(rn, imm8, cond) \
_CMN_REG_IMM_COND(rn, imm8, 0, cond)
#define _CMN_REG_IMM8(rn, imm8) \
_CMN_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := CMN Rn, Rm */
#define ARM_CMN_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_CMN, 0, rn, rm, cond)
#define ARM_CMN_REG_REG(p, rn, rm) \
ARM_CMN_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_CMN, 0, rn, rm, cond)
#define _CMN_REG_REG(rn, rm) \
_CMN_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := CMN Rn, (Rm <shift_type> imm8) */
#define ARM_CMN_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_CMN, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_CMN_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_CMN_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_CMN, 0, rn, rm, shift_type, imm_shift, cond)
#define _CMN_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_CMN_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* end generated */
|
/* Macros for DPI ops, auto-generated from template */
/* mov/mvn */
/* Rd := imm8 ROR rot */
#define ARM_MOV_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, rot, cond)
#define ARM_MOV_REG_IMM(p, reg, imm8, rot) \
ARM_MOV_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, rot, cond)
#define ARM_MOVS_REG_IMM(p, reg, imm8, rot) \
ARM_MOVS_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, rot, cond)
#define _MOV_REG_IMM(reg, imm8, rot) \
_MOV_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
/* S */
#define _MOVS_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, rot, cond)
#define _MOVS_REG_IMM(reg, imm8, rot) \
_MOVS_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
#endif
/* Rd := imm8 */
#define ARM_MOV_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, 0, cond)
#define ARM_MOV_REG_IMM8(p, reg, imm8) \
ARM_MOV_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MOV, reg, 0, imm8, 0, cond)
#define ARM_MOVS_REG_IMM8(p, reg, imm8) \
ARM_MOVS_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, 0, cond)
#define _MOV_REG_IMM8(reg, imm8) \
_MOV_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
/* S */
#define _MOVS_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MOV, reg, 0, imm8, 0, cond)
#define _MOVS_REG_IMM8(reg, imm8) \
_MOVS_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
#endif
/* Rd := Rm */
#define ARM_MOV_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_MOV, rd, 0, rm, cond)
#define ARM_MOV_REG_REG(p, rd, rm) \
ARM_MOV_REG_REG_COND(p, rd, rm, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_MOV, rd, 0, rm, cond)
#define ARM_MOVS_REG_REG(p, rd, rm) \
ARM_MOVS_REG_REG_COND(p, rd, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_MOV, rd, 0, rm, cond)
#define _MOV_REG_REG(rd, rm) \
_MOV_REG_REG_COND(rd, rm, ARMCOND_AL)
/* S */
#define _MOVS_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_MOV, rd, 0, rm, cond)
#define _MOVS_REG_REG(rd, rm) \
_MOVS_REG_REG_COND(rd, rm, ARMCOND_AL)
#endif
/* Rd := Rm <shift_type> imm_shift */
#define ARM_MOV_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MOV_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MOV_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MOVS_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MOVS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define _MOV_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MOV_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define _MOVS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, imm_shift, cond)
#define _MOVS_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MOVS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := (Rm <shift_type> Rs) */
#define ARM_MOV_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define ARM_MOV_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MOV_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define ARM_MOVS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define ARM_MOVS_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MOVS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MOV_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define _MOV_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MOV_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define _MOVS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_MOV, rd, 0, rm, shift_type, rs, cond)
#define _MOVS_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MOVS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
#endif
/* Rd := imm8 ROR rot */
#define ARM_MVN_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, rot, cond)
#define ARM_MVN_REG_IMM(p, reg, imm8, rot) \
ARM_MVN_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_IMM_COND(p, reg, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, rot, cond)
#define ARM_MVNS_REG_IMM(p, reg, imm8, rot) \
ARM_MVNS_REG_IMM_COND(p, reg, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, rot, cond)
#define _MVN_REG_IMM(reg, imm8, rot) \
_MVN_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
/* S */
#define _MVNS_REG_IMM_COND(reg, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, rot, cond)
#define _MVNS_REG_IMM(reg, imm8, rot) \
_MVNS_REG_IMM_COND(reg, imm8, rot, ARMCOND_AL)
#endif
/* Rd := imm8 */
#define ARM_MVN_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, 0, cond)
#define ARM_MVN_REG_IMM8(p, reg, imm8) \
ARM_MVN_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_IMM8_COND(p, reg, imm8, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_MVN, reg, 0, imm8, 0, cond)
#define ARM_MVNS_REG_IMM8(p, reg, imm8) \
ARM_MVNS_REG_IMM8_COND(p, reg, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, 0, cond)
#define _MVN_REG_IMM8(reg, imm8) \
_MVN_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
/* S */
#define _MVNS_REG_IMM8_COND(reg, imm8, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_MVN, reg, 0, imm8, 0, cond)
#define _MVNS_REG_IMM8(reg, imm8) \
_MVNS_REG_IMM8_COND(reg, imm8, ARMCOND_AL)
#endif
/* Rd := Rm */
#define ARM_MVN_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_MVN, rd, 0, rm, cond)
#define ARM_MVN_REG_REG(p, rd, rm) \
ARM_MVN_REG_REG_COND(p, rd, rm, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_REG_COND(p, rd, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_MVN, rd, 0, rm, cond)
#define ARM_MVNS_REG_REG(p, rd, rm) \
ARM_MVNS_REG_REG_COND(p, rd, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_MVN, rd, 0, rm, cond)
#define _MVN_REG_REG(rd, rm) \
_MVN_REG_REG_COND(rd, rm, ARMCOND_AL)
/* S */
#define _MVNS_REG_REG_COND(rd, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_MVN, rd, 0, rm, cond)
#define _MVNS_REG_REG(rd, rm) \
_MVNS_REG_REG_COND(rd, rm, ARMCOND_AL)
#endif
/* Rd := Rm <shift_type> imm_shift */
#define ARM_MVN_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MVN_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MVN_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define ARM_MVNS_REG_IMMSHIFT(p, rd, rm, shift_type, imm_shift) \
ARM_MVNS_REG_IMMSHIFT_COND(p, rd, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define _MVN_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MVN_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
/* S */
#define _MVNS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, imm_shift, cond)
#define _MVNS_REG_IMMSHIFT(rd, rm, shift_type, imm_shift) \
_MVNS_REG_IMMSHIFT_COND(rd, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := (Rm <shift_type> Rs) */
#define ARM_MVN_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define ARM_MVN_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MVN_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define ARM_MVNS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define ARM_MVNS_REG_REGSHIFT(p, rd, rm, shift_type, rs) \
ARM_MVNS_REG_REGSHIFT_COND(p, rd, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _MVN_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define _MVN_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MVN_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
/* S */
#define _MVNS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_MVN, rd, 0, rm, shift_type, rs, cond)
#define _MVNS_REG_REGSHIFT(rd, rm, shift_type, rs) \
_MVNS_REG_REGSHIFT_COND(rd, rm, shift_type, rs, ARMCOND_AL)
#endif
/* DPIs, arithmetic and logical */
/* -- AND -- */
/* Rd := Rn AND (imm8 ROR rot) ; rot is power of 2 */
#define ARM_AND_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_AND, rd, rn, imm8, rot, cond)
#define ARM_AND_REG_IMM(p, rd, rn, imm8, rot) \
ARM_AND_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ANDS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_AND, rd, rn, imm8, rot, cond)
#define ARM_ANDS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ANDS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_AND, rd, rn, imm8, rot, cond)
#define _AND_REG_IMM(rd, rn, imm8, rot) \
_AND_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ANDS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_AND, rd, rn, imm8, rot, cond)
#define _ANDS_REG_IMM(rd, rn, imm8, rot) \
_ANDS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn AND imm8 */
#define ARM_AND_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_AND_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_AND_REG_IMM8(p, rd, rn, imm8) \
ARM_AND_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ANDS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ANDS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ANDS_REG_IMM8(p, rd, rn, imm8) \
ARM_ANDS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_IMM8_COND(rd, rn, imm8, cond) \
_AND_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _AND_REG_IMM8(rd, rn, imm8) \
_AND_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ANDS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ANDS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ANDS_REG_IMM8(rd, rn, imm8) \
_ANDS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn AND Rm */
#define ARM_AND_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_AND, rd, rn, rm, cond)
#define ARM_AND_REG_REG(p, rd, rn, rm) \
ARM_AND_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ANDS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_AND, rd, rn, rm, cond)
#define ARM_ANDS_REG_REG(p, rd, rn, rm) \
ARM_ANDS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_AND, rd, rn, rm, cond)
#define _AND_REG_REG(rd, rn, rm) \
_AND_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ANDS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_AND, rd, rn, rm, cond)
#define _ANDS_REG_REG(rd, rn, rm) \
_ANDS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn AND (Rm <shift_type> imm_shift) */
#define ARM_AND_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_AND_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_AND_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ANDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ANDS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ANDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define _AND_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_AND_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ANDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_type, imm_shift, cond)
#define _ANDS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ANDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn AND (Rm <shift_type> Rs) */
#define ARM_AND_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define ARM_AND_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_AND_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ANDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define ARM_ANDS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ANDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _AND_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define _AND_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_AND_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ANDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_AND, rd, rn, rm, shift_t, rs, cond)
#define _ANDS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ANDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- EOR -- */
/* Rd := Rn EOR (imm8 ROR rot) ; rot is power of 2 */
#define ARM_EOR_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_EOR, rd, rn, imm8, rot, cond)
#define ARM_EOR_REG_IMM(p, rd, rn, imm8, rot) \
ARM_EOR_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_EORS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_EOR, rd, rn, imm8, rot, cond)
#define ARM_EORS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_EORS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_EOR, rd, rn, imm8, rot, cond)
#define _EOR_REG_IMM(rd, rn, imm8, rot) \
_EOR_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _EORS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_EOR, rd, rn, imm8, rot, cond)
#define _EORS_REG_IMM(rd, rn, imm8, rot) \
_EORS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn EOR imm8 */
#define ARM_EOR_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_EOR_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_EOR_REG_IMM8(p, rd, rn, imm8) \
ARM_EOR_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_EORS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_EORS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_EORS_REG_IMM8(p, rd, rn, imm8) \
ARM_EORS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_IMM8_COND(rd, rn, imm8, cond) \
_EOR_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _EOR_REG_IMM8(rd, rn, imm8) \
_EOR_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _EORS_REG_IMM8_COND(rd, rn, imm8, cond) \
_EORS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _EORS_REG_IMM8(rd, rn, imm8) \
_EORS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn EOR Rm */
#define ARM_EOR_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_EOR, rd, rn, rm, cond)
#define ARM_EOR_REG_REG(p, rd, rn, rm) \
ARM_EOR_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_EORS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_EOR, rd, rn, rm, cond)
#define ARM_EORS_REG_REG(p, rd, rn, rm) \
ARM_EORS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_EOR, rd, rn, rm, cond)
#define _EOR_REG_REG(rd, rn, rm) \
_EOR_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _EORS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_EOR, rd, rn, rm, cond)
#define _EORS_REG_REG(rd, rn, rm) \
_EORS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn EOR (Rm <shift_type> imm_shift) */
#define ARM_EOR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_EOR_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_EOR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_EORS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_EORS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_EORS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define _EOR_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_EOR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _EORS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_type, imm_shift, cond)
#define _EORS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_EORS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn EOR (Rm <shift_type> Rs) */
#define ARM_EOR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define ARM_EOR_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_EOR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_EORS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define ARM_EORS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_EORS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _EOR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define _EOR_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_EOR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _EORS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_EOR, rd, rn, rm, shift_t, rs, cond)
#define _EORS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_EORS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- SUB -- */
/* Rd := Rn SUB (imm8 ROR rot) ; rot is power of 2 */
#define ARM_SUB_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_SUB, rd, rn, imm8, rot, cond)
#define ARM_SUB_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SUB_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_SUBS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_SUB, rd, rn, imm8, rot, cond)
#define ARM_SUBS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SUBS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_SUB, rd, rn, imm8, rot, cond)
#define _SUB_REG_IMM(rd, rn, imm8, rot) \
_SUB_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _SUBS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_SUB, rd, rn, imm8, rot, cond)
#define _SUBS_REG_IMM(rd, rn, imm8, rot) \
_SUBS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn SUB imm8 */
#define ARM_SUB_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SUB_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SUB_REG_IMM8(p, rd, rn, imm8) \
ARM_SUB_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_SUBS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SUBS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SUBS_REG_IMM8(p, rd, rn, imm8) \
ARM_SUBS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_IMM8_COND(rd, rn, imm8, cond) \
_SUB_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SUB_REG_IMM8(rd, rn, imm8) \
_SUB_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _SUBS_REG_IMM8_COND(rd, rn, imm8, cond) \
_SUBS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SUBS_REG_IMM8(rd, rn, imm8) \
_SUBS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn SUB Rm */
#define ARM_SUB_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_SUB, rd, rn, rm, cond)
#define ARM_SUB_REG_REG(p, rd, rn, rm) \
ARM_SUB_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_SUBS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_SUB, rd, rn, rm, cond)
#define ARM_SUBS_REG_REG(p, rd, rn, rm) \
ARM_SUBS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_SUB, rd, rn, rm, cond)
#define _SUB_REG_REG(rd, rn, rm) \
_SUB_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _SUBS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_SUB, rd, rn, rm, cond)
#define _SUBS_REG_REG(rd, rn, rm) \
_SUBS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn SUB (Rm <shift_type> imm_shift) */
#define ARM_SUB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SUB_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SUB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_SUBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SUBS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SUBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define _SUB_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SUB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _SUBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_type, imm_shift, cond)
#define _SUBS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SUBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn SUB (Rm <shift_type> Rs) */
#define ARM_SUB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define ARM_SUB_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SUB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_SUBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define ARM_SUBS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SUBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SUB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define _SUB_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SUB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _SUBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_SUB, rd, rn, rm, shift_t, rs, cond)
#define _SUBS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SUBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- RSB -- */
/* Rd := Rn RSB (imm8 ROR rot) ; rot is power of 2 */
#define ARM_RSB_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_RSB, rd, rn, imm8, rot, cond)
#define ARM_RSB_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSB_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_RSBS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_RSB, rd, rn, imm8, rot, cond)
#define ARM_RSBS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSBS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_RSB, rd, rn, imm8, rot, cond)
#define _RSB_REG_IMM(rd, rn, imm8, rot) \
_RSB_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _RSBS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_RSB, rd, rn, imm8, rot, cond)
#define _RSBS_REG_IMM(rd, rn, imm8, rot) \
_RSBS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn RSB imm8 */
#define ARM_RSB_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSB_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSB_REG_IMM8(p, rd, rn, imm8) \
ARM_RSB_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_RSBS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSBS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSBS_REG_IMM8(p, rd, rn, imm8) \
ARM_RSBS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSB_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSB_REG_IMM8(rd, rn, imm8) \
_RSB_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _RSBS_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSBS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSBS_REG_IMM8(rd, rn, imm8) \
_RSBS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn RSB Rm */
#define ARM_RSB_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_RSB, rd, rn, rm, cond)
#define ARM_RSB_REG_REG(p, rd, rn, rm) \
ARM_RSB_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_RSBS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_RSB, rd, rn, rm, cond)
#define ARM_RSBS_REG_REG(p, rd, rn, rm) \
ARM_RSBS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_RSB, rd, rn, rm, cond)
#define _RSB_REG_REG(rd, rn, rm) \
_RSB_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _RSBS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_RSB, rd, rn, rm, cond)
#define _RSBS_REG_REG(rd, rn, rm) \
_RSBS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn RSB (Rm <shift_type> imm_shift) */
#define ARM_RSB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSB_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSB_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_RSBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSBS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSBS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSB_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSB_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _RSBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSBS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSBS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn RSB (Rm <shift_type> Rs) */
#define ARM_RSB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSB_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSB_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_RSBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSBS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSBS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define _RSB_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSB_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _RSBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_RSB, rd, rn, rm, shift_t, rs, cond)
#define _RSBS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSBS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- ADD -- */
/* Rd := Rn ADD (imm8 ROR rot) ; rot is power of 2 */
#define ARM_ADD_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_ADD, rd, rn, imm8, rot, cond)
#define ARM_ADD_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADD_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ADDS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_ADD, rd, rn, imm8, rot, cond)
#define ARM_ADDS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADDS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_ADD, rd, rn, imm8, rot, cond)
#define _ADD_REG_IMM(rd, rn, imm8, rot) \
_ADD_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ADDS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_ADD, rd, rn, imm8, rot, cond)
#define _ADDS_REG_IMM(rd, rn, imm8, rot) \
_ADDS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn ADD imm8 */
#define ARM_ADD_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADD_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADD_REG_IMM8(p, rd, rn, imm8) \
ARM_ADD_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ADDS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADDS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADDS_REG_IMM8(p, rd, rn, imm8) \
ARM_ADDS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADD_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADD_REG_IMM8(rd, rn, imm8) \
_ADD_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ADDS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADDS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADDS_REG_IMM8(rd, rn, imm8) \
_ADDS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn ADD Rm */
#define ARM_ADD_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_ADD, rd, rn, rm, cond)
#define ARM_ADD_REG_REG(p, rd, rn, rm) \
ARM_ADD_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ADDS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_ADD, rd, rn, rm, cond)
#define ARM_ADDS_REG_REG(p, rd, rn, rm) \
ARM_ADDS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_ADD, rd, rn, rm, cond)
#define _ADD_REG_REG(rd, rn, rm) \
_ADD_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ADDS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_ADD, rd, rn, rm, cond)
#define _ADDS_REG_REG(rd, rn, rm) \
_ADDS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn ADD (Rm <shift_type> imm_shift) */
#define ARM_ADD_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADD_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADD_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ADDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADDS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADDS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADD_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADD_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ADDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADDS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADDS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn ADD (Rm <shift_type> Rs) */
#define ARM_ADD_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADD_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADD_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ADDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADDS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADDS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADD_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define _ADD_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADD_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ADDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_ADD, rd, rn, rm, shift_t, rs, cond)
#define _ADDS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADDS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- ADC -- */
/* Rd := Rn ADC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_ADC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_ADC, rd, rn, imm8, rot, cond)
#define ARM_ADC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ADCS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_ADC, rd, rn, imm8, rot, cond)
#define ARM_ADCS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ADCS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_ADC, rd, rn, imm8, rot, cond)
#define _ADC_REG_IMM(rd, rn, imm8, rot) \
_ADC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ADCS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_ADC, rd, rn, imm8, rot, cond)
#define _ADCS_REG_IMM(rd, rn, imm8, rot) \
_ADCS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn ADC imm8 */
#define ARM_ADC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADC_REG_IMM8(p, rd, rn, imm8) \
ARM_ADC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ADCS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ADCS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ADCS_REG_IMM8(p, rd, rn, imm8) \
ARM_ADCS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADC_REG_IMM8(rd, rn, imm8) \
_ADC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ADCS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ADCS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ADCS_REG_IMM8(rd, rn, imm8) \
_ADCS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn ADC Rm */
#define ARM_ADC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_ADC, rd, rn, rm, cond)
#define ARM_ADC_REG_REG(p, rd, rn, rm) \
ARM_ADC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ADCS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_ADC, rd, rn, rm, cond)
#define ARM_ADCS_REG_REG(p, rd, rn, rm) \
ARM_ADCS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_ADC, rd, rn, rm, cond)
#define _ADC_REG_REG(rd, rn, rm) \
_ADC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ADCS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_ADC, rd, rn, rm, cond)
#define _ADCS_REG_REG(rd, rn, rm) \
_ADCS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn ADC (Rm <shift_type> imm_shift) */
#define ARM_ADC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ADCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ADCS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ADCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ADCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_type, imm_shift, cond)
#define _ADCS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ADCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn ADC (Rm <shift_type> Rs) */
#define ARM_ADC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ADCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define ARM_ADCS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ADCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ADC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define _ADC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ADCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_ADC, rd, rn, rm, shift_t, rs, cond)
#define _ADCS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ADCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- SBC -- */
/* Rd := Rn SBC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_SBC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_SBC, rd, rn, imm8, rot, cond)
#define ARM_SBC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SBC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_SBCS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_SBC, rd, rn, imm8, rot, cond)
#define ARM_SBCS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_SBCS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_SBC, rd, rn, imm8, rot, cond)
#define _SBC_REG_IMM(rd, rn, imm8, rot) \
_SBC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _SBCS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_SBC, rd, rn, imm8, rot, cond)
#define _SBCS_REG_IMM(rd, rn, imm8, rot) \
_SBCS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn SBC imm8 */
#define ARM_SBC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SBC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SBC_REG_IMM8(p, rd, rn, imm8) \
ARM_SBC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_SBCS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_SBCS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_SBCS_REG_IMM8(p, rd, rn, imm8) \
ARM_SBCS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_IMM8_COND(rd, rn, imm8, cond) \
_SBC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SBC_REG_IMM8(rd, rn, imm8) \
_SBC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _SBCS_REG_IMM8_COND(rd, rn, imm8, cond) \
_SBCS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _SBCS_REG_IMM8(rd, rn, imm8) \
_SBCS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn SBC Rm */
#define ARM_SBC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_SBC, rd, rn, rm, cond)
#define ARM_SBC_REG_REG(p, rd, rn, rm) \
ARM_SBC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_SBCS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_SBC, rd, rn, rm, cond)
#define ARM_SBCS_REG_REG(p, rd, rn, rm) \
ARM_SBCS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_SBC, rd, rn, rm, cond)
#define _SBC_REG_REG(rd, rn, rm) \
_SBC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _SBCS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_SBC, rd, rn, rm, cond)
#define _SBCS_REG_REG(rd, rn, rm) \
_SBCS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn SBC (Rm <shift_type> imm_shift) */
#define ARM_SBC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SBC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SBC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_SBCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_SBCS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_SBCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define _SBC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SBC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _SBCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_type, imm_shift, cond)
#define _SBCS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_SBCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn SBC (Rm <shift_type> Rs) */
#define ARM_SBC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define ARM_SBC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SBC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_SBCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define ARM_SBCS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_SBCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _SBC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define _SBC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SBC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _SBCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_SBC, rd, rn, rm, shift_t, rs, cond)
#define _SBCS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_SBCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- RSC -- */
/* Rd := Rn RSC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_RSC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_RSC, rd, rn, imm8, rot, cond)
#define ARM_RSC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_RSCS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_RSC, rd, rn, imm8, rot, cond)
#define ARM_RSCS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_RSCS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_RSC, rd, rn, imm8, rot, cond)
#define _RSC_REG_IMM(rd, rn, imm8, rot) \
_RSC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _RSCS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_RSC, rd, rn, imm8, rot, cond)
#define _RSCS_REG_IMM(rd, rn, imm8, rot) \
_RSCS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn RSC imm8 */
#define ARM_RSC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSC_REG_IMM8(p, rd, rn, imm8) \
ARM_RSC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_RSCS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_RSCS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_RSCS_REG_IMM8(p, rd, rn, imm8) \
ARM_RSCS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSC_REG_IMM8(rd, rn, imm8) \
_RSC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _RSCS_REG_IMM8_COND(rd, rn, imm8, cond) \
_RSCS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _RSCS_REG_IMM8(rd, rn, imm8) \
_RSCS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn RSC Rm */
#define ARM_RSC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_RSC, rd, rn, rm, cond)
#define ARM_RSC_REG_REG(p, rd, rn, rm) \
ARM_RSC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_RSCS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_RSC, rd, rn, rm, cond)
#define ARM_RSCS_REG_REG(p, rd, rn, rm) \
ARM_RSCS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_RSC, rd, rn, rm, cond)
#define _RSC_REG_REG(rd, rn, rm) \
_RSC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _RSCS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_RSC, rd, rn, rm, cond)
#define _RSCS_REG_REG(rd, rn, rm) \
_RSCS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn RSC (Rm <shift_type> imm_shift) */
#define ARM_RSC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_RSCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_RSCS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_RSCS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _RSCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_type, imm_shift, cond)
#define _RSCS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_RSCS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn RSC (Rm <shift_type> Rs) */
#define ARM_RSC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_RSCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define ARM_RSCS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_RSCS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _RSC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define _RSC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _RSCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_RSC, rd, rn, rm, shift_t, rs, cond)
#define _RSCS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_RSCS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- ORR -- */
/* Rd := Rn ORR (imm8 ROR rot) ; rot is power of 2 */
#define ARM_ORR_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_ORR, rd, rn, imm8, rot, cond)
#define ARM_ORR_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ORR_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_ORRS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_ORR, rd, rn, imm8, rot, cond)
#define ARM_ORRS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_ORRS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_ORR, rd, rn, imm8, rot, cond)
#define _ORR_REG_IMM(rd, rn, imm8, rot) \
_ORR_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _ORRS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_ORR, rd, rn, imm8, rot, cond)
#define _ORRS_REG_IMM(rd, rn, imm8, rot) \
_ORRS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn ORR imm8 */
#define ARM_ORR_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ORR_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ORR_REG_IMM8(p, rd, rn, imm8) \
ARM_ORR_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_ORRS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_ORRS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_ORRS_REG_IMM8(p, rd, rn, imm8) \
ARM_ORRS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_IMM8_COND(rd, rn, imm8, cond) \
_ORR_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ORR_REG_IMM8(rd, rn, imm8) \
_ORR_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _ORRS_REG_IMM8_COND(rd, rn, imm8, cond) \
_ORRS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _ORRS_REG_IMM8(rd, rn, imm8) \
_ORRS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn ORR Rm */
#define ARM_ORR_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_ORR, rd, rn, rm, cond)
#define ARM_ORR_REG_REG(p, rd, rn, rm) \
ARM_ORR_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_ORRS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_ORR, rd, rn, rm, cond)
#define ARM_ORRS_REG_REG(p, rd, rn, rm) \
ARM_ORRS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_ORR, rd, rn, rm, cond)
#define _ORR_REG_REG(rd, rn, rm) \
_ORR_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _ORRS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_ORR, rd, rn, rm, cond)
#define _ORRS_REG_REG(rd, rn, rm) \
_ORRS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn ORR (Rm <shift_type> imm_shift) */
#define ARM_ORR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ORR_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ORR_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_ORRS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_ORRS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_ORRS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define _ORR_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ORR_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _ORRS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_type, imm_shift, cond)
#define _ORRS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_ORRS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn ORR (Rm <shift_type> Rs) */
#define ARM_ORR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define ARM_ORR_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ORR_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_ORRS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define ARM_ORRS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_ORRS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _ORR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define _ORR_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ORR_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _ORRS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_ORR, rd, rn, rm, shift_t, rs, cond)
#define _ORRS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_ORRS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* -- BIC -- */
/* Rd := Rn BIC (imm8 ROR rot) ; rot is power of 2 */
#define ARM_BIC_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_REG_IMM8ROT_COND(p, ARMOP_BIC, rd, rn, imm8, rot, cond)
#define ARM_BIC_REG_IMM(p, rd, rn, imm8, rot) \
ARM_BIC_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#define ARM_BICS_REG_IMM_COND(p, rd, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_BIC, rd, rn, imm8, rot, cond)
#define ARM_BICS_REG_IMM(p, rd, rn, imm8, rot) \
ARM_BICS_REG_IMM_COND(p, rd, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_REG_IMM8ROT_COND(ARMOP_BIC, rd, rn, imm8, rot, cond)
#define _BIC_REG_IMM(rd, rn, imm8, rot) \
_BIC_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#define _BICS_REG_IMM_COND(rd, rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_BIC, rd, rn, imm8, rot, cond)
#define _BICS_REG_IMM(rd, rn, imm8, rot) \
_BICS_REG_IMM_COND(rd, rn, imm8, rot, ARMCOND_AL)
#endif
/* Rd := Rn BIC imm8 */
#define ARM_BIC_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_BIC_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_BIC_REG_IMM8(p, rd, rn, imm8) \
ARM_BIC_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#define ARM_BICS_REG_IMM8_COND(p, rd, rn, imm8, cond) \
ARM_BICS_REG_IMM_COND(p, rd, rn, imm8, 0, cond)
#define ARM_BICS_REG_IMM8(p, rd, rn, imm8) \
ARM_BICS_REG_IMM8_COND(p, rd, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_IMM8_COND(rd, rn, imm8, cond) \
_BIC_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _BIC_REG_IMM8(rd, rn, imm8) \
_BIC_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#define _BICS_REG_IMM8_COND(rd, rn, imm8, cond) \
_BICS_REG_IMM_COND(rd, rn, imm8, 0, cond)
#define _BICS_REG_IMM8(rd, rn, imm8) \
_BICS_REG_IMM8_COND(rd, rn, imm8, ARMCOND_AL)
#endif
/* Rd := Rn BIC Rm */
#define ARM_BIC_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_REG_REG_COND(p, ARMOP_BIC, rd, rn, rm, cond)
#define ARM_BIC_REG_REG(p, rd, rn, rm) \
ARM_BIC_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#define ARM_BICS_REG_REG_COND(p, rd, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_BIC, rd, rn, rm, cond)
#define ARM_BICS_REG_REG(p, rd, rn, rm) \
ARM_BICS_REG_REG_COND(p, rd, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_REG_REG_COND(ARMOP_BIC, rd, rn, rm, cond)
#define _BIC_REG_REG(rd, rn, rm) \
_BIC_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#define _BICS_REG_REG_COND(rd, rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_BIC, rd, rn, rm, cond)
#define _BICS_REG_REG(rd, rn, rm) \
_BICS_REG_REG_COND(rd, rn, rm, ARMCOND_AL)
#endif
/* Rd := Rn BIC (Rm <shift_type> imm_shift) */
#define ARM_BIC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_REG_IMMSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_BIC_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_BIC_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define ARM_BICS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define ARM_BICS_REG_IMMSHIFT(p, rd, rn, rm, shift_type, imm_shift) \
ARM_BICS_REG_IMMSHIFT_COND(p, rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_REG_IMMSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define _BIC_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_BIC_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#define _BICS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_type, imm_shift, cond)
#define _BICS_REG_IMMSHIFT(rd, rn, rm, shift_type, imm_shift) \
_BICS_REG_IMMSHIFT_COND(rd, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* Rd := Rn BIC (Rm <shift_type> Rs) */
#define ARM_BIC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_REG_REGSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define ARM_BIC_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_BIC_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define ARM_BICS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, cond) \
ARM_DPIOP_S_REG_REGSHIFT_COND(p, ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define ARM_BICS_REG_REGSHIFT(p, rd, rn, rm, shift_type, rs) \
ARM_BICS_REG_REGSHIFT_COND(p, rd, rn, rm, shift_type, rs, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _BIC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_REG_REGSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define _BIC_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_BIC_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#define _BICS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, cond) \
ARM_IASM_DPIOP_S_REG_REGSHIFT_COND(ARMOP_BIC, rd, rn, rm, shift_t, rs, cond)
#define _BICS_REG_REGSHIFT(rd, rn, rm, shift_type, rs) \
_BICS_REG_REGSHIFT_COND(rd, rn, rm, shift_type, rs, ARMCOND_AL)
#endif
/* DPIs, comparison */
/* PSR := TST Rn, (imm8 ROR 2*rot) */
#define ARM_TST_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_TST, 0, rn, imm8, rot, cond)
#define ARM_TST_REG_IMM(p, rn, imm8, rot) \
ARM_TST_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_TST, 0, rn, imm8, rot, cond)
#define _TST_REG_IMM(rn, imm8, rot) \
_TST_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := TST Rn, imm8 */
#define ARM_TST_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_TST_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_TST_REG_IMM8(p, rn, imm8) \
ARM_TST_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_IMM8_COND(rn, imm8, cond) \
_TST_REG_IMM_COND(rn, imm8, 0, cond)
#define _TST_REG_IMM8(rn, imm8) \
_TST_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := TST Rn, Rm */
#define ARM_TST_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_TST, 0, rn, rm, cond)
#define ARM_TST_REG_REG(p, rn, rm) \
ARM_TST_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_TST, 0, rn, rm, cond)
#define _TST_REG_REG(rn, rm) \
_TST_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := TST Rn, (Rm <shift_type> imm8) */
#define ARM_TST_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_TST, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_TST_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_TST_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TST_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_TST, 0, rn, rm, shift_type, imm_shift, cond)
#define _TST_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_TST_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, (imm8 ROR 2*rot) */
#define ARM_TEQ_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_TEQ, 0, rn, imm8, rot, cond)
#define ARM_TEQ_REG_IMM(p, rn, imm8, rot) \
ARM_TEQ_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_TEQ, 0, rn, imm8, rot, cond)
#define _TEQ_REG_IMM(rn, imm8, rot) \
_TEQ_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, imm8 */
#define ARM_TEQ_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_TEQ_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_TEQ_REG_IMM8(p, rn, imm8) \
ARM_TEQ_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_IMM8_COND(rn, imm8, cond) \
_TEQ_REG_IMM_COND(rn, imm8, 0, cond)
#define _TEQ_REG_IMM8(rn, imm8) \
_TEQ_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, Rm */
#define ARM_TEQ_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_TEQ, 0, rn, rm, cond)
#define ARM_TEQ_REG_REG(p, rn, rm) \
ARM_TEQ_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_TEQ, 0, rn, rm, cond)
#define _TEQ_REG_REG(rn, rm) \
_TEQ_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := TEQ Rn, (Rm <shift_type> imm8) */
#define ARM_TEQ_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_TEQ, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_TEQ_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_TEQ_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _TEQ_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_TEQ, 0, rn, rm, shift_type, imm_shift, cond)
#define _TEQ_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_TEQ_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* PSR := CMP Rn, (imm8 ROR 2*rot) */
#define ARM_CMP_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_CMP, 0, rn, imm8, rot, cond)
#define ARM_CMP_REG_IMM(p, rn, imm8, rot) \
ARM_CMP_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_CMP, 0, rn, imm8, rot, cond)
#define _CMP_REG_IMM(rn, imm8, rot) \
_CMP_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := CMP Rn, imm8 */
#define ARM_CMP_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_CMP_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_CMP_REG_IMM8(p, rn, imm8) \
ARM_CMP_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_IMM8_COND(rn, imm8, cond) \
_CMP_REG_IMM_COND(rn, imm8, 0, cond)
#define _CMP_REG_IMM8(rn, imm8) \
_CMP_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := CMP Rn, Rm */
#define ARM_CMP_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_CMP, 0, rn, rm, cond)
#define ARM_CMP_REG_REG(p, rn, rm) \
ARM_CMP_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_CMP, 0, rn, rm, cond)
#define _CMP_REG_REG(rn, rm) \
_CMP_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := CMP Rn, (Rm <shift_type> imm8) */
#define ARM_CMP_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_CMP, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_CMP_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_CMP_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMP_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_CMP, 0, rn, rm, shift_type, imm_shift, cond)
#define _CMP_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_CMP_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* PSR := CMN Rn, (imm8 ROR 2*rot) */
#define ARM_CMN_REG_IMM_COND(p, rn, imm8, rot, cond) \
ARM_DPIOP_S_REG_IMM8ROT_COND(p, ARMOP_CMN, 0, rn, imm8, rot, cond)
#define ARM_CMN_REG_IMM(p, rn, imm8, rot) \
ARM_CMN_REG_IMM_COND(p, rn, imm8, rot, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_IMM_COND(rn, imm8, rot, cond) \
ARM_IASM_DPIOP_S_REG_IMM8ROT_COND(ARMOP_CMN, 0, rn, imm8, rot, cond)
#define _CMN_REG_IMM(rn, imm8, rot) \
_CMN_REG_IMM_COND(rn, imm8, rot, ARMCOND_AL)
#endif
/* PSR := CMN Rn, imm8 */
#define ARM_CMN_REG_IMM8_COND(p, rn, imm8, cond) \
ARM_CMN_REG_IMM_COND(p, rn, imm8, 0, cond)
#define ARM_CMN_REG_IMM8(p, rn, imm8) \
ARM_CMN_REG_IMM8_COND(p, rn, imm8, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_IMM8_COND(rn, imm8, cond) \
_CMN_REG_IMM_COND(rn, imm8, 0, cond)
#define _CMN_REG_IMM8(rn, imm8) \
_CMN_REG_IMM8_COND(rn, imm8, ARMCOND_AL)
#endif
/* PSR := CMN Rn, Rm */
#define ARM_CMN_REG_REG_COND(p, rn, rm, cond) \
ARM_DPIOP_S_REG_REG_COND(p, ARMOP_CMN, 0, rn, rm, cond)
#define ARM_CMN_REG_REG(p, rn, rm) \
ARM_CMN_REG_REG_COND(p, rn, rm, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_REG_COND(rn, rm, cond) \
ARM_IASM_DPIOP_S_REG_REG_COND(ARMOP_CMN, 0, rn, rm, cond)
#define _CMN_REG_REG(rn, rm) \
_CMN_REG_REG_COND(rn, rm, ARMCOND_AL)
#endif
/* PSR := CMN Rn, (Rm <shift_type> imm8) */
#define ARM_CMN_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, cond) \
ARM_DPIOP_S_REG_IMMSHIFT_COND(p, ARMOP_CMN, 0, rn, rm, shift_type, imm_shift, cond)
#define ARM_CMN_REG_IMMSHIFT(p, rn, rm, shift_type, imm_shift) \
ARM_CMN_REG_IMMSHIFT_COND(p, rn, rm, shift_type, imm_shift, ARMCOND_AL)
#ifndef ARM_NOIASM
#define _CMN_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, cond) \
ARM_IASM_DPIOP_S_REG_IMMSHIFT_COND(ARMOP_CMN, 0, rn, rm, shift_type, imm_shift, cond)
#define _CMN_REG_IMMSHIFT(rn, rm, shift_type, imm_shift) \
_CMN_REG_IMMSHIFT_COND(rn, rm, shift_type, imm_shift, ARMCOND_AL)
#endif
/* end generated */
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/sizeondisk/Directory.Build.props
|
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
<PropertyGroup>
<ProjectAssetsFile>$(TestSourceDir)performance/obj/project.assets.json</ProjectAssetsFile>
</PropertyGroup>
</Project>
|
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
<PropertyGroup>
<ProjectAssetsFile>$(TestSourceDir)performance/obj/project.assets.json</ProjectAssetsFile>
</PropertyGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/src/libunwind/src/riscv/Lget_save_loc.c
|
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)
#include "Gget_save_loc.c"
#endif
|
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)
#include "Gget_save_loc.c"
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/native/libs/System.Globalization.Native/pal_calendarData.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include <stdlib.h>
#include "pal_locale.h"
#include "pal_compiler.h"
#include "pal_errors.h"
/*
* These values should be kept in sync with System.Globalization.CalendarId
*/
enum
{
UNINITIALIZED_VALUE = 0,
GREGORIAN = 1, // Gregorian (localized) calendar
GREGORIAN_US = 2, // Gregorian (U.S.) calendar
JAPAN = 3, // Japanese Emperor Era calendar
/* SSS_WARNINGS_OFF */
TAIWAN = 4, // Taiwan Era calendar /* SSS_WARNINGS_ON */
KOREA = 5, // Korean Tangun Era calendar
HIJRI = 6, // Hijri (Arabic Lunar) calendar
THAI = 7, // Thai calendar
HEBREW = 8, // Hebrew (Lunar) calendar
GREGORIAN_ME_FRENCH = 9, // Gregorian Middle East French calendar
GREGORIAN_ARABIC = 10, // Gregorian Arabic calendar
GREGORIAN_XLIT_ENGLISH = 11, // Gregorian Transliterated English calendar
GREGORIAN_XLIT_FRENCH = 12,
// Note that all calendars after this point are MANAGED ONLY for now.
JULIAN = 13,
JAPANESELUNISOLAR = 14,
CHINESELUNISOLAR = 15,
SAKA = 16, // reserved to match Office but not implemented in our code
LUNAR_ETO_CHN = 17, // reserved to match Office but not implemented in our code
LUNAR_ETO_KOR = 18, // reserved to match Office but not implemented in our code
LUNAR_ETO_ROKUYOU = 19, // reserved to match Office but not implemented in our code
KOREANLUNISOLAR = 20,
TAIWANLUNISOLAR = 21,
PERSIAN = 22,
UMALQURA = 23,
LAST_CALENDAR = 23 // Last calendar ID
};
typedef uint16_t CalendarId;
/*
* These values should be kept in sync with System.Globalization.CalendarDataType
*/
typedef enum
{
CalendarData_Uninitialized = 0,
CalendarData_NativeName = 1,
CalendarData_MonthDay = 2,
CalendarData_ShortDates = 3,
CalendarData_LongDates = 4,
CalendarData_YearMonths = 5,
CalendarData_DayNames = 6,
CalendarData_AbbrevDayNames = 7,
CalendarData_MonthNames = 8,
CalendarData_AbbrevMonthNames = 9,
CalendarData_SuperShortDayNames = 10,
CalendarData_MonthGenitiveNames = 11,
CalendarData_AbbrevMonthGenitiveNames = 12,
CalendarData_EraNames = 13,
CalendarData_AbbrevEraNames = 14,
} CalendarDataType;
// the function pointer definition for the callback used in EnumCalendarInfo
typedef void (*EnumCalendarInfoCallback)(const UChar*, const void*);
PALEXPORT int32_t GlobalizationNative_GetCalendars(const UChar* localeName,
CalendarId* calendars,
int32_t calendarsCapacity);
PALEXPORT ResultCode GlobalizationNative_GetCalendarInfo(const UChar* localeName,
CalendarId calendarId,
CalendarDataType dataType,
UChar* result,
int32_t resultCapacity);
PALEXPORT int32_t GlobalizationNative_EnumCalendarInfo(EnumCalendarInfoCallback callback,
const UChar* localeName,
CalendarId calendarId,
CalendarDataType dataType,
const void* context);
PALEXPORT int32_t GlobalizationNative_GetLatestJapaneseEra(void);
PALEXPORT int32_t GlobalizationNative_GetJapaneseEraStartDate(int32_t era,
int32_t* startYear,
int32_t* startMonth,
int32_t* startDay);
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include <stdlib.h>
#include "pal_locale.h"
#include "pal_compiler.h"
#include "pal_errors.h"
/*
* These values should be kept in sync with System.Globalization.CalendarId
*/
enum
{
UNINITIALIZED_VALUE = 0,
GREGORIAN = 1, // Gregorian (localized) calendar
GREGORIAN_US = 2, // Gregorian (U.S.) calendar
JAPAN = 3, // Japanese Emperor Era calendar
/* SSS_WARNINGS_OFF */
TAIWAN = 4, // Taiwan Era calendar /* SSS_WARNINGS_ON */
KOREA = 5, // Korean Tangun Era calendar
HIJRI = 6, // Hijri (Arabic Lunar) calendar
THAI = 7, // Thai calendar
HEBREW = 8, // Hebrew (Lunar) calendar
GREGORIAN_ME_FRENCH = 9, // Gregorian Middle East French calendar
GREGORIAN_ARABIC = 10, // Gregorian Arabic calendar
GREGORIAN_XLIT_ENGLISH = 11, // Gregorian Transliterated English calendar
GREGORIAN_XLIT_FRENCH = 12,
// Note that all calendars after this point are MANAGED ONLY for now.
JULIAN = 13,
JAPANESELUNISOLAR = 14,
CHINESELUNISOLAR = 15,
SAKA = 16, // reserved to match Office but not implemented in our code
LUNAR_ETO_CHN = 17, // reserved to match Office but not implemented in our code
LUNAR_ETO_KOR = 18, // reserved to match Office but not implemented in our code
LUNAR_ETO_ROKUYOU = 19, // reserved to match Office but not implemented in our code
KOREANLUNISOLAR = 20,
TAIWANLUNISOLAR = 21,
PERSIAN = 22,
UMALQURA = 23,
LAST_CALENDAR = 23 // Last calendar ID
};
typedef uint16_t CalendarId;
/*
* These values should be kept in sync with System.Globalization.CalendarDataType
*/
typedef enum
{
CalendarData_Uninitialized = 0,
CalendarData_NativeName = 1,
CalendarData_MonthDay = 2,
CalendarData_ShortDates = 3,
CalendarData_LongDates = 4,
CalendarData_YearMonths = 5,
CalendarData_DayNames = 6,
CalendarData_AbbrevDayNames = 7,
CalendarData_MonthNames = 8,
CalendarData_AbbrevMonthNames = 9,
CalendarData_SuperShortDayNames = 10,
CalendarData_MonthGenitiveNames = 11,
CalendarData_AbbrevMonthGenitiveNames = 12,
CalendarData_EraNames = 13,
CalendarData_AbbrevEraNames = 14,
} CalendarDataType;
// the function pointer definition for the callback used in EnumCalendarInfo
typedef void (*EnumCalendarInfoCallback)(const UChar*, const void*);
PALEXPORT int32_t GlobalizationNative_GetCalendars(const UChar* localeName,
CalendarId* calendars,
int32_t calendarsCapacity);
PALEXPORT ResultCode GlobalizationNative_GetCalendarInfo(const UChar* localeName,
CalendarId calendarId,
CalendarDataType dataType,
UChar* result,
int32_t resultCapacity);
PALEXPORT int32_t GlobalizationNative_EnumCalendarInfo(EnumCalendarInfoCallback callback,
const UChar* localeName,
CalendarId calendarId,
CalendarDataType dataType,
const void* context);
PALEXPORT int32_t GlobalizationNative_GetLatestJapaneseEra(void);
PALEXPORT int32_t GlobalizationNative_GetJapaneseEraStartDate(int32_t era,
int32_t* startYear,
int32_t* startMonth,
int32_t* startDay);
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/mono/wasi/include/pthread.h
|
// This file is multi-licensed:
// Apache-2.0: https://github.com/WebAssembly/wasi-libc/blob/main/LICENSE-APACHE
// MIT: https://github.com/WebAssembly/wasi-libc/blob/main/LICENSE-MIT
// This file is duplicated from https://github.com/WebAssembly/wasi-libc/blob/ad5133410f66b93a2381db5b542aad5e0964db96/libc-top-half/musl/include/pthread.h
// with small edits for compatibility. We may be able to remove it once https://github.com/WebAssembly/wasi-libc/issues/209 is resolved
// The WASI SDK doesn't include pthread.h, but the definitions are required by various parts of the Mono sources
// On certain runtimes such as WAMR there is actually an implementation provided for the pthread APIs so threading
// does work. However that's not yet in the WASI standard, so we're not yet relying on being able to call the ones
// that really start up new threads.
#ifndef _PTHREAD_H
#define _PTHREAD_H
#ifdef __cplusplus
extern "C" {
#endif
#include <features.h>
#define __NEED_time_t
#define __NEED_clockid_t
#define __NEED_struct_timespec
#define __NEED_sigset_t
#define __NEED_pthread_t
#define __NEED_pthread_attr_t
#define __NEED_pthread_mutexattr_t
#define __NEED_pthread_condattr_t
#define __NEED_pthread_rwlockattr_t
#define __NEED_pthread_barrierattr_t
#define __NEED_pthread_mutex_t
#define __NEED_pthread_cond_t
#define __NEED_pthread_rwlock_t
#define __NEED_pthread_barrier_t
#define __NEED_pthread_spinlock_t
#define __NEED_pthread_key_t
#define __NEED_pthread_once_t
#define __NEED_size_t
#include <bits/alltypes.h>
#include <sched.h>
#include <time.h>
#define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1
#define PTHREAD_MUTEX_NORMAL 0
#define PTHREAD_MUTEX_DEFAULT 0
#define PTHREAD_MUTEX_RECURSIVE 1
#define PTHREAD_MUTEX_ERRORCHECK 2
#define PTHREAD_MUTEX_STALLED 0
#define PTHREAD_MUTEX_ROBUST 1
#define PTHREAD_PRIO_NONE 0
#define PTHREAD_PRIO_INHERIT 1
#define PTHREAD_PRIO_PROTECT 2
#define PTHREAD_INHERIT_SCHED 0
#define PTHREAD_EXPLICIT_SCHED 1
#define PTHREAD_SCOPE_SYSTEM 0
#define PTHREAD_SCOPE_PROCESS 1
#define PTHREAD_PROCESS_PRIVATE 0
#define PTHREAD_PROCESS_SHARED 1
#define PTHREAD_MUTEX_INITIALIZER {{{0}}}
#define PTHREAD_RWLOCK_INITIALIZER {{{0}}}
#define PTHREAD_COND_INITIALIZER {{{0}}}
#define PTHREAD_ONCE_INIT 0
#define PTHREAD_CANCEL_ENABLE 0
#define PTHREAD_CANCEL_DISABLE 1
#define PTHREAD_CANCEL_MASKED 2
#define PTHREAD_CANCEL_DEFERRED 0
#define PTHREAD_CANCEL_ASYNCHRONOUS 1
#define PTHREAD_CANCELED ((void *)-1)
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
struct sched_param;
#define PTHREAD_NULL ((pthread_t)0)
int pthread_create(pthread_t *__restrict, const pthread_attr_t *__restrict, void *(*)(void *), void *__restrict);
int pthread_detach(pthread_t);
_Noreturn void pthread_exit(void *);
int pthread_join(pthread_t, void **);
pthread_t pthread_self(void);
int pthread_equal(pthread_t, pthread_t);
#ifndef __cplusplus
#define pthread_equal(x,y) ((x)==(y))
#endif
int pthread_setcancelstate(int, int *);
int pthread_setcanceltype(int, int *);
void pthread_testcancel(void);
int pthread_cancel(pthread_t);
int pthread_getschedparam(pthread_t, int *__restrict, struct sched_param *__restrict);
int pthread_setschedparam(pthread_t, int, const struct sched_param *);
int pthread_setschedprio(pthread_t, int);
int pthread_once(pthread_once_t *, void (*)(void));
int pthread_mutex_init(pthread_mutex_t *__restrict, const pthread_mutexattr_t *__restrict);
int pthread_mutex_lock(pthread_mutex_t *);
int pthread_mutex_unlock(pthread_mutex_t *);
int pthread_mutex_trylock(pthread_mutex_t *);
int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
int pthread_mutex_destroy(pthread_mutex_t *);
int pthread_mutex_consistent(pthread_mutex_t *);
int pthread_mutex_getprioceiling(const pthread_mutex_t *__restrict, int *__restrict);
int pthread_mutex_setprioceiling(pthread_mutex_t *__restrict, int, int *__restrict);
int pthread_cond_init(pthread_cond_t *__restrict, const pthread_condattr_t *__restrict);
int pthread_cond_destroy(pthread_cond_t *);
int pthread_cond_wait(pthread_cond_t *__restrict, pthread_mutex_t *__restrict);
int pthread_cond_timedwait(pthread_cond_t *__restrict, pthread_mutex_t *__restrict, const struct timespec *__restrict);
int pthread_cond_broadcast(pthread_cond_t *);
int pthread_cond_signal(pthread_cond_t *);
int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
int pthread_rwlock_destroy(pthread_rwlock_t *);
int pthread_rwlock_rdlock(pthread_rwlock_t *);
int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
int pthread_rwlock_wrlock(pthread_rwlock_t *);
int pthread_rwlock_trywrlock(pthread_rwlock_t *);
int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
int pthread_rwlock_unlock(pthread_rwlock_t *);
int pthread_spin_init(pthread_spinlock_t *, int);
int pthread_spin_destroy(pthread_spinlock_t *);
int pthread_spin_lock(pthread_spinlock_t *);
int pthread_spin_trylock(pthread_spinlock_t *);
int pthread_spin_unlock(pthread_spinlock_t *);
int pthread_barrier_init(pthread_barrier_t *__restrict, const pthread_barrierattr_t *__restrict, unsigned);
int pthread_barrier_destroy(pthread_barrier_t *);
int pthread_barrier_wait(pthread_barrier_t *);
int pthread_key_create(pthread_key_t *, void (*)(void *));
int pthread_key_delete(pthread_key_t);
void *pthread_getspecific(pthread_key_t);
int pthread_setspecific(pthread_key_t, const void *);
int pthread_attr_init(pthread_attr_t *);
int pthread_attr_destroy(pthread_attr_t *);
int pthread_attr_getguardsize(const pthread_attr_t *__restrict, size_t *__restrict);
int pthread_attr_setguardsize(pthread_attr_t *, size_t);
int pthread_attr_getstacksize(const pthread_attr_t *__restrict, size_t *__restrict);
int pthread_attr_setstacksize(pthread_attr_t *, size_t);
int pthread_attr_getdetachstate(const pthread_attr_t *, int *);
int pthread_attr_setdetachstate(pthread_attr_t *, int);
int pthread_attr_getstack(const pthread_attr_t *__restrict, void **__restrict, size_t *__restrict);
int pthread_attr_setstack(pthread_attr_t *, void *, size_t);
int pthread_attr_getscope(const pthread_attr_t *__restrict, int *__restrict);
int pthread_attr_setscope(pthread_attr_t *, int);
int pthread_attr_getschedpolicy(const pthread_attr_t *__restrict, int *__restrict);
int pthread_attr_setschedpolicy(pthread_attr_t *, int);
int pthread_attr_getschedparam(const pthread_attr_t *__restrict, struct sched_param *__restrict);
int pthread_attr_setschedparam(pthread_attr_t *__restrict, const struct sched_param *__restrict);
int pthread_attr_getinheritsched(const pthread_attr_t *__restrict, int *__restrict);
int pthread_attr_setinheritsched(pthread_attr_t *, int);
int pthread_mutexattr_destroy(pthread_mutexattr_t *);
int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_getrobust(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_gettype(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_init(pthread_mutexattr_t *);
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *, int);
int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int);
int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int);
int pthread_mutexattr_setrobust(pthread_mutexattr_t *, int);
int pthread_mutexattr_settype(pthread_mutexattr_t *, int);
int pthread_condattr_init(pthread_condattr_t *);
int pthread_condattr_destroy(pthread_condattr_t *);
int pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
int pthread_condattr_setpshared(pthread_condattr_t *, int);
int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict);
int pthread_condattr_getpshared(const pthread_condattr_t *__restrict, int *__restrict);
int pthread_rwlockattr_init(pthread_rwlockattr_t *);
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int);
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *__restrict, int *__restrict);
int pthread_barrierattr_destroy(pthread_barrierattr_t *);
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *__restrict, int *__restrict);
int pthread_barrierattr_init(pthread_barrierattr_t *);
int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int);
int pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
int pthread_getconcurrency(void);
int pthread_setconcurrency(int);
int pthread_getcpuclockid(pthread_t, clockid_t *);
struct __ptcb {
void (*__f)(void *);
void *__x;
struct __ptcb *__next;
};
void _pthread_cleanup_push(struct __ptcb *, void (*)(void *), void *);
void _pthread_cleanup_pop(struct __ptcb *, int);
#define pthread_cleanup_push(f, x) do { struct __ptcb __cb; _pthread_cleanup_push(&__cb, f, x);
#define pthread_cleanup_pop(r) _pthread_cleanup_pop(&__cb, (r)); } while(0)
#ifdef __cplusplus
}
#endif
#endif
|
// This file is multi-licensed:
// Apache-2.0: https://github.com/WebAssembly/wasi-libc/blob/main/LICENSE-APACHE
// MIT: https://github.com/WebAssembly/wasi-libc/blob/main/LICENSE-MIT
// This file is duplicated from https://github.com/WebAssembly/wasi-libc/blob/ad5133410f66b93a2381db5b542aad5e0964db96/libc-top-half/musl/include/pthread.h
// with small edits for compatibility. We may be able to remove it once https://github.com/WebAssembly/wasi-libc/issues/209 is resolved
// The WASI SDK doesn't include pthread.h, but the definitions are required by various parts of the Mono sources
// On certain runtimes such as WAMR there is actually an implementation provided for the pthread APIs so threading
// does work. However that's not yet in the WASI standard, so we're not yet relying on being able to call the ones
// that really start up new threads.
#ifndef _PTHREAD_H
#define _PTHREAD_H
#ifdef __cplusplus
extern "C" {
#endif
#include <features.h>
#define __NEED_time_t
#define __NEED_clockid_t
#define __NEED_struct_timespec
#define __NEED_sigset_t
#define __NEED_pthread_t
#define __NEED_pthread_attr_t
#define __NEED_pthread_mutexattr_t
#define __NEED_pthread_condattr_t
#define __NEED_pthread_rwlockattr_t
#define __NEED_pthread_barrierattr_t
#define __NEED_pthread_mutex_t
#define __NEED_pthread_cond_t
#define __NEED_pthread_rwlock_t
#define __NEED_pthread_barrier_t
#define __NEED_pthread_spinlock_t
#define __NEED_pthread_key_t
#define __NEED_pthread_once_t
#define __NEED_size_t
#include <bits/alltypes.h>
#include <sched.h>
#include <time.h>
#define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1
#define PTHREAD_MUTEX_NORMAL 0
#define PTHREAD_MUTEX_DEFAULT 0
#define PTHREAD_MUTEX_RECURSIVE 1
#define PTHREAD_MUTEX_ERRORCHECK 2
#define PTHREAD_MUTEX_STALLED 0
#define PTHREAD_MUTEX_ROBUST 1
#define PTHREAD_PRIO_NONE 0
#define PTHREAD_PRIO_INHERIT 1
#define PTHREAD_PRIO_PROTECT 2
#define PTHREAD_INHERIT_SCHED 0
#define PTHREAD_EXPLICIT_SCHED 1
#define PTHREAD_SCOPE_SYSTEM 0
#define PTHREAD_SCOPE_PROCESS 1
#define PTHREAD_PROCESS_PRIVATE 0
#define PTHREAD_PROCESS_SHARED 1
#define PTHREAD_MUTEX_INITIALIZER {{{0}}}
#define PTHREAD_RWLOCK_INITIALIZER {{{0}}}
#define PTHREAD_COND_INITIALIZER {{{0}}}
#define PTHREAD_ONCE_INIT 0
#define PTHREAD_CANCEL_ENABLE 0
#define PTHREAD_CANCEL_DISABLE 1
#define PTHREAD_CANCEL_MASKED 2
#define PTHREAD_CANCEL_DEFERRED 0
#define PTHREAD_CANCEL_ASYNCHRONOUS 1
#define PTHREAD_CANCELED ((void *)-1)
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
struct sched_param;
#define PTHREAD_NULL ((pthread_t)0)
int pthread_create(pthread_t *__restrict, const pthread_attr_t *__restrict, void *(*)(void *), void *__restrict);
int pthread_detach(pthread_t);
_Noreturn void pthread_exit(void *);
int pthread_join(pthread_t, void **);
pthread_t pthread_self(void);
int pthread_equal(pthread_t, pthread_t);
#ifndef __cplusplus
#define pthread_equal(x,y) ((x)==(y))
#endif
int pthread_setcancelstate(int, int *);
int pthread_setcanceltype(int, int *);
void pthread_testcancel(void);
int pthread_cancel(pthread_t);
int pthread_getschedparam(pthread_t, int *__restrict, struct sched_param *__restrict);
int pthread_setschedparam(pthread_t, int, const struct sched_param *);
int pthread_setschedprio(pthread_t, int);
int pthread_once(pthread_once_t *, void (*)(void));
int pthread_mutex_init(pthread_mutex_t *__restrict, const pthread_mutexattr_t *__restrict);
int pthread_mutex_lock(pthread_mutex_t *);
int pthread_mutex_unlock(pthread_mutex_t *);
int pthread_mutex_trylock(pthread_mutex_t *);
int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
int pthread_mutex_destroy(pthread_mutex_t *);
int pthread_mutex_consistent(pthread_mutex_t *);
int pthread_mutex_getprioceiling(const pthread_mutex_t *__restrict, int *__restrict);
int pthread_mutex_setprioceiling(pthread_mutex_t *__restrict, int, int *__restrict);
int pthread_cond_init(pthread_cond_t *__restrict, const pthread_condattr_t *__restrict);
int pthread_cond_destroy(pthread_cond_t *);
int pthread_cond_wait(pthread_cond_t *__restrict, pthread_mutex_t *__restrict);
int pthread_cond_timedwait(pthread_cond_t *__restrict, pthread_mutex_t *__restrict, const struct timespec *__restrict);
int pthread_cond_broadcast(pthread_cond_t *);
int pthread_cond_signal(pthread_cond_t *);
int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
int pthread_rwlock_destroy(pthread_rwlock_t *);
int pthread_rwlock_rdlock(pthread_rwlock_t *);
int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
int pthread_rwlock_wrlock(pthread_rwlock_t *);
int pthread_rwlock_trywrlock(pthread_rwlock_t *);
int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
int pthread_rwlock_unlock(pthread_rwlock_t *);
int pthread_spin_init(pthread_spinlock_t *, int);
int pthread_spin_destroy(pthread_spinlock_t *);
int pthread_spin_lock(pthread_spinlock_t *);
int pthread_spin_trylock(pthread_spinlock_t *);
int pthread_spin_unlock(pthread_spinlock_t *);
int pthread_barrier_init(pthread_barrier_t *__restrict, const pthread_barrierattr_t *__restrict, unsigned);
int pthread_barrier_destroy(pthread_barrier_t *);
int pthread_barrier_wait(pthread_barrier_t *);
int pthread_key_create(pthread_key_t *, void (*)(void *));
int pthread_key_delete(pthread_key_t);
void *pthread_getspecific(pthread_key_t);
int pthread_setspecific(pthread_key_t, const void *);
int pthread_attr_init(pthread_attr_t *);
int pthread_attr_destroy(pthread_attr_t *);
int pthread_attr_getguardsize(const pthread_attr_t *__restrict, size_t *__restrict);
int pthread_attr_setguardsize(pthread_attr_t *, size_t);
int pthread_attr_getstacksize(const pthread_attr_t *__restrict, size_t *__restrict);
int pthread_attr_setstacksize(pthread_attr_t *, size_t);
int pthread_attr_getdetachstate(const pthread_attr_t *, int *);
int pthread_attr_setdetachstate(pthread_attr_t *, int);
int pthread_attr_getstack(const pthread_attr_t *__restrict, void **__restrict, size_t *__restrict);
int pthread_attr_setstack(pthread_attr_t *, void *, size_t);
int pthread_attr_getscope(const pthread_attr_t *__restrict, int *__restrict);
int pthread_attr_setscope(pthread_attr_t *, int);
int pthread_attr_getschedpolicy(const pthread_attr_t *__restrict, int *__restrict);
int pthread_attr_setschedpolicy(pthread_attr_t *, int);
int pthread_attr_getschedparam(const pthread_attr_t *__restrict, struct sched_param *__restrict);
int pthread_attr_setschedparam(pthread_attr_t *__restrict, const struct sched_param *__restrict);
int pthread_attr_getinheritsched(const pthread_attr_t *__restrict, int *__restrict);
int pthread_attr_setinheritsched(pthread_attr_t *, int);
int pthread_mutexattr_destroy(pthread_mutexattr_t *);
int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_getrobust(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_gettype(const pthread_mutexattr_t *__restrict, int *__restrict);
int pthread_mutexattr_init(pthread_mutexattr_t *);
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *, int);
int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int);
int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int);
int pthread_mutexattr_setrobust(pthread_mutexattr_t *, int);
int pthread_mutexattr_settype(pthread_mutexattr_t *, int);
int pthread_condattr_init(pthread_condattr_t *);
int pthread_condattr_destroy(pthread_condattr_t *);
int pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
int pthread_condattr_setpshared(pthread_condattr_t *, int);
int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict);
int pthread_condattr_getpshared(const pthread_condattr_t *__restrict, int *__restrict);
int pthread_rwlockattr_init(pthread_rwlockattr_t *);
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int);
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *__restrict, int *__restrict);
int pthread_barrierattr_destroy(pthread_barrierattr_t *);
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *__restrict, int *__restrict);
int pthread_barrierattr_init(pthread_barrierattr_t *);
int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int);
int pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
int pthread_getconcurrency(void);
int pthread_setconcurrency(int);
int pthread_getcpuclockid(pthread_t, clockid_t *);
struct __ptcb {
void (*__f)(void *);
void *__x;
struct __ptcb *__next;
};
void _pthread_cleanup_push(struct __ptcb *, void (*)(void *), void *);
void _pthread_cleanup_pop(struct __ptcb *, int);
#define pthread_cleanup_push(f, x) do { struct __ptcb __cb; _pthread_cleanup_push(&__cb, f, x);
#define pthread_cleanup_pop(r) _pthread_cleanup_pop(&__cb, (r)); } while(0)
#ifdef __cplusplus
}
#endif
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/src/libunwind/src/hppa/Gapply_reg_state.c
|
/* libunwind - a platform-independent unwind library
Copyright (c) 2002-2003 Hewlett-Packard Development Company, L.P.
Contributed by David Mosberger-Tang <[email protected]>
Modified for x86_64 by Max Asbock <[email protected]>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
int
unw_apply_reg_state (unw_cursor_t *cursor,
void *reg_states_data)
{
struct cursor *c = (struct cursor *) cursor;
return dwarf_apply_reg_state (&c->dwarf, (dwarf_reg_state_t *)reg_states_data);
}
|
/* libunwind - a platform-independent unwind library
Copyright (c) 2002-2003 Hewlett-Packard Development Company, L.P.
Contributed by David Mosberger-Tang <[email protected]>
Modified for x86_64 by Max Asbock <[email protected]>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
int
unw_apply_reg_state (unw_cursor_t *cursor,
void *reg_states_data)
{
struct cursor *c = (struct cursor *) cursor;
return dwarf_apply_reg_state (&c->dwarf, (dwarf_reg_state_t *)reg_states_data);
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/vm/fcall.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// FCall.H
//
//
// FCall is a high-performance alternative to ECall. Unlike ECall, FCall
// methods do not necessarily create a frame. Jitted code calls directly
// to the FCall entry point. It is possible to do operations that need
// to have a frame within an FCall, you need to manually set up the frame
// before you do such operations.
// It is illegal to cause a GC or EH to happen in an FCALL before setting
// up a frame. To prevent accidentally violating this rule, FCALLs turn
// on BEGINGCFORBID, which insures that these things can't happen in a
// checked build without causing an ASSERTE. Once you set up a frame,
// this state is turned off as long as the frame is active, and then is
// turned on again when the frame is torn down. This mechanism should
// be sufficient to insure that the rules are followed.
// In general you set up a frame by using the following macros
// HELPER_METHOD_FRAME_BEGIN_RET*() // Use If the FCALL has a return value
// HELPER_METHOD_FRAME_BEGIN*() // Use If FCALL does not return a value
// HELPER_METHOD_FRAME_END*()
// These macros introduce a scope which is protected by an HelperMethodFrame.
// In this scope you can do EH or GC. There are rules associated with
// their use. In particular
// 1) These macros can only be used in the body of a FCALL (that is
// something using the FCIMPL* or HCIMPL* macros for their decaration.
// 2) You may not perform a 'return' within this scope..
// Compile time errors occur if you try to violate either of these rules.
// The frame that is set up does NOT protect any GC variables (in particular the
// arguments of the FCALL. Thus you need to do an explicit GCPROTECT once the
// frame is established if you need to protect an argument. There are flavors
// of HELPER_METHOD_FRAME that protect a certain number of GC variables. For
// example
// HELPER_METHOD_FRAME_BEGIN_RET_2(arg1, arg2)
// will protect the GC variables arg1, and arg2 as well as erecting the frame.
// Another invariant that you must be aware of is the need to poll to see if
// a GC is needed by some other thread. Unless the FCALL is VERY short,
// every code path through the FCALL must do such a poll. The important
// thing here is that a poll will cause a GC, and thus you can only do it
// when all you GC variables are protected. To make things easier
// HELPER_METHOD_FRAMES that protect things automatically do this poll.
// If you don't need to protect anything HELPER_METHOD_FRAME_BEGIN_0
// will also do the poll.
// Sometimes it is convenient to do the poll a the end of the frame, you
// can use HELPER_METHOD_FRAME_BEGIN_NOPOLL and HELPER_METHOD_FRAME_END_POLL
// to do the poll at the end. If somewhere in the middle is the best
// place you can do that too with HELPER_METHOD_POLL()
// You don't need to erect a helper method frame to do a poll. FC_GC_POLL
// can do this (remember all your GC refs will be trashed).
// Finally if your method is VERY small, you can get away without a poll,
// you have to use FC_GC_POLL_NOT_NEEDED to mark this.
// Use sparingly!
// It is possible to set up the frame as the first operation in the FCALL and
// tear it down as the last operation before returning. This works and is
// reasonably efficient (as good as an ECall), however, if it is the case that
// you can defer the setup of the frame to an unlikely code path (exception path)
// that is much better.
// If you defer setup of the frame, all codepaths leading to the frame setup
// must be wrapped with PERMIT_HELPER_METHOD_FRAME_BEGIN/END. These block
// certain compiler optimizations that interfere with the delayed frame setup.
// These macros are automatically included in the HCIMPL, FCIMPL, and frame
// setup macros.
// <TODO>TODO: we should have a way of doing a trial allocation (an allocation that
// will fail if it would cause a GC). That way even FCALLs that need to allocate
// would not necessarily need to set up a frame. </TODO>
// It is common to only need to set up a frame in order to throw an exception.
// While this can be done by doing
// HELPER_METHOD_FRAME_BEGIN() // Use if FCALL does not return a value
// COMPlusThrow(execpt);
// HELPER_METHOD_FRAME_END()
// It is more efficient (in space) to use convenience macro FCTHROW that does
// this for you (sets up a frame, and does the throw).
// FCTHROW(except)
// Since FCALLS have to conform to the EE calling conventions and not to C
// calling conventions, FCALLS, need to be declared using special macros (FCIMPL*)
// that implement the correct calling conventions. There are variants of these
// macros depending on the number of args, and sometimes the types of the
// arguments.
//------------------------------------------------------------------------
// A very simple example:
//
// FCIMPL2(INT32, Div, INT32 x, INT32 y)
// {
// if (y == 0)
// FCThrow(kDivideByZeroException);
// return x/y;
// }
// FCIMPLEND
//
//
// *** WATCH OUT FOR THESE GOTCHAS: ***
// ------------------------------------
// - In your FCDECL & FCIMPL protos, don't declare a param as type OBJECTREF
// or any of its deriveds. This will break on the checked build because
// __fastcall doesn't enregister C++ objects (which OBJECTREF is).
// Instead, you need to do something like;
//
// FCIMPL(.., .., Object* pObject0)
// OBJECTREF pObject = ObjectToOBJECTREF(pObject0);
// FCIMPL
//
// For similar reasons, use Object* rather than OBJECTREF as a return type.
// Consider either using ObjectToOBJECTREF or calling VALIDATEOBJECTREF
// to make sure your Object* is valid.
//
// - FCThrow() must be called directly from your FCall impl function: it
// cannot be called from a subfunction. Calling from a subfunction breaks
// the VC code parsing workaround that lets us recover the callee saved registers.
// Fortunately, you'll get a compile error complaining about an
// unknown variable "__me".
//
// - If your FCall returns VOID, you must use FCThrowVoid() rather than
// FCThrow(). This is because FCThrow() has to generate an unexecuted
// "return" statement for the code parser.
//
// - On x86, if first and/or second argument of your FCall cannot be passed
// in either of the __fastcall registers (ECX/EDX), you must use "V" versions
// of FCDECL and FCIMPL macros to enregister arguments correctly. Some of the
// most common types that fit this requirement are 64-bit values (i.e. INT64 or
// UINT64) and floating-point values (i.e. FLOAT or DOUBLE). For example, FCDECL3_IVI
// must be used for FCalls that take 3 arguments and 2nd argument is INT64 and
// FDECL2_VV must be used for FCalls that take 2 arguments where both are FLOAT.
//
// - You may use structs for protecting multiple OBJECTREF's simultaneously.
// In these cases, you must use a variant of a helper method frame with PROTECT
// in the name, to ensure all the OBJECTREF's in the struct get protected.
// Also, initialize all the OBJECTREF's first. Like this:
//
// FCIMPL4(Object*, COMNlsInfo::nativeChangeCaseString, LocaleIDObject* localeUNSAFE,
// INT_PTR pNativeTextInfo, StringObject* pStringUNSAFE, CLR_BOOL bIsToUpper)
// {
// [ignoring CONTRACT for now]
// struct _gc
// {
// STRINGREF pResult;
// STRINGREF pString;
// LOCALEIDREF pLocale;
// } gc;
// gc.pResult = NULL;
// gc.pString = ObjectToSTRINGREF(pStringUNSAFE);
// gc.pLocale = (LOCALEIDREF)ObjectToOBJECTREF(localeUNSAFE);
//
// HELPER_METHOD_FRAME_BEGIN_RET_PROTECT(gc)
//
// If you forgot the PROTECT part, the macro will only protect the first OBJECTREF,
// introducing a subtle GC hole in your code. Fortunately, we now issue a
// compile-time error if you forget.
// How FCall works:
// ----------------
// An FCall target uses __fastcall or some other calling convention to
// match the IL calling convention exactly. Thus, a call to FCall is a direct
// call to the target w/ no intervening stub or frame.
//
// The tricky part is when FCThrow is called. FCThrow must generate
// a proper method frame before allocating and throwing the exception.
// To do this, it must recover several things:
//
// - The location of the FCIMPL's return address (since that's
// where the frame will be based.)
//
// - The on-entry values of the callee-saved regs; which must
// be recorded in the frame so that GC can update them.
// Depending on how VC compiles your FCIMPL, those values are still
// in the original registers or saved on the stack.
//
// To figure out which, FCThrow() generates the code:
//
// while (NULL == __FCThrow(__me, ...)) {};
// return 0;
//
// The "return" statement will never execute; but its presence guarantees
// that VC will follow the __FCThrow() call with a VC epilog
// that restores the callee-saved registers using a pretty small
// and predictable set of Intel opcodes. __FCThrow() parses this
// epilog and simulates its execution to recover the callee saved
// registers.
//
// The while loop is to prevent the compiler from doing tail call optimizations.
// The helper frame interpretter needs the frame to be present.
//
// - The MethodDesc* that this FCall implements. This MethodDesc*
// is part of the frame and ensures that the FCall will appear
// in the exception's stack trace. To get this, FCDECL declares
// a static local __me, initialized to point to the FC target itself.
// This address is exactly what's stored in the ECall lookup tables;
// so __FCThrow() simply does a reverse lookup on that table to recover
// the MethodDesc*.
//
#ifndef __FCall_h__
#define __FCall_h__
#include "gms.h"
#include "runtimeexceptionkind.h"
#include "debugreturn.h"
//==============================================================================================
// These macros defeat compiler optimizations that might mix nonvolatile
// register loads and stores with other code in the function body. This
// creates problems for the frame setup code, which assumes that any
// nonvolatiles that are saved at the point of the frame setup will be
// re-loaded when the frame is popped.
//
// Currently this is only known to be an issue on AMD64. It's uncertain
// whether it is an issue on x86.
//==============================================================================================
#if defined(TARGET_AMD64) && !defined(TARGET_UNIX)
//
// On AMD64 this is accomplished by including a setjmp anywhere in a function.
// Doesn't matter whether it is reachable or not, and in fact in optimized
// builds the setjmp is removed altogether.
//
#include <setjmp.h>
#ifdef _DEBUG
//
// Linked list of unmanaged methods preceeding a HelperMethodFrame push. This
// is linked onto the current Thread. Each list entry is stack-allocated so it
// can be associated with an unmanaged frame. Each unmanaged frame needs to be
// associated with at least one list entry.
//
struct HelperMethodFrameCallerList
{
HelperMethodFrameCallerList *pCaller;
};
#endif // _DEBUG
//
// Resets the Thread state at a new managed -> fcall transition.
//
class FCallTransitionState
{
public:
FCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
~FCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
#ifdef _DEBUG
private:
Thread *m_pThread;
HelperMethodFrameCallerList *m_pPreviousHelperMethodFrameCallerList;
#endif // _DEBUG
};
//
// Pushes/pops state for each caller.
//
class PermitHelperMethodFrameState
{
public:
PermitHelperMethodFrameState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
~PermitHelperMethodFrameState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
static VOID CheckHelperMethodFramePermitted () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
#ifdef _DEBUG
private:
Thread *m_pThread;
HelperMethodFrameCallerList m_ListEntry;
#endif // _DEBUG
};
//
// Resets the Thread state after the HelperMethodFrame is pushed. At this
// point, the HelperMethodFrame is capable of unwinding to the managed code,
// so we can reset the Thread state for any nested fcalls.
//
class CompletedFCallTransitionState
{
public:
CompletedFCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
~CompletedFCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
#ifdef _DEBUG
private:
HelperMethodFrameCallerList *m_pLastHelperMethodFrameCallerList;
#endif // _DEBUG
};
#define PERMIT_HELPER_METHOD_FRAME_BEGIN() \
if (1) \
{ \
PermitHelperMethodFrameState ___PermitHelperMethodFrameState;
#define PERMIT_HELPER_METHOD_FRAME_END() \
} \
else \
{ \
jmp_buf ___jmpbuf; \
setjmp(___jmpbuf); \
__assume(0); \
}
#define FCALL_TRANSITION_BEGIN() \
FCallTransitionState ___FCallTransitionState; \
PERMIT_HELPER_METHOD_FRAME_BEGIN();
#define FCALL_TRANSITION_END() \
PERMIT_HELPER_METHOD_FRAME_END();
#define CHECK_HELPER_METHOD_FRAME_PERMITTED() \
PermitHelperMethodFrameState::CheckHelperMethodFramePermitted(); \
CompletedFCallTransitionState ___CompletedFCallTransitionState;
#else // unsupported processor
#define PERMIT_HELPER_METHOD_FRAME_BEGIN()
#define PERMIT_HELPER_METHOD_FRAME_END()
#define FCALL_TRANSITION_BEGIN()
#define FCALL_TRANSITION_END()
#define CHECK_HELPER_METHOD_FRAME_PERMITTED()
#endif // unsupported processor
//==============================================================================================
// This is where FCThrow ultimately ends up. Never call this directly.
// Use the FCThrow() macros. __FCThrowArgument is the helper to throw ArgumentExceptions
// with a resource taken from the managed resource manager.
//==============================================================================================
LPVOID __FCThrow(LPVOID me, enum RuntimeExceptionKind reKind, UINT resID, LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3);
LPVOID __FCThrowArgument(LPVOID me, enum RuntimeExceptionKind reKind, LPCWSTR argumentName, LPCWSTR resourceName);
//==============================================================================================
// FDECLn: A set of macros for generating header declarations for FC targets.
// Use FIMPLn for the actual body.
//==============================================================================================
// Note: on the x86, these defs reverse all but the first two arguments
// (IL stack calling convention is reversed from __fastcall.)
// Calling convention for varargs
#define F_CALL_VA_CONV __cdecl
#ifdef TARGET_X86
// Choose the appropriate calling convention for FCALL helpers on the basis of the JIT calling convention
#ifdef __GNUC__
#define F_CALL_CONV __attribute__((cdecl, regparm(3)))
// GCC FCALL convention (simulated via cdecl, regparm(3)) is different from MSVC FCALL convention. GCC can use up
// to 3 registers to store parameters. The registers used are EAX, EDX, ECX. Dummy parameters and reordering
// of the actual parameters in the FCALL signature is used to make the calling convention to look like in MSVC.
#define SWIZZLE_REGARG_ORDER
#else // __GNUC__
#define F_CALL_CONV __fastcall
#endif // !__GNUC__
#define SWIZZLE_STKARG_ORDER
#else // TARGET_X86
//
// non-x86 platforms don't have messed-up calling convention swizzling
//
#define F_CALL_CONV
#endif // !TARGET_X86
#ifdef SWIZZLE_STKARG_ORDER
#ifdef SWIZZLE_REGARG_ORDER
#define FCDECL0(rettype, funcname) rettype F_CALL_CONV funcname()
#define FCDECL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1)
#define FCDECL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a1)
#define FCDECL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1)
#define FCDECL2VA(rettype, funcname, a1, a2) rettype F_CALL_VA_CONV funcname(a1, a2, ...)
#define FCDECL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a2, a1)
#define FCDECL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a2, a1)
#define FCDECL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a2)
#define FCDECL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3)
#define FCDECL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3)
#define FCDECL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a1)
#define FCDECL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a3, a2)
#define FCDECL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a2)
#define FCDECL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a3, a2, a1)
#define FCDECL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a3, a2, a1)
#define FCDECL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a4, a3)
#define FCDECL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a5, a4, a3)
#define FCDECL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a6, a5, a4, a3)
#define FCDECL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a7, a6, a5, a4, a3)
#define FCDECL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a8, a7, a6, a5, a4, a3)
#define FCDECL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a5, a4, a2)
#define FCDECL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a5, a4, a1)
#else // SWIZZLE_REGARG_ORDER
#define FCDECL0(rettype, funcname) rettype F_CALL_CONV funcname()
#define FCDECL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2VA(rettype, funcname, a1, a2) rettype F_CALL_VA_CONV funcname(a1, a2, ...)
#define FCDECL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a2, a1)
#define FCDECL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a2, a1)
#define FCDECL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a2, a3, a1)
#define FCDECL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a3, a2)
#define FCDECL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a3, a2)
#define FCDECL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a2, a1, a3)
#define FCDECL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a3, a2, a1)
#define FCDECL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a4, a3)
#define FCDECL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a5, a4, a3)
#define FCDECL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(a1, a2, a6, a5, a4, a3)
#define FCDECL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(a1, a2, a7, a6, a5, a4, a3)
#define FCDECL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(a1, a2, a8, a7, a6, a5, a4, a3)
#define FCDECL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(a1, a2, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(a1, a2, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(a1, a2, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(a1, a2, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(a1, a2, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(a1, a2, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a3, a5, a4, a2)
#define FCDECL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a2, a3, a5, a4, a1)
#endif // !SWIZZLE_REGARG_ORDER
#if 0
//
// don't use something like this... directly calling an FCALL from within the runtime breaks stackwalking because
// the FCALL reverse mapping only gets established in ECall::GetFCallImpl and that codepath is circumvented by
// directly calling and FCALL
// See below for usage of FC_CALL_INNER (used in SecurityStackWalk::Check presently)
//
#define FCCALL0(funcname) funcname()
#define FCCALL1(funcname, a1) funcname(a1)
#define FCCALL2(funcname, a1, a2) funcname(a1, a2)
#define FCCALL3(funcname, a1, a2, a3) funcname(a1, a2, a3)
#define FCCALL4(funcname, a1, a2, a3, a4) funcname(a1, a2, a4, a3)
#define FCCALL5(funcname, a1, a2, a3, a4, a5) funcname(a1, a2, a5, a4, a3)
#define FCCALL6(funcname, a1, a2, a3, a4, a5, a6) funcname(a1, a2, a6, a5, a4, a3)
#define FCCALL7(funcname, a1, a2, a3, a4, a5, a6, a7) funcname(a1, a2, a7, a6, a5, a4, a3)
#define FCCALL8(funcname, a1, a2, a3, a4, a5, a6, a7, a8) funcname(a1, a2, a8, a7, a6, a5, a4, a3)
#define FCCALL9(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) funcname(a1, a2, a9, a8, a7, a6, a5, a4, a3)
#define FCCALL10(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) funcname(a1, a2, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCCALL11(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) funcname(a1, a2, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCCALL12(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) funcname(a1, a2, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#endif // 0
#else // !SWIZZLE_STKARG_ORDER
#define FCDECL0(rettype, funcname) rettype F_CALL_CONV funcname()
#define FCDECL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2VA(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2, ...)
#define FCDECL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a3, a4)
#define FCDECL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5)
#define FCDECL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6)
#define FCDECL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7)
#define FCDECL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8)
#define FCDECL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9)
#define FCDECL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
#define FCDECL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11)
#define FCDECL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12)
#define FCDECL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13)
#define FCDECL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14)
#define FCDECL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5)
#define FCDECL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5)
#endif // !SWIZZLE_STKARG_ORDER
#define HELPER_FRAME_DECL(x) FrameWithCookie<HelperMethodFrame_##x##OBJ> __helperframe
// use the capture state machinery if the architecture has one
//
// For a normal build we create a loop (see explaination on RestoreState below)
// We don't want a loop here for PREFAST since that causes
// warning 263: Using _alloca in a loop
// And we can't use DEBUG_OK_TO_RETURN for PREFAST because the PREFAST version
// requires that you already be in a DEBUG_ASSURE_NO_RETURN_BEGIN scope
#define HelperMethodFrame_0OBJ HelperMethodFrame
#define HELPER_FRAME_ARGS(attribs) __me, attribs
#define FORLAZYMACHSTATE(x) x
#if defined(_PREFAST_)
#define FORLAZYMACHSTATE_BEGINLOOP(x) x
#define FORLAZYMACHSTATE_ENDLOOP(x)
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_BEGIN
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_END
#else
#define FORLAZYMACHSTATE_BEGINLOOP(x) x do
#define FORLAZYMACHSTATE_ENDLOOP(x) while(x)
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_BEGIN DEBUG_OK_TO_RETURN_BEGIN(LAZYMACHSTATE)
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_END DEBUG_OK_TO_RETURN_END(LAZYMACHSTATE)
#endif
// BEGIN: before gcpoll
//FCallGCCanTriggerNoDtor __fcallGcCanTrigger;
//__fcallGcCanTrigger.Enter();
// END: after gcpoll
//__fcallGcCanTrigger.Leave(__FUNCTION__, __FILE__, __LINE__);
// We have to put DEBUG_OK_TO_RETURN_BEGIN around the FORLAZYMACHSTATE
// to allow the HELPER_FRAME to be installed inside an SO_INTOLERANT region
// which does not allow a return. The return is used by FORLAZYMACHSTATE
// to capture the state, but is not an actual return, so it is ok.
#define HELPER_METHOD_FRAME_BEGIN_EX_BODY(ret, helperFrame, gcpoll, allowGC) \
FORLAZYMACHSTATE_BEGINLOOP(int alwaysZero = 0;) \
{ \
INDEBUG(static BOOL __haveCheckedRestoreState = FALSE;) \
PERMIT_HELPER_METHOD_FRAME_BEGIN(); \
CHECK_HELPER_METHOD_FRAME_PERMITTED(); \
helperFrame; \
FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_BEGIN; \
FORLAZYMACHSTATE(CAPTURE_STATE(__helperframe.MachineState(), ret);) \
FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_END; \
INDEBUG(__helperframe.SetAddrOfHaveCheckedRestoreState(&__haveCheckedRestoreState)); \
DEBUG_ASSURE_NO_RETURN_BEGIN(HELPER_METHOD_FRAME); \
INCONTRACT(FCallGCCanTrigger::Enter());
#define HELPER_METHOD_FRAME_BEGIN_EX(ret, helperFrame, gcpoll, allowGC) \
HELPER_METHOD_FRAME_BEGIN_EX_BODY(ret, helperFrame, gcpoll, allowGC) \
/* <TODO>TODO TURN THIS ON!!! </TODO> */ \
/* gcpoll; */ \
INSTALL_MANAGED_EXCEPTION_DISPATCHER; \
__helperframe.Push(); \
MAKE_CURRENT_THREAD_AVAILABLE_EX(__helperframe.GetThread()); \
INSTALL_UNWIND_AND_CONTINUE_HANDLER_FOR_HMF(&__helperframe);
#define HELPER_METHOD_FRAME_BEGIN_EX_NOTHROW(ret, helperFrame, gcpoll, allowGC, probeFailExpr) \
HELPER_METHOD_FRAME_BEGIN_EX_BODY(ret, helperFrame, gcpoll, allowGC) \
__helperframe.Push(); \
MAKE_CURRENT_THREAD_AVAILABLE_EX(__helperframe.GetThread()); \
/* <TODO>TODO TURN THIS ON!!! </TODO> */ \
/* gcpoll; */
// The while(__helperframe.RestoreState() needs a bit of explanation.
// The issue is insuring that the same machine state (which registers saved)
// exists when the machine state is probed (when the frame is created, and
// when it is actually used (when the frame is popped. We do this by creating
// a flow of control from use to def. Note that 'RestoreState' always returns false
// we never actually loop, but the compiler does not know that, and thus
// will be forced to make the keep the state of register spills the same at
// the two locations.
#define HELPER_METHOD_FRAME_END_EX_BODY(gcpoll,allowGC) \
/* <TODO>TODO TURN THIS ON!!! </TODO> */ \
/* gcpoll; */ \
DEBUG_ASSURE_NO_RETURN_END(HELPER_METHOD_FRAME); \
INCONTRACT(FCallGCCanTrigger::Leave(__FUNCTION__, __FILE__, __LINE__)); \
FORLAZYMACHSTATE(alwaysZero = \
HelperMethodFrameRestoreState(INDEBUG_COMMA(&__helperframe) \
__helperframe.MachineState());) \
PERMIT_HELPER_METHOD_FRAME_END() \
} FORLAZYMACHSTATE_ENDLOOP(alwaysZero);
#define HELPER_METHOD_FRAME_END_EX(gcpoll,allowGC) \
UNINSTALL_UNWIND_AND_CONTINUE_HANDLER; \
__helperframe.Pop(); \
UNINSTALL_MANAGED_EXCEPTION_DISPATCHER; \
HELPER_METHOD_FRAME_END_EX_BODY(gcpoll,allowGC);
#define HELPER_METHOD_FRAME_END_EX_NOTHROW(gcpoll,allowGC) \
__helperframe.Pop(); \
HELPER_METHOD_FRAME_END_EX_BODY(gcpoll,allowGC);
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_0() \
HELPER_METHOD_FRAME_BEGIN_ATTRIB(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_NOPOLL(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
{},FALSE)
#define HELPER_METHOD_FRAME_BEGIN_NOPOLL() HELPER_METHOD_FRAME_BEGIN_ATTRIB_NOPOLL(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_1(attribs, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_1(arg1) HELPER_METHOD_FRAME_BEGIN_ATTRIB_1(Frame::FRAME_ATTR_NONE, arg1)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_2(attribs, arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(2)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_2(arg1, arg2) HELPER_METHOD_FRAME_BEGIN_ATTRIB_2(Frame::FRAME_ATTR_NONE, arg1, arg2)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_3(attribs, arg1, arg2, arg3) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg3) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(3)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2, (OBJECTREF*) &arg3), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_3(arg1, arg2, arg3) HELPER_METHOD_FRAME_BEGIN_ATTRIB_3(Frame::FRAME_ATTR_NONE, arg1, arg2, arg3)
#define HELPER_METHOD_FRAME_BEGIN_PROTECT(gc) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(PROTECT)(HELPER_FRAME_ARGS(Frame::FRAME_ATTR_NONE), \
(OBJECTREF*)&(gc), sizeof(gc)/sizeof(OBJECTREF)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
{},FALSE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_NOPOLL(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
{},FALSE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_0() \
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_0() \
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(Frame::FRAME_ATTR_NONE)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(attribs, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_NOTHROW_1(probeFailExpr, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX_NOTHROW( \
return 0, \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(Frame::FRAME_ATTR_NO_THREAD_ABORT), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(), TRUE, probeFailExpr)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_1(attribs, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_2(attribs, arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(2)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_2(attribs, arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(2)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_PROTECT(attribs, gc) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(PROTECT)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*)&(gc), sizeof(gc)/sizeof(OBJECTREF)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_NOPOLL() \
HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_NOPOLL(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_RET_NOPOLL() \
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_RET_1(arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(Frame::FRAME_ATTR_NONE, arg1)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_1(arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_1(Frame::FRAME_ATTR_NONE, arg1)
#define HELPER_METHOD_FRAME_BEGIN_RET_2(arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_2(Frame::FRAME_ATTR_NONE, arg1, arg2)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_2(arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_2(Frame::FRAME_ATTR_NONE, arg1, arg2)
#define HELPER_METHOD_FRAME_BEGIN_RET_PROTECT(gc) \
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_PROTECT(Frame::FRAME_ATTR_NONE, gc)
#define HELPER_METHOD_FRAME_END() HELPER_METHOD_FRAME_END_EX({},FALSE)
#define HELPER_METHOD_FRAME_END_POLL() HELPER_METHOD_FRAME_END_EX(HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_END_NOTHROW()HELPER_METHOD_FRAME_END_EX_NOTHROW({},FALSE)
// This is the fastest way to do a GC poll if you have already erected a HelperMethodFrame
#define HELPER_METHOD_POLL() { __helperframe.Poll(); INCONTRACT(__fCallCheck.SetDidPoll()); }
// The HelperMethodFrame knows how to get its return address. Let other code get at it, too.
// (Uses comma operator to call InsureInit & discard result.
#define HELPER_METHOD_FRAME_GET_RETURN_ADDRESS() \
( static_cast<UINT_PTR>( (__helperframe.InsureInit(false, NULL)), (__helperframe.MachineState()->GetRetAddr()) ) )
// Very short routines, or routines that are guarenteed to force GC or EH
// don't need to poll the GC. USE VERY SPARINGLY!!!
#define FC_GC_POLL_NOT_NEEDED() INCONTRACT(__fCallCheck.SetNotNeeded())
Object* FC_GCPoll(void* me, Object* objToProtect = NULL);
#define FC_GC_POLL_EX(ret) \
{ \
INCONTRACT(Thread::TriggersGC(GetThread());) \
INCONTRACT(__fCallCheck.SetDidPoll();) \
if (g_TrapReturningThreads.LoadWithoutBarrier()) \
{ \
if (FC_GCPoll(__me)) \
return ret; \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
} \
}
#define FC_GC_POLL() FC_GC_POLL_EX(;)
#define FC_GC_POLL_RET() FC_GC_POLL_EX(0)
#define FC_GC_POLL_AND_RETURN_OBJREF(obj) \
{ \
INCONTRACT(__fCallCheck.SetDidPoll();) \
Object* __temp = OBJECTREFToObject(obj); \
if (g_TrapReturningThreads.LoadWithoutBarrier()) \
{ \
__temp = FC_GCPoll(__me, __temp); \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
} \
return __temp; \
}
#if defined(ENABLE_CONTRACTS)
#define FC_CAN_TRIGGER_GC() FCallGCCanTrigger::Enter()
#define FC_CAN_TRIGGER_GC_END() FCallGCCanTrigger::Leave(__FUNCTION__, __FILE__, __LINE__)
#define FC_CAN_TRIGGER_GC_HAVE_THREAD(thread) FCallGCCanTrigger::Enter(thread)
#define FC_CAN_TRIGGER_GC_HAVE_THREADEND(thread) FCallGCCanTrigger::Leave(thread, __FUNCTION__, __FILE__, __LINE__)
// turns on forbidGC for the lifetime of the instance
class ForbidGC {
protected:
Thread *m_pThread;
public:
ForbidGC(const char *szFile, int lineNum);
~ForbidGC();
};
// this little helper class checks to make certain
// 1) ForbidGC is set throughout the routine.
// 2) Sometime during the routine, a GC poll is done
class FCallCheck : public ForbidGC {
public:
FCallCheck(const char *szFile, int lineNum);
~FCallCheck();
void SetDidPoll() {LIMITED_METHOD_CONTRACT; didGCPoll = true; }
void SetNotNeeded() {LIMITED_METHOD_CONTRACT; notNeeded = true; }
private:
#ifdef _DEBUG
DWORD unbreakableLockCount;
#endif
bool didGCPoll; // GC poll was done
bool notNeeded; // GC poll not needed
unsigned __int64 startTicks; // tick count at beginning of FCall
};
// FC_COMMON_PROLOG is used for both FCalls and HCalls
#define FC_COMMON_PROLOG(target, assertFn) \
/* The following line has to be first. We do not want to trash last error */ \
DWORD __lastError = ::GetLastError(); \
static void* __cache = 0; \
assertFn(__cache, (LPVOID)target); \
{ \
Thread *_pThread = GetThread(); \
Thread::ObjectRefFlush(_pThread); \
} \
FCallCheck __fCallCheck(__FILE__, __LINE__); \
FCALL_TRANSITION_BEGIN(); \
::SetLastError(__lastError); \
void FCallAssert(void*& cache, void* target);
void HCallAssert(void*& cache, void* target);
#else
#define FC_COMMON_PROLOG(target, assertFn) FCALL_TRANSITION_BEGIN()
#define FC_CAN_TRIGGER_GC()
#define FC_CAN_TRIGGER_GC_END()
#endif // ENABLE_CONTRACTS
// #FC_INNER
// Macros that allows fcall to be split into two function to avoid the helper frame overhead on common fast
// codepaths.
//
// The helper routine needs to know the name of the routine that called it so that it can look up the name of
// the managed routine this code is associted with (for managed stack traces). This is passed with the
// FC_INNER_PROLOG macro.
//
// The helper can set up a HELPER_METHOD_FRAME, but should pass the
// Frame::FRAME_ATTR_EXACT_DEPTH|Frame::FRAME_ATTR_CAPTURE_DEPTH_2 which indicates the exact number of
// unwinds to do to get back to managed code. Currently we only support depth 2 which means that the
// HELPER_METHOD_FRAME needs to be set up in the function directly called by the FCALL. The helper should
// use the NOINLINE macro to prevent the compiler from inlining it into the FCALL (which would obviously
// mess up the unwind count).
//
// The other invarient that needs to hold is that the epilog walker needs to be able to get from the call to
// the helper routine to the end of the FCALL using trivial heurisitics. The easiest (and only supported)
// way of doing this is to place your helper right before a return (eg at the end of the method). Generally
// this is not a problem at all, since the FCALL itself will pick off some common case and then tail-call to
// the helper for everything else. You must use the code:FC_INNER_RETURN macros to do the call, to insure
// that the C++ compiler does not tail-call optimize the call to the inner function and mess up the stack
// depth.
//
// see code:ObjectNative::GetClass for an example
//
#define FC_INNER_PROLOG(outerfuncname) \
LPVOID __me; \
__me = GetEEFuncEntryPointMacro(outerfuncname); \
FC_CAN_TRIGGER_GC(); \
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
// This variant should be used for inner fcall functions that have the
// __me value passed as an argument to the function. This allows
// inner functions to be shared across multiple fcalls.
#define FC_INNER_PROLOG_NO_ME_SETUP() \
FC_CAN_TRIGGER_GC(); \
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
#define FC_INNER_EPILOG() \
FC_CAN_TRIGGER_GC_END();
// If you are using FC_INNER, and you are tail calling to the helper method (a common case), then you need
// to use the FC_INNER_RETURN macros (there is one for methods that return a value and another if the
// function returns void). This macro's purpose is to inhibit any tail calll optimization the C++ compiler
// might do, which would otherwise confuse the epilog walker.
//
// * See #FC_INNER for more
extern RAW_KEYWORD(volatile) int FC_NO_TAILCALL;
#define FC_INNER_RETURN(type, expr) \
type __retVal = expr; \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
return(__retVal);
#define FC_INNER_RETURN_VOID(stmt) \
stmt; \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
return;
//==============================================================================================
// FIMPLn: A set of macros for generating the proto for the actual
// implementation (use FDECLN for header protos.)
//
// The hidden "__me" variable lets us recover the original MethodDesc*
// so any thrown exceptions will have the correct stack trace. FCThrow()
// passes this along to __FCThrowInternal().
//==============================================================================================
#define GetEEFuncEntryPointMacro(func) ((LPVOID)(func))
#define FCIMPL_PROLOG(funcname) \
LPVOID __me; \
__me = GetEEFuncEntryPointMacro(funcname); \
FC_COMMON_PROLOG(__me, FCallAssert)
#if defined(_DEBUG) && !defined(__GNUC__)
// Build the list of all fcalls signatures. It is used in binder.cpp to verify
// compatibility of managed and unmanaged fcall signatures. The check is currently done
// for x86 only.
#define CHECK_FCALL_SIGNATURE
#endif
#ifdef CHECK_FCALL_SIGNATURE
struct FCSigCheck {
public:
FCSigCheck(void* fnc, const char* sig)
{
LIMITED_METHOD_CONTRACT;
func = fnc;
signature = sig;
next = g_pFCSigCheck;
g_pFCSigCheck = this;
}
FCSigCheck* next;
void* func;
const char* signature;
static FCSigCheck* g_pFCSigCheck;
};
#define FCSIGCHECK(funcname, signature) \
static FCSigCheck UNIQUE_LABEL(FCSigCheck)(GetEEFuncEntryPointMacro(funcname), signature);
#else // CHECK_FCALL_SIGNATURE
#define FCSIGCHECK(funcname, signature)
#endif // !CHECK_FCALL_SIGNATURE
#ifdef SWIZZLE_STKARG_ORDER
#ifdef SWIZZLE_REGARG_ORDER
#define FCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { FCIMPL_PROLOG(funcname)
#define FCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a3, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a5, a4, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a5, a4, a1) { FCIMPL_PROLOG(funcname)
#else // SWIZZLE_REGARG_ORDER
#define FCIMPL0(rettype, funcname) FCSIGCHECK(funcname, #rettype) \
rettype F_CALL_CONV funcname() { FCIMPL_PROLOG(funcname)
#define FCIMPL1(rettype, funcname, a1) FCSIGCHECK(funcname, #rettype "," #a1) \
rettype F_CALL_CONV funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL1_V(rettype, funcname, a1) FCSIGCHECK(funcname, #rettype "," "V" #a1) \
rettype F_CALL_CONV funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2) \
rettype F_CALL_CONV funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2VA(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," "...") \
rettype F_CALL_VA_CONV funcname(a1, a2, ...) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VV(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," "V" #a2) \
rettype F_CALL_CONV funcname(a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VI(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," #a2) \
rettype F_CALL_CONV funcname(a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_IV(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2) \
rettype F_CALL_CONV funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3) \
rettype F_CALL_CONV funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IIV(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," "V" #a3) \
rettype F_CALL_CONV funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VII(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," #a2 "," #a3) \
rettype F_CALL_CONV funcname(a2, a3, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVV(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2 "," "V" #a3) \
rettype F_CALL_CONV funcname(a1, a3, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVI(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2 "," #a3) \
rettype F_CALL_CONV funcname(a1, a3, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVI(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," "V" #a2 "," #a3) \
rettype F_CALL_CONV funcname(a2, a1, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVV(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," "V" #a2 "," "V" #a3) \
rettype F_CALL_CONV funcname(a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL4(rettype, funcname, a1, a2, a3, a4) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4) \
rettype F_CALL_CONV funcname(a1, a2, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5) \
rettype F_CALL_CONV funcname(a1, a2, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL6(rettype, funcname, a1, a2, a3, a4, a5, a6) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6) \
rettype F_CALL_CONV funcname(a1, a2, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7) \
rettype F_CALL_CONV funcname(a1, a2, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8) \
rettype F_CALL_CONV funcname(a1, a2, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9) \
rettype F_CALL_CONV funcname(a1, a2, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10) \
rettype F_CALL_CONV funcname(a1, a2, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11) \
rettype F_CALL_CONV funcname(a1, a2, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11 "," #a12) \
rettype F_CALL_CONV funcname(a1, a2, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11 "," #a12 "," #a13) \
rettype F_CALL_CONV funcname(a1, a2, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11 "," #a12 "," #a13 "," #a14) \
rettype F_CALL_CONV funcname(a1, a2, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2 "," #a3 "," #a4 "," #a5) \
rettype F_CALL_CONV funcname(a1, a3, a5, a4, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_VII(rettype, funcname, a1, a2, a3, a4, a5) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," #a2 "," #a3 "," #a4 "," #a5) \
rettype F_CALL_CONV funcname(a2, a3, a5, a4, a1) { FCIMPL_PROLOG(funcname)
#endif // !SWIZZLE_REGARG_ORDER
#else // SWIZZLE_STKARG_ORDER
#define FCIMPL0(rettype, funcname) rettype funcname() { FCIMPL_PROLOG(funcname)
#define FCIMPL1(rettype, funcname, a1) rettype funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL1_V(rettype, funcname, a1) rettype funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2VA(rettype, funcname, a1, a2) rettype funcname(a1, a2, ...) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VV(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VI(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_IV(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IIV(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVV(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VII(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVI(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVI(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVV(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype funcname(a1, a2, a3, a4) { FCIMPL_PROLOG(funcname)
#define FCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype funcname(a1, a2, a3, a4, a5) { FCIMPL_PROLOG(funcname)
#define FCIMPL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype funcname(a1, a2, a3, a4, a5, a6) { FCIMPL_PROLOG(funcname)
#define FCIMPL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype funcname(a1, a2, a3, a4, a5, a6, a7) { FCIMPL_PROLOG(funcname)
#define FCIMPL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8) { FCIMPL_PROLOG(funcname)
#define FCIMPL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9) { FCIMPL_PROLOG(funcname)
#define FCIMPL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { FCIMPL_PROLOG(funcname)
#define FCIMPL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) { FCIMPL_PROLOG(funcname)
#define FCIMPL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) { FCIMPL_PROLOG(funcname)
#define FCIMPL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) { FCIMPL_PROLOG(funcname)
#define FCIMPL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype funcname(a1, a2, a3, a4, a5) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype funcname(a1, a2, a3, a4, a5) { FCIMPL_PROLOG(funcname)
#endif // !SWIZZLE_STKARG_ORDER
//==============================================================================================
// Use this to terminte an FCIMPLEND.
//==============================================================================================
#define FCIMPL_EPILOG() FCALL_TRANSITION_END()
#define FCIMPLEND FCIMPL_EPILOG(); }
#define HCIMPL_PROLOG(funcname) LPVOID __me; __me = 0; FC_COMMON_PROLOG(funcname, HCallAssert)
// HCIMPL macros are just like their FCIMPL counterparts, however
// they do not remember the function they come from. Thus they will not
// show up in a stack trace. This is what you want for JIT helpers and the like
#ifdef SWIZZLE_STKARG_ORDER
#ifdef SWIZZLE_REGARG_ORDER
#define HCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { HCIMPL_PROLOG(funcname)
#define HCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL1_RAW(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1) {
#define HCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_RAW(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1) {
#define HCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a2, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL3_RAW(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) {
#define HCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a5, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCCALL0(funcname) funcname()
#define HCCALL1(funcname, a1) funcname(0, 0, a1)
#define HCCALL1_V(funcname, a1) funcname(0, 0, 0, a1)
#define HCCALL2(funcname, a1, a2) funcname(0, a2, a1)
#define HCCALL3(funcname, a1, a2, a3) funcname(0, a2, a1, a3)
#define HCCALL4(funcname, a1, a2, a3, a4) funcname(0, a2, a1, a4, a3)
#define HCCALL5(funcname, a1, a2, a3, a4, a5) funcname(0, a2, a1, a5, a4, a3)
#define HCCALL1_PTR(rettype, funcptr, a1) rettype (F_CALL_CONV * funcptr)(int /* EAX */, int /* EDX */, a1)
#define HCCALL2_PTR(rettype, funcptr, a1, a2) rettype (F_CALL_CONV * funcptr)(int /* EAX */, a2, a1)
#else // SWIZZLE_REGARG_ORDER
#define HCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { HCIMPL_PROLOG(funcname)
#define HCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL1_RAW(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) {
#define HCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_RAW(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) {
#define HCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a2, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL3_RAW(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) {
#define HCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a5, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCCALL0(funcname) funcname()
#define HCCALL1(funcname, a1) funcname(a1)
#define HCCALL1_V(funcname, a1) funcname(a1)
#define HCCALL2(funcname, a1, a2) funcname(a1, a2)
#define HCCALL3(funcname, a1, a2, a3) funcname(a1, a2, a3)
#define HCCALL4(funcname, a1, a2, a3, a4) funcname(a1, a2, a4, a3)
#define HCCALL5(funcname, a1, a2, a3, a4, a5) funcname(a1, a2, a5, a4, a3)
#define HCCALL1_PTR(rettype, funcptr, a1) rettype (F_CALL_CONV * (funcptr))(a1)
#define HCCALL2_PTR(rettype, funcptr, a1, a2) rettype (F_CALL_CONV * (funcptr))(a1, a2)
#endif // !SWIZZLE_REGARG_ORDER
#else // SWIZZLE_STKARG_ORDER
#define HCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { HCIMPL_PROLOG(funcname)
#define HCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL1_RAW(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) {
#define HCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_RAW(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) {
#define HCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL3_RAW(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) {
#define HCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a3, a4) { HCIMPL_PROLOG(funcname)
#define HCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5) { HCIMPL_PROLOG(funcname)
#define HCCALL0(funcname) funcname()
#define HCCALL1(funcname, a1) funcname(a1)
#define HCCALL1_V(funcname, a1) funcname(a1)
#define HCCALL2(funcname, a1, a2) funcname(a1, a2)
#define HCCALL3(funcname, a1, a2, a3) funcname(a1, a2, a3)
#define HCCALL4(funcname, a1, a2, a3, a4) funcname(a1, a2, a3, a4)
#define HCCALL5(funcname, a1, a2, a3, a4, a5) funcname(a1, a2, a3, a4, a5)
#define HCCALL1_PTR(rettype, funcptr, a1) rettype (F_CALL_CONV * (funcptr))(a1)
#define HCCALL2_PTR(rettype, funcptr, a1, a2) rettype (F_CALL_CONV * (funcptr))(a1, a2)
#endif // !SWIZZLE_STKARG_ORDER
#define HCIMPLEND_RAW }
#define HCIMPLEND FCALL_TRANSITION_END(); }
//==============================================================================================
// Throws an exception from an FCall. See rexcep.h for a list of valid
// exception codes.
//==============================================================================================
#define FCThrow(reKind) FCThrowEx(reKind, 0, 0, 0, 0)
//==============================================================================================
// This version lets you attach a message with inserts (similar to
// COMPlusThrow()).
//==============================================================================================
#define FCThrowEx(reKind, resID, arg1, arg2, arg3) \
{ \
while (NULL == \
__FCThrow(__me, reKind, resID, arg1, arg2, arg3)) {}; \
return 0; \
}
//==============================================================================================
// Like FCThrow but can be used for a VOID-returning FCall. The only
// difference is in the "return" statement.
//==============================================================================================
#define FCThrowVoid(reKind) FCThrowExVoid(reKind, 0, 0, 0, 0)
//==============================================================================================
// This version lets you attach a message with inserts (similar to
// COMPlusThrow()).
//==============================================================================================
#define FCThrowExVoid(reKind, resID, arg1, arg2, arg3) \
{ \
while (NULL == \
__FCThrow(__me, reKind, resID, arg1, arg2, arg3)) {}; \
return; \
}
// Use FCThrowRes to throw an exception with a localized error message from the
// ResourceManager in managed code.
#define FCThrowRes(reKind, resourceName) FCThrowArgumentEx(reKind, NULL, resourceName)
#define FCThrowArgumentNull(argName) FCThrowArgumentEx(kArgumentNullException, argName, NULL)
#define FCThrowArgumentOutOfRange(argName, message) FCThrowArgumentEx(kArgumentOutOfRangeException, argName, message)
#define FCThrowArgument(argName, message) FCThrowArgumentEx(kArgumentException, argName, message)
#define FCThrowArgumentEx(reKind, argName, resourceName) \
{ \
while (NULL == \
__FCThrowArgument(__me, reKind, argName, resourceName)) {}; \
return 0; \
}
// Use FCThrowRes to throw an exception with a localized error message from the
// ResourceManager in managed code.
#define FCThrowResVoid(reKind, resourceName) FCThrowArgumentVoidEx(reKind, NULL, resourceName)
#define FCThrowArgumentNullVoid(argName) FCThrowArgumentVoidEx(kArgumentNullException, argName, NULL)
#define FCThrowArgumentOutOfRangeVoid(argName, message) FCThrowArgumentVoidEx(kArgumentOutOfRangeException, argName, message)
#define FCThrowArgumentVoid(argName, message) FCThrowArgumentVoidEx(kArgumentException, argName, message)
#define FCThrowArgumentVoidEx(reKind, argName, resourceName) \
{ \
while (NULL == \
__FCThrowArgument(__me, reKind, argName, resourceName)) {}; \
return; \
}
// The x86 JIT calling convention expects returned small types (e.g. bool) to be
// widened on return. The C/C++ calling convention does not guarantee returned
// small types to be widened. The small types has to be artifically widened on return
// to fit x86 JIT calling convention. Thus fcalls returning small types has to
// use the FC_XXX_RET types to force C/C++ compiler to do the widening.
//
// The most common small return type of FCALLs is bool. The widening of bool is
// especially tricky since the value has to be also normalized. FC_BOOL_RET and
// FC_RETURN_BOOL macros are provided to make it fool-proof. FCALLs returning bool
// should be implemented using following pattern:
// FCIMPL0(FC_BOOL_RET, Foo) // the return type should be FC_BOOL_RET
// BOOL ret;
//
// FC_RETURN_BOOL(ret); // return statements should be FC_RETURN_BOOL
// FCIMPLEND
// This rules are verified in binder.cpp if COMPlus_ConsistencyCheck is set.
#ifdef _PREFAST_
// Use prefast build to ensure that functions returning FC_BOOL_RET
// are using FC_RETURN_BOOL to return it. Missing FC_RETURN_BOOL will
// result into type mismatch error in prefast builds. This will also
// catch misuses of FC_BOOL_RET for other places (e.g. in FCALL parameters).
typedef LPVOID FC_BOOL_RET;
#define FC_RETURN_BOOL(x) do { return (LPVOID)!!(x); } while(0)
#else
#if defined(TARGET_X86) || defined(TARGET_AMD64)
// The return value is artifically widened on x86 and amd64
typedef INT32 FC_BOOL_RET;
#else
typedef CLR_BOOL FC_BOOL_RET;
#endif
#define FC_RETURN_BOOL(x) do { return !!(x); } while(0)
#endif
#if defined(TARGET_X86) || defined(TARGET_AMD64)
// The return value is artifically widened on x86 and amd64
typedef UINT32 FC_CHAR_RET;
typedef INT32 FC_INT8_RET;
typedef UINT32 FC_UINT8_RET;
typedef INT32 FC_INT16_RET;
typedef UINT32 FC_UINT16_RET;
#else
typedef CLR_CHAR FC_CHAR_RET;
typedef INT8 FC_INT8_RET;
typedef UINT8 FC_UINT8_RET;
typedef INT16 FC_INT16_RET;
typedef UINT16 FC_UINT16_RET;
#endif
// FC_TypedByRef should be used for TypedReferences in FCall signatures
#define FC_TypedByRef TypedByRef
#define FC_DECIMAL DECIMAL
// The fcall entrypoints has to be at unique addresses. Use this helper macro to make
// the code of the fcalls unique if you get assert in ecall.cpp that mentions it.
// The parameter of the FCUnique macro is an arbitrary 32-bit random non-zero number.
#define FCUnique(unique) { Volatile<int> u = (unique); while (u.LoadWithoutBarrier() == 0) { }; }
// FCALL contracts come in two forms:
//
// Short form that should be used if the FCALL contract does not have any extras like preconditions, failure injection. Example:
//
// FCIMPL0(void, foo)
// {
// FCALL_CONTRACT;
// ...
//
// Long form that should be used otherwise. Example:
//
// FCIMPL1(void, foo, void *p)
// {
// CONTRACTL {
// FCALL_CHECK;
// PRECONDITION(CheckPointer(p));
// } CONTRACTL_END;
// ...
//
// FCALL_CHECK defines the actual contract conditions required for FCALLs
//
#define FCALL_CHECK \
THROWS; \
DISABLED(GC_TRIGGERS); /* FCALLS with HELPER frames have issues with GC_TRIGGERS */ \
MODE_COOPERATIVE;
//
// FCALL_CONTRACT should be the following shortcut:
//
// #define FCALL_CONTRACT CONTRACTL { FCALL_CHECK; } CONTRACTL_END;
//
// Since there is very little value in having runtime contracts in FCalls, FCALL_CONTRACT is defined as static contract only for performance reasons.
//
#define FCALL_CONTRACT \
STATIC_CONTRACT_THROWS; \
/* FCALLS are a special case contract wise, they are "NOTRIGGER, unless you setup a frame" */ \
STATIC_CONTRACT_GC_NOTRIGGER; \
STATIC_CONTRACT_MODE_COOPERATIVE
#endif //__FCall_h__
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// FCall.H
//
//
// FCall is a high-performance alternative to ECall. Unlike ECall, FCall
// methods do not necessarily create a frame. Jitted code calls directly
// to the FCall entry point. It is possible to do operations that need
// to have a frame within an FCall, you need to manually set up the frame
// before you do such operations.
// It is illegal to cause a GC or EH to happen in an FCALL before setting
// up a frame. To prevent accidentally violating this rule, FCALLs turn
// on BEGINGCFORBID, which insures that these things can't happen in a
// checked build without causing an ASSERTE. Once you set up a frame,
// this state is turned off as long as the frame is active, and then is
// turned on again when the frame is torn down. This mechanism should
// be sufficient to insure that the rules are followed.
// In general you set up a frame by using the following macros
// HELPER_METHOD_FRAME_BEGIN_RET*() // Use If the FCALL has a return value
// HELPER_METHOD_FRAME_BEGIN*() // Use If FCALL does not return a value
// HELPER_METHOD_FRAME_END*()
// These macros introduce a scope which is protected by an HelperMethodFrame.
// In this scope you can do EH or GC. There are rules associated with
// their use. In particular
// 1) These macros can only be used in the body of a FCALL (that is
// something using the FCIMPL* or HCIMPL* macros for their decaration.
// 2) You may not perform a 'return' within this scope..
// Compile time errors occur if you try to violate either of these rules.
// The frame that is set up does NOT protect any GC variables (in particular the
// arguments of the FCALL. Thus you need to do an explicit GCPROTECT once the
// frame is established if you need to protect an argument. There are flavors
// of HELPER_METHOD_FRAME that protect a certain number of GC variables. For
// example
// HELPER_METHOD_FRAME_BEGIN_RET_2(arg1, arg2)
// will protect the GC variables arg1, and arg2 as well as erecting the frame.
// Another invariant that you must be aware of is the need to poll to see if
// a GC is needed by some other thread. Unless the FCALL is VERY short,
// every code path through the FCALL must do such a poll. The important
// thing here is that a poll will cause a GC, and thus you can only do it
// when all you GC variables are protected. To make things easier
// HELPER_METHOD_FRAMES that protect things automatically do this poll.
// If you don't need to protect anything HELPER_METHOD_FRAME_BEGIN_0
// will also do the poll.
// Sometimes it is convenient to do the poll a the end of the frame, you
// can use HELPER_METHOD_FRAME_BEGIN_NOPOLL and HELPER_METHOD_FRAME_END_POLL
// to do the poll at the end. If somewhere in the middle is the best
// place you can do that too with HELPER_METHOD_POLL()
// You don't need to erect a helper method frame to do a poll. FC_GC_POLL
// can do this (remember all your GC refs will be trashed).
// Finally if your method is VERY small, you can get away without a poll,
// you have to use FC_GC_POLL_NOT_NEEDED to mark this.
// Use sparingly!
// It is possible to set up the frame as the first operation in the FCALL and
// tear it down as the last operation before returning. This works and is
// reasonably efficient (as good as an ECall), however, if it is the case that
// you can defer the setup of the frame to an unlikely code path (exception path)
// that is much better.
// If you defer setup of the frame, all codepaths leading to the frame setup
// must be wrapped with PERMIT_HELPER_METHOD_FRAME_BEGIN/END. These block
// certain compiler optimizations that interfere with the delayed frame setup.
// These macros are automatically included in the HCIMPL, FCIMPL, and frame
// setup macros.
// <TODO>TODO: we should have a way of doing a trial allocation (an allocation that
// will fail if it would cause a GC). That way even FCALLs that need to allocate
// would not necessarily need to set up a frame. </TODO>
// It is common to only need to set up a frame in order to throw an exception.
// While this can be done by doing
// HELPER_METHOD_FRAME_BEGIN() // Use if FCALL does not return a value
// COMPlusThrow(execpt);
// HELPER_METHOD_FRAME_END()
// It is more efficient (in space) to use convenience macro FCTHROW that does
// this for you (sets up a frame, and does the throw).
// FCTHROW(except)
// Since FCALLS have to conform to the EE calling conventions and not to C
// calling conventions, FCALLS, need to be declared using special macros (FCIMPL*)
// that implement the correct calling conventions. There are variants of these
// macros depending on the number of args, and sometimes the types of the
// arguments.
//------------------------------------------------------------------------
// A very simple example:
//
// FCIMPL2(INT32, Div, INT32 x, INT32 y)
// {
// if (y == 0)
// FCThrow(kDivideByZeroException);
// return x/y;
// }
// FCIMPLEND
//
//
// *** WATCH OUT FOR THESE GOTCHAS: ***
// ------------------------------------
// - In your FCDECL & FCIMPL protos, don't declare a param as type OBJECTREF
// or any of its deriveds. This will break on the checked build because
// __fastcall doesn't enregister C++ objects (which OBJECTREF is).
// Instead, you need to do something like;
//
// FCIMPL(.., .., Object* pObject0)
// OBJECTREF pObject = ObjectToOBJECTREF(pObject0);
// FCIMPL
//
// For similar reasons, use Object* rather than OBJECTREF as a return type.
// Consider either using ObjectToOBJECTREF or calling VALIDATEOBJECTREF
// to make sure your Object* is valid.
//
// - FCThrow() must be called directly from your FCall impl function: it
// cannot be called from a subfunction. Calling from a subfunction breaks
// the VC code parsing workaround that lets us recover the callee saved registers.
// Fortunately, you'll get a compile error complaining about an
// unknown variable "__me".
//
// - If your FCall returns VOID, you must use FCThrowVoid() rather than
// FCThrow(). This is because FCThrow() has to generate an unexecuted
// "return" statement for the code parser.
//
// - On x86, if first and/or second argument of your FCall cannot be passed
// in either of the __fastcall registers (ECX/EDX), you must use "V" versions
// of FCDECL and FCIMPL macros to enregister arguments correctly. Some of the
// most common types that fit this requirement are 64-bit values (i.e. INT64 or
// UINT64) and floating-point values (i.e. FLOAT or DOUBLE). For example, FCDECL3_IVI
// must be used for FCalls that take 3 arguments and 2nd argument is INT64 and
// FDECL2_VV must be used for FCalls that take 2 arguments where both are FLOAT.
//
// - You may use structs for protecting multiple OBJECTREF's simultaneously.
// In these cases, you must use a variant of a helper method frame with PROTECT
// in the name, to ensure all the OBJECTREF's in the struct get protected.
// Also, initialize all the OBJECTREF's first. Like this:
//
// FCIMPL4(Object*, COMNlsInfo::nativeChangeCaseString, LocaleIDObject* localeUNSAFE,
// INT_PTR pNativeTextInfo, StringObject* pStringUNSAFE, CLR_BOOL bIsToUpper)
// {
// [ignoring CONTRACT for now]
// struct _gc
// {
// STRINGREF pResult;
// STRINGREF pString;
// LOCALEIDREF pLocale;
// } gc;
// gc.pResult = NULL;
// gc.pString = ObjectToSTRINGREF(pStringUNSAFE);
// gc.pLocale = (LOCALEIDREF)ObjectToOBJECTREF(localeUNSAFE);
//
// HELPER_METHOD_FRAME_BEGIN_RET_PROTECT(gc)
//
// If you forgot the PROTECT part, the macro will only protect the first OBJECTREF,
// introducing a subtle GC hole in your code. Fortunately, we now issue a
// compile-time error if you forget.
// How FCall works:
// ----------------
// An FCall target uses __fastcall or some other calling convention to
// match the IL calling convention exactly. Thus, a call to FCall is a direct
// call to the target w/ no intervening stub or frame.
//
// The tricky part is when FCThrow is called. FCThrow must generate
// a proper method frame before allocating and throwing the exception.
// To do this, it must recover several things:
//
// - The location of the FCIMPL's return address (since that's
// where the frame will be based.)
//
// - The on-entry values of the callee-saved regs; which must
// be recorded in the frame so that GC can update them.
// Depending on how VC compiles your FCIMPL, those values are still
// in the original registers or saved on the stack.
//
// To figure out which, FCThrow() generates the code:
//
// while (NULL == __FCThrow(__me, ...)) {};
// return 0;
//
// The "return" statement will never execute; but its presence guarantees
// that VC will follow the __FCThrow() call with a VC epilog
// that restores the callee-saved registers using a pretty small
// and predictable set of Intel opcodes. __FCThrow() parses this
// epilog and simulates its execution to recover the callee saved
// registers.
//
// The while loop is to prevent the compiler from doing tail call optimizations.
// The helper frame interpretter needs the frame to be present.
//
// - The MethodDesc* that this FCall implements. This MethodDesc*
// is part of the frame and ensures that the FCall will appear
// in the exception's stack trace. To get this, FCDECL declares
// a static local __me, initialized to point to the FC target itself.
// This address is exactly what's stored in the ECall lookup tables;
// so __FCThrow() simply does a reverse lookup on that table to recover
// the MethodDesc*.
//
#ifndef __FCall_h__
#define __FCall_h__
#include "gms.h"
#include "runtimeexceptionkind.h"
#include "debugreturn.h"
//==============================================================================================
// These macros defeat compiler optimizations that might mix nonvolatile
// register loads and stores with other code in the function body. This
// creates problems for the frame setup code, which assumes that any
// nonvolatiles that are saved at the point of the frame setup will be
// re-loaded when the frame is popped.
//
// Currently this is only known to be an issue on AMD64. It's uncertain
// whether it is an issue on x86.
//==============================================================================================
#if defined(TARGET_AMD64) && !defined(TARGET_UNIX)
//
// On AMD64 this is accomplished by including a setjmp anywhere in a function.
// Doesn't matter whether it is reachable or not, and in fact in optimized
// builds the setjmp is removed altogether.
//
#include <setjmp.h>
#ifdef _DEBUG
//
// Linked list of unmanaged methods preceeding a HelperMethodFrame push. This
// is linked onto the current Thread. Each list entry is stack-allocated so it
// can be associated with an unmanaged frame. Each unmanaged frame needs to be
// associated with at least one list entry.
//
struct HelperMethodFrameCallerList
{
HelperMethodFrameCallerList *pCaller;
};
#endif // _DEBUG
//
// Resets the Thread state at a new managed -> fcall transition.
//
class FCallTransitionState
{
public:
FCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
~FCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
#ifdef _DEBUG
private:
Thread *m_pThread;
HelperMethodFrameCallerList *m_pPreviousHelperMethodFrameCallerList;
#endif // _DEBUG
};
//
// Pushes/pops state for each caller.
//
class PermitHelperMethodFrameState
{
public:
PermitHelperMethodFrameState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
~PermitHelperMethodFrameState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
static VOID CheckHelperMethodFramePermitted () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
#ifdef _DEBUG
private:
Thread *m_pThread;
HelperMethodFrameCallerList m_ListEntry;
#endif // _DEBUG
};
//
// Resets the Thread state after the HelperMethodFrame is pushed. At this
// point, the HelperMethodFrame is capable of unwinding to the managed code,
// so we can reset the Thread state for any nested fcalls.
//
class CompletedFCallTransitionState
{
public:
CompletedFCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
~CompletedFCallTransitionState () NOT_DEBUG({ LIMITED_METHOD_CONTRACT; });
#ifdef _DEBUG
private:
HelperMethodFrameCallerList *m_pLastHelperMethodFrameCallerList;
#endif // _DEBUG
};
#define PERMIT_HELPER_METHOD_FRAME_BEGIN() \
if (1) \
{ \
PermitHelperMethodFrameState ___PermitHelperMethodFrameState;
#define PERMIT_HELPER_METHOD_FRAME_END() \
} \
else \
{ \
jmp_buf ___jmpbuf; \
setjmp(___jmpbuf); \
__assume(0); \
}
#define FCALL_TRANSITION_BEGIN() \
FCallTransitionState ___FCallTransitionState; \
PERMIT_HELPER_METHOD_FRAME_BEGIN();
#define FCALL_TRANSITION_END() \
PERMIT_HELPER_METHOD_FRAME_END();
#define CHECK_HELPER_METHOD_FRAME_PERMITTED() \
PermitHelperMethodFrameState::CheckHelperMethodFramePermitted(); \
CompletedFCallTransitionState ___CompletedFCallTransitionState;
#else // unsupported processor
#define PERMIT_HELPER_METHOD_FRAME_BEGIN()
#define PERMIT_HELPER_METHOD_FRAME_END()
#define FCALL_TRANSITION_BEGIN()
#define FCALL_TRANSITION_END()
#define CHECK_HELPER_METHOD_FRAME_PERMITTED()
#endif // unsupported processor
//==============================================================================================
// This is where FCThrow ultimately ends up. Never call this directly.
// Use the FCThrow() macros. __FCThrowArgument is the helper to throw ArgumentExceptions
// with a resource taken from the managed resource manager.
//==============================================================================================
LPVOID __FCThrow(LPVOID me, enum RuntimeExceptionKind reKind, UINT resID, LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3);
LPVOID __FCThrowArgument(LPVOID me, enum RuntimeExceptionKind reKind, LPCWSTR argumentName, LPCWSTR resourceName);
//==============================================================================================
// FDECLn: A set of macros for generating header declarations for FC targets.
// Use FIMPLn for the actual body.
//==============================================================================================
// Note: on the x86, these defs reverse all but the first two arguments
// (IL stack calling convention is reversed from __fastcall.)
// Calling convention for varargs
#define F_CALL_VA_CONV __cdecl
#ifdef TARGET_X86
// Choose the appropriate calling convention for FCALL helpers on the basis of the JIT calling convention
#ifdef __GNUC__
#define F_CALL_CONV __attribute__((cdecl, regparm(3)))
// GCC FCALL convention (simulated via cdecl, regparm(3)) is different from MSVC FCALL convention. GCC can use up
// to 3 registers to store parameters. The registers used are EAX, EDX, ECX. Dummy parameters and reordering
// of the actual parameters in the FCALL signature is used to make the calling convention to look like in MSVC.
#define SWIZZLE_REGARG_ORDER
#else // __GNUC__
#define F_CALL_CONV __fastcall
#endif // !__GNUC__
#define SWIZZLE_STKARG_ORDER
#else // TARGET_X86
//
// non-x86 platforms don't have messed-up calling convention swizzling
//
#define F_CALL_CONV
#endif // !TARGET_X86
#ifdef SWIZZLE_STKARG_ORDER
#ifdef SWIZZLE_REGARG_ORDER
#define FCDECL0(rettype, funcname) rettype F_CALL_CONV funcname()
#define FCDECL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1)
#define FCDECL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a1)
#define FCDECL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1)
#define FCDECL2VA(rettype, funcname, a1, a2) rettype F_CALL_VA_CONV funcname(a1, a2, ...)
#define FCDECL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a2, a1)
#define FCDECL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a2, a1)
#define FCDECL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a2)
#define FCDECL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3)
#define FCDECL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3)
#define FCDECL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a1)
#define FCDECL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a3, a2)
#define FCDECL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a2)
#define FCDECL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a3, a2, a1)
#define FCDECL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a3, a2, a1)
#define FCDECL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a4, a3)
#define FCDECL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a5, a4, a3)
#define FCDECL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a6, a5, a4, a3)
#define FCDECL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a7, a6, a5, a4, a3)
#define FCDECL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a8, a7, a6, a5, a4, a3)
#define FCDECL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a5, a4, a2)
#define FCDECL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a5, a4, a1)
#else // SWIZZLE_REGARG_ORDER
#define FCDECL0(rettype, funcname) rettype F_CALL_CONV funcname()
#define FCDECL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2VA(rettype, funcname, a1, a2) rettype F_CALL_VA_CONV funcname(a1, a2, ...)
#define FCDECL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a2, a1)
#define FCDECL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a2, a1)
#define FCDECL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a2, a3, a1)
#define FCDECL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a3, a2)
#define FCDECL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a3, a2)
#define FCDECL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a2, a1, a3)
#define FCDECL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a3, a2, a1)
#define FCDECL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a4, a3)
#define FCDECL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a5, a4, a3)
#define FCDECL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(a1, a2, a6, a5, a4, a3)
#define FCDECL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(a1, a2, a7, a6, a5, a4, a3)
#define FCDECL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(a1, a2, a8, a7, a6, a5, a4, a3)
#define FCDECL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(a1, a2, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(a1, a2, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(a1, a2, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(a1, a2, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(a1, a2, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(a1, a2, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCDECL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a3, a5, a4, a2)
#define FCDECL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a2, a3, a5, a4, a1)
#endif // !SWIZZLE_REGARG_ORDER
#if 0
//
// don't use something like this... directly calling an FCALL from within the runtime breaks stackwalking because
// the FCALL reverse mapping only gets established in ECall::GetFCallImpl and that codepath is circumvented by
// directly calling and FCALL
// See below for usage of FC_CALL_INNER (used in SecurityStackWalk::Check presently)
//
#define FCCALL0(funcname) funcname()
#define FCCALL1(funcname, a1) funcname(a1)
#define FCCALL2(funcname, a1, a2) funcname(a1, a2)
#define FCCALL3(funcname, a1, a2, a3) funcname(a1, a2, a3)
#define FCCALL4(funcname, a1, a2, a3, a4) funcname(a1, a2, a4, a3)
#define FCCALL5(funcname, a1, a2, a3, a4, a5) funcname(a1, a2, a5, a4, a3)
#define FCCALL6(funcname, a1, a2, a3, a4, a5, a6) funcname(a1, a2, a6, a5, a4, a3)
#define FCCALL7(funcname, a1, a2, a3, a4, a5, a6, a7) funcname(a1, a2, a7, a6, a5, a4, a3)
#define FCCALL8(funcname, a1, a2, a3, a4, a5, a6, a7, a8) funcname(a1, a2, a8, a7, a6, a5, a4, a3)
#define FCCALL9(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) funcname(a1, a2, a9, a8, a7, a6, a5, a4, a3)
#define FCCALL10(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) funcname(a1, a2, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCCALL11(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) funcname(a1, a2, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#define FCCALL12(funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) funcname(a1, a2, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3)
#endif // 0
#else // !SWIZZLE_STKARG_ORDER
#define FCDECL0(rettype, funcname) rettype F_CALL_CONV funcname()
#define FCDECL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1)
#define FCDECL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2VA(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2, ...)
#define FCDECL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2)
#define FCDECL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3)
#define FCDECL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a3, a4)
#define FCDECL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5)
#define FCDECL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6)
#define FCDECL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7)
#define FCDECL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8)
#define FCDECL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9)
#define FCDECL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
#define FCDECL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11)
#define FCDECL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12)
#define FCDECL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13)
#define FCDECL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14)
#define FCDECL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5)
#define FCDECL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5)
#endif // !SWIZZLE_STKARG_ORDER
#define HELPER_FRAME_DECL(x) FrameWithCookie<HelperMethodFrame_##x##OBJ> __helperframe
// use the capture state machinery if the architecture has one
//
// For a normal build we create a loop (see explaination on RestoreState below)
// We don't want a loop here for PREFAST since that causes
// warning 263: Using _alloca in a loop
// And we can't use DEBUG_OK_TO_RETURN for PREFAST because the PREFAST version
// requires that you already be in a DEBUG_ASSURE_NO_RETURN_BEGIN scope
#define HelperMethodFrame_0OBJ HelperMethodFrame
#define HELPER_FRAME_ARGS(attribs) __me, attribs
#define FORLAZYMACHSTATE(x) x
#if defined(_PREFAST_)
#define FORLAZYMACHSTATE_BEGINLOOP(x) x
#define FORLAZYMACHSTATE_ENDLOOP(x)
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_BEGIN
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_END
#else
#define FORLAZYMACHSTATE_BEGINLOOP(x) x do
#define FORLAZYMACHSTATE_ENDLOOP(x) while(x)
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_BEGIN DEBUG_OK_TO_RETURN_BEGIN(LAZYMACHSTATE)
#define FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_END DEBUG_OK_TO_RETURN_END(LAZYMACHSTATE)
#endif
// BEGIN: before gcpoll
//FCallGCCanTriggerNoDtor __fcallGcCanTrigger;
//__fcallGcCanTrigger.Enter();
// END: after gcpoll
//__fcallGcCanTrigger.Leave(__FUNCTION__, __FILE__, __LINE__);
// We have to put DEBUG_OK_TO_RETURN_BEGIN around the FORLAZYMACHSTATE
// to allow the HELPER_FRAME to be installed inside an SO_INTOLERANT region
// which does not allow a return. The return is used by FORLAZYMACHSTATE
// to capture the state, but is not an actual return, so it is ok.
#define HELPER_METHOD_FRAME_BEGIN_EX_BODY(ret, helperFrame, gcpoll, allowGC) \
FORLAZYMACHSTATE_BEGINLOOP(int alwaysZero = 0;) \
{ \
INDEBUG(static BOOL __haveCheckedRestoreState = FALSE;) \
PERMIT_HELPER_METHOD_FRAME_BEGIN(); \
CHECK_HELPER_METHOD_FRAME_PERMITTED(); \
helperFrame; \
FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_BEGIN; \
FORLAZYMACHSTATE(CAPTURE_STATE(__helperframe.MachineState(), ret);) \
FORLAZYMACHSTATE_DEBUG_OK_TO_RETURN_END; \
INDEBUG(__helperframe.SetAddrOfHaveCheckedRestoreState(&__haveCheckedRestoreState)); \
DEBUG_ASSURE_NO_RETURN_BEGIN(HELPER_METHOD_FRAME); \
INCONTRACT(FCallGCCanTrigger::Enter());
#define HELPER_METHOD_FRAME_BEGIN_EX(ret, helperFrame, gcpoll, allowGC) \
HELPER_METHOD_FRAME_BEGIN_EX_BODY(ret, helperFrame, gcpoll, allowGC) \
/* <TODO>TODO TURN THIS ON!!! </TODO> */ \
/* gcpoll; */ \
INSTALL_MANAGED_EXCEPTION_DISPATCHER; \
__helperframe.Push(); \
MAKE_CURRENT_THREAD_AVAILABLE_EX(__helperframe.GetThread()); \
INSTALL_UNWIND_AND_CONTINUE_HANDLER_FOR_HMF(&__helperframe);
#define HELPER_METHOD_FRAME_BEGIN_EX_NOTHROW(ret, helperFrame, gcpoll, allowGC, probeFailExpr) \
HELPER_METHOD_FRAME_BEGIN_EX_BODY(ret, helperFrame, gcpoll, allowGC) \
__helperframe.Push(); \
MAKE_CURRENT_THREAD_AVAILABLE_EX(__helperframe.GetThread()); \
/* <TODO>TODO TURN THIS ON!!! </TODO> */ \
/* gcpoll; */
// The while(__helperframe.RestoreState() needs a bit of explanation.
// The issue is insuring that the same machine state (which registers saved)
// exists when the machine state is probed (when the frame is created, and
// when it is actually used (when the frame is popped. We do this by creating
// a flow of control from use to def. Note that 'RestoreState' always returns false
// we never actually loop, but the compiler does not know that, and thus
// will be forced to make the keep the state of register spills the same at
// the two locations.
#define HELPER_METHOD_FRAME_END_EX_BODY(gcpoll,allowGC) \
/* <TODO>TODO TURN THIS ON!!! </TODO> */ \
/* gcpoll; */ \
DEBUG_ASSURE_NO_RETURN_END(HELPER_METHOD_FRAME); \
INCONTRACT(FCallGCCanTrigger::Leave(__FUNCTION__, __FILE__, __LINE__)); \
FORLAZYMACHSTATE(alwaysZero = \
HelperMethodFrameRestoreState(INDEBUG_COMMA(&__helperframe) \
__helperframe.MachineState());) \
PERMIT_HELPER_METHOD_FRAME_END() \
} FORLAZYMACHSTATE_ENDLOOP(alwaysZero);
#define HELPER_METHOD_FRAME_END_EX(gcpoll,allowGC) \
UNINSTALL_UNWIND_AND_CONTINUE_HANDLER; \
__helperframe.Pop(); \
UNINSTALL_MANAGED_EXCEPTION_DISPATCHER; \
HELPER_METHOD_FRAME_END_EX_BODY(gcpoll,allowGC);
#define HELPER_METHOD_FRAME_END_EX_NOTHROW(gcpoll,allowGC) \
__helperframe.Pop(); \
HELPER_METHOD_FRAME_END_EX_BODY(gcpoll,allowGC);
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_0() \
HELPER_METHOD_FRAME_BEGIN_ATTRIB(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_NOPOLL(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
{},FALSE)
#define HELPER_METHOD_FRAME_BEGIN_NOPOLL() HELPER_METHOD_FRAME_BEGIN_ATTRIB_NOPOLL(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_1(attribs, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_1(arg1) HELPER_METHOD_FRAME_BEGIN_ATTRIB_1(Frame::FRAME_ATTR_NONE, arg1)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_2(attribs, arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(2)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_2(arg1, arg2) HELPER_METHOD_FRAME_BEGIN_ATTRIB_2(Frame::FRAME_ATTR_NONE, arg1, arg2)
#define HELPER_METHOD_FRAME_BEGIN_ATTRIB_3(attribs, arg1, arg2, arg3) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg3) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(3)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2, (OBJECTREF*) &arg3), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_3(arg1, arg2, arg3) HELPER_METHOD_FRAME_BEGIN_ATTRIB_3(Frame::FRAME_ATTR_NONE, arg1, arg2, arg3)
#define HELPER_METHOD_FRAME_BEGIN_PROTECT(gc) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return, \
HELPER_FRAME_DECL(PROTECT)(HELPER_FRAME_ARGS(Frame::FRAME_ATTR_NONE), \
(OBJECTREF*)&(gc), sizeof(gc)/sizeof(OBJECTREF)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
{},FALSE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_NOPOLL(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
{},FALSE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB(attribs) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(attribs)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_0() \
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_0() \
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(0)(HELPER_FRAME_ARGS(Frame::FRAME_ATTR_NONE)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(attribs, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_NOTHROW_1(probeFailExpr, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX_NOTHROW( \
return 0, \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(Frame::FRAME_ATTR_NO_THREAD_ABORT), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(), TRUE, probeFailExpr)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_1(attribs, arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(1)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_2(attribs, arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(2)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_2(attribs, arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_EX( \
FC_RETURN_VC(), \
HELPER_FRAME_DECL(2)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*) &arg1, (OBJECTREF*) &arg2), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_PROTECT(attribs, gc) \
HELPER_METHOD_FRAME_BEGIN_EX( \
return 0, \
HELPER_FRAME_DECL(PROTECT)(HELPER_FRAME_ARGS(attribs), \
(OBJECTREF*)&(gc), sizeof(gc)/sizeof(OBJECTREF)), \
HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_NOPOLL() \
HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_NOPOLL(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_RET_NOPOLL() \
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(Frame::FRAME_ATTR_NONE)
#define HELPER_METHOD_FRAME_BEGIN_RET_1(arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(Frame::FRAME_ATTR_NONE, arg1)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_1(arg1) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_1(Frame::FRAME_ATTR_NONE, arg1)
#define HELPER_METHOD_FRAME_BEGIN_RET_2(arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_2(Frame::FRAME_ATTR_NONE, arg1, arg2)
#define HELPER_METHOD_FRAME_BEGIN_RET_VC_2(arg1, arg2) \
static_assert(sizeof(arg1) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
static_assert(sizeof(arg2) == sizeof(OBJECTREF), "GC protecting structs of multiple OBJECTREFs requires a PROTECT variant of the HELPER METHOD FRAME macro");\
HELPER_METHOD_FRAME_BEGIN_RET_VC_ATTRIB_2(Frame::FRAME_ATTR_NONE, arg1, arg2)
#define HELPER_METHOD_FRAME_BEGIN_RET_PROTECT(gc) \
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_PROTECT(Frame::FRAME_ATTR_NONE, gc)
#define HELPER_METHOD_FRAME_END() HELPER_METHOD_FRAME_END_EX({},FALSE)
#define HELPER_METHOD_FRAME_END_POLL() HELPER_METHOD_FRAME_END_EX(HELPER_METHOD_POLL(),TRUE)
#define HELPER_METHOD_FRAME_END_NOTHROW()HELPER_METHOD_FRAME_END_EX_NOTHROW({},FALSE)
// This is the fastest way to do a GC poll if you have already erected a HelperMethodFrame
#define HELPER_METHOD_POLL() { __helperframe.Poll(); INCONTRACT(__fCallCheck.SetDidPoll()); }
// The HelperMethodFrame knows how to get its return address. Let other code get at it, too.
// (Uses comma operator to call InsureInit & discard result.
#define HELPER_METHOD_FRAME_GET_RETURN_ADDRESS() \
( static_cast<UINT_PTR>( (__helperframe.InsureInit(false, NULL)), (__helperframe.MachineState()->GetRetAddr()) ) )
// Very short routines, or routines that are guarenteed to force GC or EH
// don't need to poll the GC. USE VERY SPARINGLY!!!
#define FC_GC_POLL_NOT_NEEDED() INCONTRACT(__fCallCheck.SetNotNeeded())
Object* FC_GCPoll(void* me, Object* objToProtect = NULL);
#define FC_GC_POLL_EX(ret) \
{ \
INCONTRACT(Thread::TriggersGC(GetThread());) \
INCONTRACT(__fCallCheck.SetDidPoll();) \
if (g_TrapReturningThreads.LoadWithoutBarrier()) \
{ \
if (FC_GCPoll(__me)) \
return ret; \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
} \
}
#define FC_GC_POLL() FC_GC_POLL_EX(;)
#define FC_GC_POLL_RET() FC_GC_POLL_EX(0)
#define FC_GC_POLL_AND_RETURN_OBJREF(obj) \
{ \
INCONTRACT(__fCallCheck.SetDidPoll();) \
Object* __temp = OBJECTREFToObject(obj); \
if (g_TrapReturningThreads.LoadWithoutBarrier()) \
{ \
__temp = FC_GCPoll(__me, __temp); \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
} \
return __temp; \
}
#if defined(ENABLE_CONTRACTS)
#define FC_CAN_TRIGGER_GC() FCallGCCanTrigger::Enter()
#define FC_CAN_TRIGGER_GC_END() FCallGCCanTrigger::Leave(__FUNCTION__, __FILE__, __LINE__)
#define FC_CAN_TRIGGER_GC_HAVE_THREAD(thread) FCallGCCanTrigger::Enter(thread)
#define FC_CAN_TRIGGER_GC_HAVE_THREADEND(thread) FCallGCCanTrigger::Leave(thread, __FUNCTION__, __FILE__, __LINE__)
// turns on forbidGC for the lifetime of the instance
class ForbidGC {
protected:
Thread *m_pThread;
public:
ForbidGC(const char *szFile, int lineNum);
~ForbidGC();
};
// this little helper class checks to make certain
// 1) ForbidGC is set throughout the routine.
// 2) Sometime during the routine, a GC poll is done
class FCallCheck : public ForbidGC {
public:
FCallCheck(const char *szFile, int lineNum);
~FCallCheck();
void SetDidPoll() {LIMITED_METHOD_CONTRACT; didGCPoll = true; }
void SetNotNeeded() {LIMITED_METHOD_CONTRACT; notNeeded = true; }
private:
#ifdef _DEBUG
DWORD unbreakableLockCount;
#endif
bool didGCPoll; // GC poll was done
bool notNeeded; // GC poll not needed
unsigned __int64 startTicks; // tick count at beginning of FCall
};
// FC_COMMON_PROLOG is used for both FCalls and HCalls
#define FC_COMMON_PROLOG(target, assertFn) \
/* The following line has to be first. We do not want to trash last error */ \
DWORD __lastError = ::GetLastError(); \
static void* __cache = 0; \
assertFn(__cache, (LPVOID)target); \
{ \
Thread *_pThread = GetThread(); \
Thread::ObjectRefFlush(_pThread); \
} \
FCallCheck __fCallCheck(__FILE__, __LINE__); \
FCALL_TRANSITION_BEGIN(); \
::SetLastError(__lastError); \
void FCallAssert(void*& cache, void* target);
void HCallAssert(void*& cache, void* target);
#else
#define FC_COMMON_PROLOG(target, assertFn) FCALL_TRANSITION_BEGIN()
#define FC_CAN_TRIGGER_GC()
#define FC_CAN_TRIGGER_GC_END()
#endif // ENABLE_CONTRACTS
// #FC_INNER
// Macros that allows fcall to be split into two function to avoid the helper frame overhead on common fast
// codepaths.
//
// The helper routine needs to know the name of the routine that called it so that it can look up the name of
// the managed routine this code is associted with (for managed stack traces). This is passed with the
// FC_INNER_PROLOG macro.
//
// The helper can set up a HELPER_METHOD_FRAME, but should pass the
// Frame::FRAME_ATTR_EXACT_DEPTH|Frame::FRAME_ATTR_CAPTURE_DEPTH_2 which indicates the exact number of
// unwinds to do to get back to managed code. Currently we only support depth 2 which means that the
// HELPER_METHOD_FRAME needs to be set up in the function directly called by the FCALL. The helper should
// use the NOINLINE macro to prevent the compiler from inlining it into the FCALL (which would obviously
// mess up the unwind count).
//
// The other invarient that needs to hold is that the epilog walker needs to be able to get from the call to
// the helper routine to the end of the FCALL using trivial heurisitics. The easiest (and only supported)
// way of doing this is to place your helper right before a return (eg at the end of the method). Generally
// this is not a problem at all, since the FCALL itself will pick off some common case and then tail-call to
// the helper for everything else. You must use the code:FC_INNER_RETURN macros to do the call, to insure
// that the C++ compiler does not tail-call optimize the call to the inner function and mess up the stack
// depth.
//
// see code:ObjectNative::GetClass for an example
//
#define FC_INNER_PROLOG(outerfuncname) \
LPVOID __me; \
__me = GetEEFuncEntryPointMacro(outerfuncname); \
FC_CAN_TRIGGER_GC(); \
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
// This variant should be used for inner fcall functions that have the
// __me value passed as an argument to the function. This allows
// inner functions to be shared across multiple fcalls.
#define FC_INNER_PROLOG_NO_ME_SETUP() \
FC_CAN_TRIGGER_GC(); \
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
#define FC_INNER_EPILOG() \
FC_CAN_TRIGGER_GC_END();
// If you are using FC_INNER, and you are tail calling to the helper method (a common case), then you need
// to use the FC_INNER_RETURN macros (there is one for methods that return a value and another if the
// function returns void). This macro's purpose is to inhibit any tail calll optimization the C++ compiler
// might do, which would otherwise confuse the epilog walker.
//
// * See #FC_INNER for more
extern RAW_KEYWORD(volatile) int FC_NO_TAILCALL;
#define FC_INNER_RETURN(type, expr) \
type __retVal = expr; \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
return(__retVal);
#define FC_INNER_RETURN_VOID(stmt) \
stmt; \
while (0 == FC_NO_TAILCALL) { }; /* side effect the compile can't remove */ \
return;
//==============================================================================================
// FIMPLn: A set of macros for generating the proto for the actual
// implementation (use FDECLN for header protos.)
//
// The hidden "__me" variable lets us recover the original MethodDesc*
// so any thrown exceptions will have the correct stack trace. FCThrow()
// passes this along to __FCThrowInternal().
//==============================================================================================
#define GetEEFuncEntryPointMacro(func) ((LPVOID)(func))
#define FCIMPL_PROLOG(funcname) \
LPVOID __me; \
__me = GetEEFuncEntryPointMacro(funcname); \
FC_COMMON_PROLOG(__me, FCallAssert)
#if defined(_DEBUG) && !defined(__GNUC__)
// Build the list of all fcalls signatures. It is used in binder.cpp to verify
// compatibility of managed and unmanaged fcall signatures. The check is currently done
// for x86 only.
#define CHECK_FCALL_SIGNATURE
#endif
#ifdef CHECK_FCALL_SIGNATURE
struct FCSigCheck {
public:
FCSigCheck(void* fnc, const char* sig)
{
LIMITED_METHOD_CONTRACT;
func = fnc;
signature = sig;
next = g_pFCSigCheck;
g_pFCSigCheck = this;
}
FCSigCheck* next;
void* func;
const char* signature;
static FCSigCheck* g_pFCSigCheck;
};
#define FCSIGCHECK(funcname, signature) \
static FCSigCheck UNIQUE_LABEL(FCSigCheck)(GetEEFuncEntryPointMacro(funcname), signature);
#else // CHECK_FCALL_SIGNATURE
#define FCSIGCHECK(funcname, signature)
#endif // !CHECK_FCALL_SIGNATURE
#ifdef SWIZZLE_STKARG_ORDER
#ifdef SWIZZLE_REGARG_ORDER
#define FCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { FCIMPL_PROLOG(funcname)
#define FCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VI(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IIV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VII(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a3, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVI(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVV(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a1, a5, a4, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a3, a2, a5, a4, a1) { FCIMPL_PROLOG(funcname)
#else // SWIZZLE_REGARG_ORDER
#define FCIMPL0(rettype, funcname) FCSIGCHECK(funcname, #rettype) \
rettype F_CALL_CONV funcname() { FCIMPL_PROLOG(funcname)
#define FCIMPL1(rettype, funcname, a1) FCSIGCHECK(funcname, #rettype "," #a1) \
rettype F_CALL_CONV funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL1_V(rettype, funcname, a1) FCSIGCHECK(funcname, #rettype "," "V" #a1) \
rettype F_CALL_CONV funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2) \
rettype F_CALL_CONV funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2VA(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," "...") \
rettype F_CALL_VA_CONV funcname(a1, a2, ...) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VV(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," "V" #a2) \
rettype F_CALL_CONV funcname(a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VI(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," #a2) \
rettype F_CALL_CONV funcname(a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_IV(rettype, funcname, a1, a2) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2) \
rettype F_CALL_CONV funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3) \
rettype F_CALL_CONV funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IIV(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," "V" #a3) \
rettype F_CALL_CONV funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VII(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," #a2 "," #a3) \
rettype F_CALL_CONV funcname(a2, a3, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVV(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2 "," "V" #a3) \
rettype F_CALL_CONV funcname(a1, a3, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVI(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2 "," #a3) \
rettype F_CALL_CONV funcname(a1, a3, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVI(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," "V" #a2 "," #a3) \
rettype F_CALL_CONV funcname(a2, a1, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVV(rettype, funcname, a1, a2, a3) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," "V" #a2 "," "V" #a3) \
rettype F_CALL_CONV funcname(a3, a2, a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL4(rettype, funcname, a1, a2, a3, a4) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4) \
rettype F_CALL_CONV funcname(a1, a2, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5) \
rettype F_CALL_CONV funcname(a1, a2, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL6(rettype, funcname, a1, a2, a3, a4, a5, a6) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6) \
rettype F_CALL_CONV funcname(a1, a2, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7) \
rettype F_CALL_CONV funcname(a1, a2, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8) \
rettype F_CALL_CONV funcname(a1, a2, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9) \
rettype F_CALL_CONV funcname(a1, a2, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10) \
rettype F_CALL_CONV funcname(a1, a2, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11) \
rettype F_CALL_CONV funcname(a1, a2, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11 "," #a12) \
rettype F_CALL_CONV funcname(a1, a2, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11 "," #a12 "," #a13) \
rettype F_CALL_CONV funcname(a1, a2, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) FCSIGCHECK(funcname, #rettype "," #a1 "," #a2 "," #a3 "," #a4 "," #a5 "," #a6 "," #a7 "," #a8 "," #a9 "," #a10 "," #a11 "," #a12 "," #a13 "," #a14) \
rettype F_CALL_CONV funcname(a1, a2, a14, a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) FCSIGCHECK(funcname, #rettype "," #a1 "," "V" #a2 "," #a3 "," #a4 "," #a5) \
rettype F_CALL_CONV funcname(a1, a3, a5, a4, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_VII(rettype, funcname, a1, a2, a3, a4, a5) FCSIGCHECK(funcname, #rettype "," "V" #a1 "," #a2 "," #a3 "," #a4 "," #a5) \
rettype F_CALL_CONV funcname(a2, a3, a5, a4, a1) { FCIMPL_PROLOG(funcname)
#endif // !SWIZZLE_REGARG_ORDER
#else // SWIZZLE_STKARG_ORDER
#define FCIMPL0(rettype, funcname) rettype funcname() { FCIMPL_PROLOG(funcname)
#define FCIMPL1(rettype, funcname, a1) rettype funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL1_V(rettype, funcname, a1) rettype funcname(a1) { FCIMPL_PROLOG(funcname)
#define FCIMPL2(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2VA(rettype, funcname, a1, a2) rettype funcname(a1, a2, ...) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VV(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_VI(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL2_IV(rettype, funcname, a1, a2) rettype funcname(a1, a2) { FCIMPL_PROLOG(funcname)
#define FCIMPL3(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IIV(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVV(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VII(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_IVI(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVI(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL3_VVV(rettype, funcname, a1, a2, a3) rettype funcname(a1, a2, a3) { FCIMPL_PROLOG(funcname)
#define FCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype funcname(a1, a2, a3, a4) { FCIMPL_PROLOG(funcname)
#define FCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype funcname(a1, a2, a3, a4, a5) { FCIMPL_PROLOG(funcname)
#define FCIMPL6(rettype, funcname, a1, a2, a3, a4, a5, a6) rettype funcname(a1, a2, a3, a4, a5, a6) { FCIMPL_PROLOG(funcname)
#define FCIMPL7(rettype, funcname, a1, a2, a3, a4, a5, a6, a7) rettype funcname(a1, a2, a3, a4, a5, a6, a7) { FCIMPL_PROLOG(funcname)
#define FCIMPL8(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8) { FCIMPL_PROLOG(funcname)
#define FCIMPL9(rettype, funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9) { FCIMPL_PROLOG(funcname)
#define FCIMPL10(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { FCIMPL_PROLOG(funcname)
#define FCIMPL11(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) { FCIMPL_PROLOG(funcname)
#define FCIMPL12(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) { FCIMPL_PROLOG(funcname)
#define FCIMPL13(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) { FCIMPL_PROLOG(funcname)
#define FCIMPL14(rettype,funcname, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) rettype funcname(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_IVI(rettype, funcname, a1, a2, a3, a4, a5) rettype funcname(a1, a2, a3, a4, a5) { FCIMPL_PROLOG(funcname)
#define FCIMPL5_VII(rettype, funcname, a1, a2, a3, a4, a5) rettype funcname(a1, a2, a3, a4, a5) { FCIMPL_PROLOG(funcname)
#endif // !SWIZZLE_STKARG_ORDER
//==============================================================================================
// Use this to terminte an FCIMPLEND.
//==============================================================================================
#define FCIMPL_EPILOG() FCALL_TRANSITION_END()
#define FCIMPLEND FCIMPL_EPILOG(); }
#define HCIMPL_PROLOG(funcname) LPVOID __me; __me = 0; FC_COMMON_PROLOG(funcname, HCallAssert)
// HCIMPL macros are just like their FCIMPL counterparts, however
// they do not remember the function they come from. Thus they will not
// show up in a stack trace. This is what you want for JIT helpers and the like
#ifdef SWIZZLE_STKARG_ORDER
#ifdef SWIZZLE_REGARG_ORDER
#define HCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { HCIMPL_PROLOG(funcname)
#define HCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL1_RAW(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1) {
#define HCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_RAW(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1) {
#define HCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, int /* ECX */, a2, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(int /* EAX */, int /* EDX */, a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL3_RAW(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a3) {
#define HCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(int /* EAX */, a2, a1, a5, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCCALL0(funcname) funcname()
#define HCCALL1(funcname, a1) funcname(0, 0, a1)
#define HCCALL1_V(funcname, a1) funcname(0, 0, 0, a1)
#define HCCALL2(funcname, a1, a2) funcname(0, a2, a1)
#define HCCALL3(funcname, a1, a2, a3) funcname(0, a2, a1, a3)
#define HCCALL4(funcname, a1, a2, a3, a4) funcname(0, a2, a1, a4, a3)
#define HCCALL5(funcname, a1, a2, a3, a4, a5) funcname(0, a2, a1, a5, a4, a3)
#define HCCALL1_PTR(rettype, funcptr, a1) rettype (F_CALL_CONV * funcptr)(int /* EAX */, int /* EDX */, a1)
#define HCCALL2_PTR(rettype, funcptr, a1, a2) rettype (F_CALL_CONV * funcptr)(int /* EAX */, a2, a1)
#else // SWIZZLE_REGARG_ORDER
#define HCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { HCIMPL_PROLOG(funcname)
#define HCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL1_RAW(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) {
#define HCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_RAW(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) {
#define HCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a2, a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL3_RAW(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) {
#define HCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a5, a4, a3) { HCIMPL_PROLOG(funcname)
#define HCCALL0(funcname) funcname()
#define HCCALL1(funcname, a1) funcname(a1)
#define HCCALL1_V(funcname, a1) funcname(a1)
#define HCCALL2(funcname, a1, a2) funcname(a1, a2)
#define HCCALL3(funcname, a1, a2, a3) funcname(a1, a2, a3)
#define HCCALL4(funcname, a1, a2, a3, a4) funcname(a1, a2, a4, a3)
#define HCCALL5(funcname, a1, a2, a3, a4, a5) funcname(a1, a2, a5, a4, a3)
#define HCCALL1_PTR(rettype, funcptr, a1) rettype (F_CALL_CONV * (funcptr))(a1)
#define HCCALL2_PTR(rettype, funcptr, a1, a2) rettype (F_CALL_CONV * (funcptr))(a1, a2)
#endif // !SWIZZLE_REGARG_ORDER
#else // SWIZZLE_STKARG_ORDER
#define HCIMPL0(rettype, funcname) rettype F_CALL_CONV funcname() { HCIMPL_PROLOG(funcname)
#define HCIMPL1(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL1_RAW(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) {
#define HCIMPL1_V(rettype, funcname, a1) rettype F_CALL_CONV funcname(a1) { HCIMPL_PROLOG(funcname)
#define HCIMPL2(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_RAW(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) {
#define HCIMPL2_VV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL2_IV(rettype, funcname, a1, a2) rettype F_CALL_CONV funcname(a1, a2) { HCIMPL_PROLOG(funcname)
#define HCIMPL3(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) { HCIMPL_PROLOG(funcname)
#define HCIMPL3_RAW(rettype, funcname, a1, a2, a3) rettype F_CALL_CONV funcname(a1, a2, a3) {
#define HCIMPL4(rettype, funcname, a1, a2, a3, a4) rettype F_CALL_CONV funcname(a1, a2, a3, a4) { HCIMPL_PROLOG(funcname)
#define HCIMPL5(rettype, funcname, a1, a2, a3, a4, a5) rettype F_CALL_CONV funcname(a1, a2, a3, a4, a5) { HCIMPL_PROLOG(funcname)
#define HCCALL0(funcname) funcname()
#define HCCALL1(funcname, a1) funcname(a1)
#define HCCALL1_V(funcname, a1) funcname(a1)
#define HCCALL2(funcname, a1, a2) funcname(a1, a2)
#define HCCALL3(funcname, a1, a2, a3) funcname(a1, a2, a3)
#define HCCALL4(funcname, a1, a2, a3, a4) funcname(a1, a2, a3, a4)
#define HCCALL5(funcname, a1, a2, a3, a4, a5) funcname(a1, a2, a3, a4, a5)
#define HCCALL1_PTR(rettype, funcptr, a1) rettype (F_CALL_CONV * (funcptr))(a1)
#define HCCALL2_PTR(rettype, funcptr, a1, a2) rettype (F_CALL_CONV * (funcptr))(a1, a2)
#endif // !SWIZZLE_STKARG_ORDER
#define HCIMPLEND_RAW }
#define HCIMPLEND FCALL_TRANSITION_END(); }
//==============================================================================================
// Throws an exception from an FCall. See rexcep.h for a list of valid
// exception codes.
//==============================================================================================
#define FCThrow(reKind) FCThrowEx(reKind, 0, 0, 0, 0)
//==============================================================================================
// This version lets you attach a message with inserts (similar to
// COMPlusThrow()).
//==============================================================================================
#define FCThrowEx(reKind, resID, arg1, arg2, arg3) \
{ \
while (NULL == \
__FCThrow(__me, reKind, resID, arg1, arg2, arg3)) {}; \
return 0; \
}
//==============================================================================================
// Like FCThrow but can be used for a VOID-returning FCall. The only
// difference is in the "return" statement.
//==============================================================================================
#define FCThrowVoid(reKind) FCThrowExVoid(reKind, 0, 0, 0, 0)
//==============================================================================================
// This version lets you attach a message with inserts (similar to
// COMPlusThrow()).
//==============================================================================================
#define FCThrowExVoid(reKind, resID, arg1, arg2, arg3) \
{ \
while (NULL == \
__FCThrow(__me, reKind, resID, arg1, arg2, arg3)) {}; \
return; \
}
// Use FCThrowRes to throw an exception with a localized error message from the
// ResourceManager in managed code.
#define FCThrowRes(reKind, resourceName) FCThrowArgumentEx(reKind, NULL, resourceName)
#define FCThrowArgumentNull(argName) FCThrowArgumentEx(kArgumentNullException, argName, NULL)
#define FCThrowArgumentOutOfRange(argName, message) FCThrowArgumentEx(kArgumentOutOfRangeException, argName, message)
#define FCThrowArgument(argName, message) FCThrowArgumentEx(kArgumentException, argName, message)
#define FCThrowArgumentEx(reKind, argName, resourceName) \
{ \
while (NULL == \
__FCThrowArgument(__me, reKind, argName, resourceName)) {}; \
return 0; \
}
// Use FCThrowRes to throw an exception with a localized error message from the
// ResourceManager in managed code.
#define FCThrowResVoid(reKind, resourceName) FCThrowArgumentVoidEx(reKind, NULL, resourceName)
#define FCThrowArgumentNullVoid(argName) FCThrowArgumentVoidEx(kArgumentNullException, argName, NULL)
#define FCThrowArgumentOutOfRangeVoid(argName, message) FCThrowArgumentVoidEx(kArgumentOutOfRangeException, argName, message)
#define FCThrowArgumentVoid(argName, message) FCThrowArgumentVoidEx(kArgumentException, argName, message)
#define FCThrowArgumentVoidEx(reKind, argName, resourceName) \
{ \
while (NULL == \
__FCThrowArgument(__me, reKind, argName, resourceName)) {}; \
return; \
}
// The x86 JIT calling convention expects returned small types (e.g. bool) to be
// widened on return. The C/C++ calling convention does not guarantee returned
// small types to be widened. The small types has to be artifically widened on return
// to fit x86 JIT calling convention. Thus fcalls returning small types has to
// use the FC_XXX_RET types to force C/C++ compiler to do the widening.
//
// The most common small return type of FCALLs is bool. The widening of bool is
// especially tricky since the value has to be also normalized. FC_BOOL_RET and
// FC_RETURN_BOOL macros are provided to make it fool-proof. FCALLs returning bool
// should be implemented using following pattern:
// FCIMPL0(FC_BOOL_RET, Foo) // the return type should be FC_BOOL_RET
// BOOL ret;
//
// FC_RETURN_BOOL(ret); // return statements should be FC_RETURN_BOOL
// FCIMPLEND
// This rules are verified in binder.cpp if COMPlus_ConsistencyCheck is set.
#ifdef _PREFAST_
// Use prefast build to ensure that functions returning FC_BOOL_RET
// are using FC_RETURN_BOOL to return it. Missing FC_RETURN_BOOL will
// result into type mismatch error in prefast builds. This will also
// catch misuses of FC_BOOL_RET for other places (e.g. in FCALL parameters).
typedef LPVOID FC_BOOL_RET;
#define FC_RETURN_BOOL(x) do { return (LPVOID)!!(x); } while(0)
#else
#if defined(TARGET_X86) || defined(TARGET_AMD64)
// The return value is artifically widened on x86 and amd64
typedef INT32 FC_BOOL_RET;
#else
typedef CLR_BOOL FC_BOOL_RET;
#endif
#define FC_RETURN_BOOL(x) do { return !!(x); } while(0)
#endif
#if defined(TARGET_X86) || defined(TARGET_AMD64)
// The return value is artifically widened on x86 and amd64
typedef UINT32 FC_CHAR_RET;
typedef INT32 FC_INT8_RET;
typedef UINT32 FC_UINT8_RET;
typedef INT32 FC_INT16_RET;
typedef UINT32 FC_UINT16_RET;
#else
typedef CLR_CHAR FC_CHAR_RET;
typedef INT8 FC_INT8_RET;
typedef UINT8 FC_UINT8_RET;
typedef INT16 FC_INT16_RET;
typedef UINT16 FC_UINT16_RET;
#endif
// FC_TypedByRef should be used for TypedReferences in FCall signatures
#define FC_TypedByRef TypedByRef
#define FC_DECIMAL DECIMAL
// The fcall entrypoints has to be at unique addresses. Use this helper macro to make
// the code of the fcalls unique if you get assert in ecall.cpp that mentions it.
// The parameter of the FCUnique macro is an arbitrary 32-bit random non-zero number.
#define FCUnique(unique) { Volatile<int> u = (unique); while (u.LoadWithoutBarrier() == 0) { }; }
// FCALL contracts come in two forms:
//
// Short form that should be used if the FCALL contract does not have any extras like preconditions, failure injection. Example:
//
// FCIMPL0(void, foo)
// {
// FCALL_CONTRACT;
// ...
//
// Long form that should be used otherwise. Example:
//
// FCIMPL1(void, foo, void *p)
// {
// CONTRACTL {
// FCALL_CHECK;
// PRECONDITION(CheckPointer(p));
// } CONTRACTL_END;
// ...
//
// FCALL_CHECK defines the actual contract conditions required for FCALLs
//
#define FCALL_CHECK \
THROWS; \
DISABLED(GC_TRIGGERS); /* FCALLS with HELPER frames have issues with GC_TRIGGERS */ \
MODE_COOPERATIVE;
//
// FCALL_CONTRACT should be the following shortcut:
//
// #define FCALL_CONTRACT CONTRACTL { FCALL_CHECK; } CONTRACTL_END;
//
// Since there is very little value in having runtime contracts in FCalls, FCALL_CONTRACT is defined as static contract only for performance reasons.
//
#define FCALL_CONTRACT \
STATIC_CONTRACT_THROWS; \
/* FCALLS are a special case contract wise, they are "NOTRIGGER, unless you setup a frame" */ \
STATIC_CONTRACT_GC_NOTRIGGER; \
STATIC_CONTRACT_MODE_COOPERATIVE
#endif //__FCall_h__
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Net.WebSockets/Directory.Build.props
|
<Project>
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
</PropertyGroup>
</Project>
|
<Project>
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
</PropertyGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/src/libunwind/src/tilegx/elfxx.c
|
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "libunwind_i.h"
#include "../src/elfxx.c"
|
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "libunwind_i.h"
#include "../src/elfxx.c"
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/cnt2.txt
|
<?xml version="1.0" encoding="utf-8"?>Hello, world!
|
<?xml version="1.0" encoding="utf-8"?>Hello, world!
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/bft11.txt
|
<?xml version="1.0" encoding="utf-8"?>Hello, world!
|
<?xml version="1.0" encoding="utf-8"?>Hello, world!
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/src/libunwind/src/tilegx/Gget_save_loc.c
|
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
Copyright (C) 2014 Tilera Corp.
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
int
unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
{
struct cursor *c = (struct cursor *) cursor;
dwarf_loc_t loc;
loc = DWARF_NULL_LOC; /* default to "not saved" */
if (reg <= UNW_TILEGX_R55)
loc = c->dwarf.loc[reg - UNW_TILEGX_R0];
else
printf("\nInvalid register!");
memset (sloc, 0, sizeof (*sloc));
if (DWARF_IS_NULL_LOC (loc))
{
sloc->type = UNW_SLT_NONE;
return 0;
}
#if !defined(UNW_LOCAL_ONLY)
if (DWARF_IS_REG_LOC (loc))
{
sloc->type = UNW_SLT_REG;
sloc->u.regnum = DWARF_GET_LOC (loc);
}
else
#endif
{
sloc->type = UNW_SLT_MEMORY;
sloc->u.addr = DWARF_GET_LOC (loc);
}
return 0;
}
|
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
Copyright (C) 2014 Tilera Corp.
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
int
unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
{
struct cursor *c = (struct cursor *) cursor;
dwarf_loc_t loc;
loc = DWARF_NULL_LOC; /* default to "not saved" */
if (reg <= UNW_TILEGX_R55)
loc = c->dwarf.loc[reg - UNW_TILEGX_R0];
else
printf("\nInvalid register!");
memset (sloc, 0, sizeof (*sloc));
if (DWARF_IS_NULL_LOC (loc))
{
sloc->type = UNW_SLT_NONE;
return 0;
}
#if !defined(UNW_LOCAL_ONLY)
if (DWARF_IS_REG_LOC (loc))
{
sloc->type = UNW_SLT_REG;
sloc->u.regnum = DWARF_GET_LOC (loc);
}
else
#endif
{
sloc->type = UNW_SLT_MEMORY;
sloc->u.addr = DWARF_GET_LOC (loc);
}
return 0;
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.IO.Packaging/Directory.Build.props
|
<Project>
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
</PropertyGroup>
</Project>
|
<Project>
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
</PropertyGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/native/corehost/test/mockhostfxr/2_2/CMakeLists.txt
|
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
project(mockhostfxr_2_2)
set(DOTNET_PROJECT_NAME "mockhostfxr_2_2")
add_definitions(-D_MOCKHOSTFXR_2_2)
set(SOURCES
./../mockhostfxr.cpp
)
include(../../testlib.cmake)
install_with_stripped_symbols(mockhostfxr_2_2 TARGETS corehost_test)
|
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
project(mockhostfxr_2_2)
set(DOTNET_PROJECT_NAME "mockhostfxr_2_2")
add_definitions(-D_MOCKHOSTFXR_2_2)
set(SOURCES
./../mockhostfxr.cpp
)
include(../../testlib.cmake)
install_with_stripped_symbols(mockhostfxr_2_2 TARGETS corehost_test)
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/mono/mono/mini/arch-stubs.c
|
/**
* \file
*/
#include "mini.h"
/* Dummy versions of some arch specific functions to avoid ifdefs at call sites */
#ifndef MONO_ARCH_GSHAREDVT_SUPPORTED
gboolean
mono_arch_gsharedvt_sig_supported (MonoMethodSignature *sig)
{
return FALSE;
}
gpointer
mono_arch_get_gsharedvt_call_info (MonoMemoryManager *mem_manager, gpointer addr, MonoMethodSignature *normal_sig, MonoMethodSignature *gsharedvt_sig, gboolean gsharedvt_in, gint32 vcall_offset, gboolean calli)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_gsharedvt_arg_trampoline (gpointer arg, gpointer addr)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_gsharedvt_trampoline (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
#endif
#ifndef MONO_ARCH_HAVE_DECOMPOSE_OPTS
void
mono_arch_decompose_opts (MonoCompile *cfg, MonoInst *ins)
{
}
#endif
#ifndef MONO_ARCH_HAVE_OPCODE_NEEDS_EMULATION
gboolean
mono_arch_opcode_needs_emulation (MonoCompile *cfg, int opcode)
{
return TRUE;
}
#endif
#ifndef MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS
void
mono_arch_decompose_long_opts (MonoCompile *cfg, MonoInst *ins)
{
}
#endif
#ifndef MONO_ARCH_INTERPRETER_SUPPORTED
gpointer
mono_arch_get_interp_to_native_trampoline (MonoTrampInfo **info)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_native_to_interp_trampoline (MonoTrampInfo **info)
{
g_assert_not_reached ();
return NULL;
}
void
mono_arch_undo_ip_adjustment (MonoContext *context)
{
g_assert_not_reached ();
}
void
mono_arch_do_ip_adjustment (MonoContext *context)
{
g_assert_not_reached ();
}
#endif
#ifndef MONO_ARCH_HAVE_EXCEPTIONS_INIT
void
mono_arch_exceptions_init (void)
{
}
#endif
#if defined (DISABLE_JIT) && !defined (HOST_WASM)
gpointer
mono_arch_get_restore_context (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_call_filter (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_throw_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_rethrow_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_rethrow_preserve_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_throw_corlib_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
#endif /* DISABLE_JIT */
|
/**
* \file
*/
#include "mini.h"
/* Dummy versions of some arch specific functions to avoid ifdefs at call sites */
#ifndef MONO_ARCH_GSHAREDVT_SUPPORTED
gboolean
mono_arch_gsharedvt_sig_supported (MonoMethodSignature *sig)
{
return FALSE;
}
gpointer
mono_arch_get_gsharedvt_call_info (MonoMemoryManager *mem_manager, gpointer addr, MonoMethodSignature *normal_sig, MonoMethodSignature *gsharedvt_sig, gboolean gsharedvt_in, gint32 vcall_offset, gboolean calli)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_gsharedvt_arg_trampoline (gpointer arg, gpointer addr)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_gsharedvt_trampoline (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
#endif
#ifndef MONO_ARCH_HAVE_DECOMPOSE_OPTS
void
mono_arch_decompose_opts (MonoCompile *cfg, MonoInst *ins)
{
}
#endif
#ifndef MONO_ARCH_HAVE_OPCODE_NEEDS_EMULATION
gboolean
mono_arch_opcode_needs_emulation (MonoCompile *cfg, int opcode)
{
return TRUE;
}
#endif
#ifndef MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS
void
mono_arch_decompose_long_opts (MonoCompile *cfg, MonoInst *ins)
{
}
#endif
#ifndef MONO_ARCH_INTERPRETER_SUPPORTED
gpointer
mono_arch_get_interp_to_native_trampoline (MonoTrampInfo **info)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_native_to_interp_trampoline (MonoTrampInfo **info)
{
g_assert_not_reached ();
return NULL;
}
void
mono_arch_undo_ip_adjustment (MonoContext *context)
{
g_assert_not_reached ();
}
void
mono_arch_do_ip_adjustment (MonoContext *context)
{
g_assert_not_reached ();
}
#endif
#ifndef MONO_ARCH_HAVE_EXCEPTIONS_INIT
void
mono_arch_exceptions_init (void)
{
}
#endif
#if defined (DISABLE_JIT) && !defined (HOST_WASM)
gpointer
mono_arch_get_restore_context (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_call_filter (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_throw_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_rethrow_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_rethrow_preserve_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
gpointer
mono_arch_get_throw_corlib_exception (MonoTrampInfo **info, gboolean aot)
{
g_assert_not_reached ();
return NULL;
}
#endif /* DISABLE_JIT */
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/tests/palsuite/threading/GetExitCodeProcess/test1/myexitcode.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: myexitcode.h
**
** Purpose: Define an exit code.
**
**
**==========================================================================*/
#define TEST_EXIT_CODE 104
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: myexitcode.h
**
** Purpose: Define an exit code.
**
**
**==========================================================================*/
#define TEST_EXIT_CODE 104
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/mono/mono/metadata/fdhandle.h
|
#ifndef __MONO_METADATA_FDHANDLE_H__
#define __MONO_METADATA_FDHANDLE_H__
#include <config.h>
#include <glib.h>
#include "utils/refcount.h"
typedef enum {
MONO_FDTYPE_FILE,
MONO_FDTYPE_CONSOLE,
MONO_FDTYPE_PIPE,
MONO_FDTYPE_SOCKET,
MONO_FDTYPE_COUNT
} MonoFDType;
typedef struct {
MonoRefCount ref;
MonoFDType type;
gint fd;
} MonoFDHandle;
typedef struct {
void (*close) (MonoFDHandle *fdhandle);
void (*destroy) (MonoFDHandle *fdhandle);
} MonoFDHandleCallback;
void
mono_fdhandle_register (MonoFDType type, MonoFDHandleCallback *callback);
void
mono_fdhandle_init (MonoFDHandle *fdhandle, MonoFDType type, gint fd);
void
mono_fdhandle_insert (MonoFDHandle *fdhandle);
gboolean
mono_fdhandle_try_insert (MonoFDHandle *fdhandle);
gboolean
mono_fdhandle_lookup_and_ref (gint fd, MonoFDHandle **fdhandle);
void
mono_fdhandle_unref (MonoFDHandle *fdhandle);
gboolean
mono_fdhandle_close (gint fd);
#endif /* __MONO_METADATA_FDHANDLE_H__ */
|
#ifndef __MONO_METADATA_FDHANDLE_H__
#define __MONO_METADATA_FDHANDLE_H__
#include <config.h>
#include <glib.h>
#include "utils/refcount.h"
typedef enum {
MONO_FDTYPE_FILE,
MONO_FDTYPE_CONSOLE,
MONO_FDTYPE_PIPE,
MONO_FDTYPE_SOCKET,
MONO_FDTYPE_COUNT
} MonoFDType;
typedef struct {
MonoRefCount ref;
MonoFDType type;
gint fd;
} MonoFDHandle;
typedef struct {
void (*close) (MonoFDHandle *fdhandle);
void (*destroy) (MonoFDHandle *fdhandle);
} MonoFDHandleCallback;
void
mono_fdhandle_register (MonoFDType type, MonoFDHandleCallback *callback);
void
mono_fdhandle_init (MonoFDHandle *fdhandle, MonoFDType type, gint fd);
void
mono_fdhandle_insert (MonoFDHandle *fdhandle);
gboolean
mono_fdhandle_try_insert (MonoFDHandle *fdhandle);
gboolean
mono_fdhandle_lookup_and_ref (gint fd, MonoFDHandle **fdhandle);
void
mono_fdhandle_unref (MonoFDHandle *fdhandle);
gboolean
mono_fdhandle_close (gint fd);
#endif /* __MONO_METADATA_FDHANDLE_H__ */
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/native/libs/System.Security.Cryptography.Native.Apple/pal_x509_macos.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include "pal_digest.h"
#include "pal_seckey.h"
#include "pal_compiler.h"
#include <pal_x509_types.h>
#include <Security/Security.h>
/*
Read cbData bytes of data from pbData and interpret it to a collection of certificates (or identities).
If cfPfxPassphrase represents the NULL (but not empty) passphrase and a PFX import gets a password
error then the empty passphrase is automatically attempted.
Any private keys will be loaded into the provided keychain. If the keychain is not provided then
a PFX load will read only the public (certificate) values.
Returns 1 on success (including empty PKCS7 collections), 0 on failure, other values indicate invalid state.
Output:
pCollectionOut: Receives an array which contains SecCertificateRef, SecIdentityRef, and possibly other values which were
read out of the provided blob
pOSStatus: Receives the output of SecItemImport for the last attempted read
*/
PALEXPORT int32_t AppleCryptoNative_X509ImportCollection(uint8_t* pbData,
int32_t cbData,
PAL_X509ContentType contentType,
CFStringRef cfPfxPassphrase,
SecKeychainRef keychain,
int32_t exportable,
CFArrayRef* pCollectionOut,
int32_t* pOSStatus);
/*
Read cbData bytes of data from pbData and interpret it to a single certificate (or identity).
For a single X.509 certificate, that certificate is emitted.
For a PKCS#7 blob the signing certificate is returned.
For a PKCS#12 blob (PFX) the first public+private pair found is returned, or the first certificate.
If cfPfxPassphrase represents the NULL (but not empty) passphrase and a PFX import gets a password
error then the empty passphrase is automatically attempted.
Any private keys will be loaded into the provided keychain. If the keychain is not provided then
a PFX load will read only the public (certificate) values.
Returns 1 on success, 0 on failure, -2 on a successful read of an empty collection, other values reprepresent invalid
state.
Output:
pCertOut: If the best matched value was a certificate, receives the SecCertificateRef, otherwise receives NULL
pIdentityOut: If the best matched value was an identity, receives the SecIdentityRef, otherwise receives NULL
pOSStatus: Receives the return of the last call to SecItemImport
*/
PALEXPORT int32_t AppleCryptoNative_X509ImportCertificate(uint8_t* pbData,
int32_t cbData,
PAL_X509ContentType contentType,
CFStringRef cfPfxPassphrase,
SecKeychainRef keychain,
int32_t exportable,
SecCertificateRef* pCertOut,
SecIdentityRef* pIdentityOut,
int32_t* pOSStatus);
/*
Export the certificates (or identities) in data to the requested format type.
Only PKCS#7 and PKCS#12 are supported at this time.
Returns 1 on success, 0 on failure, any other value indicates invalid state.
Output:
pExportOut: Receives a CFDataRef with the exported blob
pOSStatus: Receives the result of SecItemExport
*/
PALEXPORT int32_t AppleCryptoNative_X509ExportData(CFArrayRef data,
PAL_X509ContentType type,
CFStringRef cfExportPassphrase,
CFDataRef* pExportOut,
int32_t* pOSStatus);
/*
Find a SecIdentityRef for the given cert and private key in the target keychain.
If the key does not belong to any keychain it is added to the target keychain and left there.
If the certificate does not belong to the target keychain it is added and removed.
Returns 1 on success, 0 on failure, any other value indicates invalid state.
Output:
pIdentityOut: Receives the SecIdentityRef of the mated cert/key pair.
pOSStatus: Receives the result of the last executed system call.
*/
PALEXPORT int32_t AppleCryptoNative_X509CopyWithPrivateKey(SecCertificateRef cert,
SecKeyRef privateKey,
SecKeychainRef targetKeychain,
SecIdentityRef* pIdentityOut,
int32_t* pOSStatus);
/*
Move the specified certificate and key to the target keychain.
Both the certificate and the key must be ephemeral (not a member of any keychain).
If the private key was specified then search for an identity and present it via pIdentityOut.
Returns 1 on success, 0 on failure, any other value indicates invalid state.
Output:
pIdentityOut: Receives the SecIdentityRef of the mated cert/key pair, when applicable.
pOSStatus: Receives the result of the last executed system call.
*/
PALEXPORT int32_t AppleCryptoNative_X509MoveToKeychain(SecCertificateRef cert,
SecKeychainRef keychain,
SecKeyRef privateKey,
SecIdentityRef* pIdentityOut,
int32_t* pOSStatus);
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include "pal_digest.h"
#include "pal_seckey.h"
#include "pal_compiler.h"
#include <pal_x509_types.h>
#include <Security/Security.h>
/*
Read cbData bytes of data from pbData and interpret it to a collection of certificates (or identities).
If cfPfxPassphrase represents the NULL (but not empty) passphrase and a PFX import gets a password
error then the empty passphrase is automatically attempted.
Any private keys will be loaded into the provided keychain. If the keychain is not provided then
a PFX load will read only the public (certificate) values.
Returns 1 on success (including empty PKCS7 collections), 0 on failure, other values indicate invalid state.
Output:
pCollectionOut: Receives an array which contains SecCertificateRef, SecIdentityRef, and possibly other values which were
read out of the provided blob
pOSStatus: Receives the output of SecItemImport for the last attempted read
*/
PALEXPORT int32_t AppleCryptoNative_X509ImportCollection(uint8_t* pbData,
int32_t cbData,
PAL_X509ContentType contentType,
CFStringRef cfPfxPassphrase,
SecKeychainRef keychain,
int32_t exportable,
CFArrayRef* pCollectionOut,
int32_t* pOSStatus);
/*
Read cbData bytes of data from pbData and interpret it to a single certificate (or identity).
For a single X.509 certificate, that certificate is emitted.
For a PKCS#7 blob the signing certificate is returned.
For a PKCS#12 blob (PFX) the first public+private pair found is returned, or the first certificate.
If cfPfxPassphrase represents the NULL (but not empty) passphrase and a PFX import gets a password
error then the empty passphrase is automatically attempted.
Any private keys will be loaded into the provided keychain. If the keychain is not provided then
a PFX load will read only the public (certificate) values.
Returns 1 on success, 0 on failure, -2 on a successful read of an empty collection, other values reprepresent invalid
state.
Output:
pCertOut: If the best matched value was a certificate, receives the SecCertificateRef, otherwise receives NULL
pIdentityOut: If the best matched value was an identity, receives the SecIdentityRef, otherwise receives NULL
pOSStatus: Receives the return of the last call to SecItemImport
*/
PALEXPORT int32_t AppleCryptoNative_X509ImportCertificate(uint8_t* pbData,
int32_t cbData,
PAL_X509ContentType contentType,
CFStringRef cfPfxPassphrase,
SecKeychainRef keychain,
int32_t exportable,
SecCertificateRef* pCertOut,
SecIdentityRef* pIdentityOut,
int32_t* pOSStatus);
/*
Export the certificates (or identities) in data to the requested format type.
Only PKCS#7 and PKCS#12 are supported at this time.
Returns 1 on success, 0 on failure, any other value indicates invalid state.
Output:
pExportOut: Receives a CFDataRef with the exported blob
pOSStatus: Receives the result of SecItemExport
*/
PALEXPORT int32_t AppleCryptoNative_X509ExportData(CFArrayRef data,
PAL_X509ContentType type,
CFStringRef cfExportPassphrase,
CFDataRef* pExportOut,
int32_t* pOSStatus);
/*
Find a SecIdentityRef for the given cert and private key in the target keychain.
If the key does not belong to any keychain it is added to the target keychain and left there.
If the certificate does not belong to the target keychain it is added and removed.
Returns 1 on success, 0 on failure, any other value indicates invalid state.
Output:
pIdentityOut: Receives the SecIdentityRef of the mated cert/key pair.
pOSStatus: Receives the result of the last executed system call.
*/
PALEXPORT int32_t AppleCryptoNative_X509CopyWithPrivateKey(SecCertificateRef cert,
SecKeyRef privateKey,
SecKeychainRef targetKeychain,
SecIdentityRef* pIdentityOut,
int32_t* pOSStatus);
/*
Move the specified certificate and key to the target keychain.
Both the certificate and the key must be ephemeral (not a member of any keychain).
If the private key was specified then search for an identity and present it via pIdentityOut.
Returns 1 on success, 0 on failure, any other value indicates invalid state.
Output:
pIdentityOut: Receives the SecIdentityRef of the mated cert/key pair, when applicable.
pOSStatus: Receives the result of the last executed system call.
*/
PALEXPORT int32_t AppleCryptoNative_X509MoveToKeychain(SecCertificateRef cert,
SecKeychainRef keychain,
SecKeyRef privateKey,
SecIdentityRef* pIdentityOut,
int32_t* pOSStatus);
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./eng/targetingpacks.targets
|
<!--
The following properties need to be set for this logic to work correctly:
- ProductVersion
- NetCoreAppCurrent
- NetCoreAppCurrentVersion
- MicrosoftNetCoreAppFrameworkName
- MicrosoftNetCoreAppRefPackDir
- optional: MicrosoftNetCoreAppRuntimePackDir
-->
<Project>
<PropertyGroup>
<LocalFrameworkOverrideName>$(MicrosoftNetCoreAppFrameworkName)</LocalFrameworkOverrideName>
<TargetingpacksTargetsImported>true</TargetingpacksTargetsImported>
</PropertyGroup>
<PropertyGroup Condition="'$(DisableImplicitFrameworkReferences)' != 'true' and
'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '$(NetCoreAppCurrentVersion)'))">
<UseLocalTargetingRuntimePack Condition="'$(UseLocalTargetingRuntimePack)' == ''">true</UseLocalTargetingRuntimePack>
<!-- Tests don't yet use a live build of the apphost: https://github.com/dotnet/runtime/issues/58109. -->
<UseLocalAppHostPack Condition="'$(UseLocalAppHostPack)' == ''">false</UseLocalAppHostPack>
<EnableTargetingPackDownload>false</EnableTargetingPackDownload>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<!-- Hardcode the apphost version until the SDK understands the net7.0 tfm. -->
<_AppHostBaselinePackVersion Condition="'$(UseLocalAppHostPack)' != 'true'">6.0.0-rc.1.21411.2</_AppHostBaselinePackVersion>
</PropertyGroup>
<!-- Add Known* items if the SDK doesn't support the TargetFramework yet. -->
<ItemGroup Condition="'$(UseLocalTargetingRuntimePack)' == 'true'">
<KnownFrameworkReference Include="$(LocalFrameworkOverrideName)"
DefaultRuntimeFrameworkVersion="$(ProductVersion)"
LatestRuntimeFrameworkVersion="$(ProductVersion)"
RuntimeFrameworkName="$(LocalFrameworkOverrideName)"
RuntimePackNamePatterns="$(LocalFrameworkOverrideName).Runtime.**RID**"
RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-loongarch64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;maccatalyst-x64;maccatalyst-arm64"
TargetFramework="$(NetCoreAppCurrent)"
TargetingPackName="$(LocalFrameworkOverrideName).Ref"
TargetingPackVersion="$(ProductVersion)"
Condition="'@(KnownFrameworkReference)' == '' or !@(KnownFrameworkReference->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
<KnownRuntimePack Include="$(LocalFrameworkOverrideName)"
TargetFramework="$(NetCoreAppCurrent)"
RuntimeFrameworkName="$(LocalFrameworkOverrideName)"
LatestRuntimeFrameworkVersion="$(ProductVersion)"
RuntimePackNamePatterns="$(LocalFrameworkOverrideName).Runtime.Mono.**RID**"
RuntimePackRuntimeIdentifiers="linux-arm;linux-armv6;linux-arm64;linux-musl-arm64;linux-loongarch64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;maccatalyst-x64;maccatalyst-arm64;browser-wasm;ios-arm64;ios-arm;iossimulator-arm64;iossimulator-x64;iossimulator-x86;tvos-arm64;tvossimulator-arm64;tvossimulator-x64;android-arm64;android-arm;android-x64;android-x86"
RuntimePackLabels="Mono"
Condition="'@(KnownRuntimePack)' == '' or !@(KnownRuntimePack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))"/>
<KnownAppHostPack Include="$(LocalFrameworkOverrideName)"
AppHostPackNamePattern="$(LocalFrameworkOverrideName).Host.**RID**"
AppHostPackVersion="$([MSBuild]::ValueOrDefault('$(_AppHostBaselinePackVersion)', '$(ProductVersion)'))"
AppHostRuntimeIdentifiers="linux-arm;linux-armv6;linux-arm64;linux-musl-arm64;linux-loongarch64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64"
TargetFramework="$(NetCoreAppCurrent)"
Condition="'@(KnownAppHostPack)' == '' or !@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
<KnownCrossgen2Pack Include="$(LocalFrameworkOverrideName).Crossgen2"
TargetFramework="$(NetCoreAppCurrent)"
Crossgen2PackNamePattern="$(LocalFrameworkOverrideName).Crossgen2.**RID**"
Crossgen2PackVersion="$(ProductVersion)"
Crossgen2RuntimeIdentifiers="linux-musl-x64;linux-x64;win-x64"
Condition="'@(KnownCrossgen2Pack)' == '' or !@(KnownCrossgen2Pack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
</ItemGroup>
<!-- Simple name references will be resolved from the targeting pack folders and should never be copied to the output. -->
<ItemGroup>
<Reference Update="@(Reference)">
<Private Condition="'%(Reference.Extension)' != '.dll'">false</Private>
</Reference>
</ItemGroup>
<!-- DisableImplicitAssemblyReferences support. -->
<Target Name="RemoveFrameworkReferences"
BeforeTargets="_HandlePackageFileConflicts"
AfterTargets="ResolveTargetingPackAssets"
Condition="'$(DisableImplicitAssemblyReferences)' == 'true' and
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<!-- Point MicrosoftNetCoreAppRefPackRefDir to the acquired targeting pack to use it later for AssemblySearchPaths resolution. -->
<PropertyGroup Condition="'$(UseLocalTargetingRuntimePack)' != 'true'">
<MicrosoftNetCoreAppRefPackRefDir>%(ResolvedFrameworkReference.TargetingPackPath)\ref\net$(TargetFrameworkVersion.TrimStart('v'))\</MicrosoftNetCoreAppRefPackRefDir>
</PropertyGroup>
<ItemGroup>
<Reference Remove="@(Reference)"
Condition="'%(Reference.FrameworkReferenceName)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
<!-- Add the resolved targeting pack to the assembly search path. -->
<Target Name="UseTargetingPackForAssemblySearchPaths"
BeforeTargets="ResolveAssemblyReferences;
DesignTimeResolveAssemblyReferences"
Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<PropertyGroup>
<AssemblySearchPaths>$(AssemblySearchPaths);$(MicrosoftNetCoreAppRefPackRefDir.TrimEnd('/\'))</AssemblySearchPaths>
<DesignTimeAssemblySearchPaths>$(DesignTimeAssemblySearchPaths);$(MicrosoftNetCoreAppRefPackRefDir.TrimEnd('/\'))</DesignTimeAssemblySearchPaths>
</PropertyGroup>
</Target>
<!-- SDK tries to download runtime packs when RuntimeIdentifier is set, remove them from PackageDownload item. -->
<Target Name="RemoveRuntimePackFromDownloadItem"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ProcessFrameworkReferences">
<ItemGroup>
<PackageDownload Remove="@(PackageDownload)"
Condition="'$(UsePackageDownload)' == 'true' and $([System.String]::Copy('%(Identity)').StartsWith('$(LocalFrameworkOverrideName).Runtime'))" />
<PackageReference Remove="@(PackageReference)"
Condition="'$(UsePackageDownload)' != 'true' and $([System.String]::Copy('%(Identity)').StartsWith('$(LocalFrameworkOverrideName).Runtime'))" />
</ItemGroup>
</Target>
<!-- Use local targeting/runtime pack for NetCoreAppCurrent. -->
<Target Name="UpdateTargetingAndRuntimePack"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ResolveFrameworkReferences">
<ItemGroup>
<ResolvedTargetingPack Path="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
NuGetPackageVersion="$(ProductVersion)"
PackageDirectory="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
Condition="'%(ResolvedTargetingPack.RuntimeFrameworkName)' == '$(LocalFrameworkOverrideName)' and
Exists('$(MicrosoftNetCoreAppRefPackDir)data\FrameworkList.xml')" />
<ResolvedRuntimePack PackageDirectory="$(MicrosoftNetCoreAppRuntimePackDir)"
Condition="'$(MicrosoftNetCoreAppRuntimePackDir)' != '' and
'%(ResolvedRuntimePack.FrameworkName)' == '$(LocalFrameworkOverrideName)'" />
<ResolvedFrameworkReference TargetingPackPath="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
TargetingPackVersion="$(ProductVersion)"
Condition="'%(Identity)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
<!-- Update the local targeting pack's version as it's written into the runtimeconfig.json file to select the right framework. -->
<Target Name="UpdateRuntimeFrameworkVersion"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ResolveTargetingPackAssets">
<ItemGroup>
<RuntimeFramework Version="$(ProductVersion)"
Condition="'%(RuntimeFramework.FrameworkName)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
<!-- Filter out conflicting implicit assembly references. -->
<Target Name="FilterImplicitAssemblyReferences"
Condition="'$(DisableImplicitAssemblyReferences)' != 'true'"
DependsOnTargets="ResolveProjectReferences"
AfterTargets="ResolveTargetingPackAssets">
<ItemGroup>
<_targetingPackReferenceExclusion Include="$(TargetName)" />
<_targetingPackReferenceExclusion Include="@(_ResolvedProjectReferencePaths->Metadata('Filename'))" />
<_targetingPackReferenceExclusion Include="@(DefaultReferenceExclusion)" />
</ItemGroup>
<!-- Filter out shims from the targeting pack references as an opt-in. -->
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
'$(SkipTargetingPackShimReferences)' == 'true'">
<_targetingPackReferenceExclusion Include="@(NetFxReference)" />
<_targetingPackReferenceExclusion Include="netstandard" />
</ItemGroup>
<ItemGroup>
<_targetingPackReferenceWithProjectName Include="@(Reference->WithMetadataValue('ExternallyResolved', 'true')->Metadata('Filename'))"
OriginalIdentity="%(Identity)" />
<_targetingPackIncludedReferenceWithProjectName Include="@(_targetingPackReferenceWithProjectName)"
Exclude="@(_targetingPackReferenceExclusion)" />
<_targetingPackExcludedReferenceWithProjectName Include="@(_targetingPackReferenceWithProjectName)"
Exclude="@(_targetingPackIncludedReferenceWithProjectName)" />
<Reference Remove="@(_targetingPackExcludedReferenceWithProjectName->Metadata('OriginalIdentity'))" />
</ItemGroup>
</Target>
</Project>
|
<!--
The following properties need to be set for this logic to work correctly:
- ProductVersion
- NetCoreAppCurrent
- NetCoreAppCurrentVersion
- MicrosoftNetCoreAppFrameworkName
- MicrosoftNetCoreAppRefPackDir
- optional: MicrosoftNetCoreAppRuntimePackDir
-->
<Project>
<PropertyGroup>
<LocalFrameworkOverrideName>$(MicrosoftNetCoreAppFrameworkName)</LocalFrameworkOverrideName>
<TargetingpacksTargetsImported>true</TargetingpacksTargetsImported>
</PropertyGroup>
<PropertyGroup Condition="'$(DisableImplicitFrameworkReferences)' != 'true' and
'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '$(NetCoreAppCurrentVersion)'))">
<UseLocalTargetingRuntimePack Condition="'$(UseLocalTargetingRuntimePack)' == ''">true</UseLocalTargetingRuntimePack>
<!-- Tests don't yet use a live build of the apphost: https://github.com/dotnet/runtime/issues/58109. -->
<UseLocalAppHostPack Condition="'$(UseLocalAppHostPack)' == ''">false</UseLocalAppHostPack>
<EnableTargetingPackDownload>false</EnableTargetingPackDownload>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<!-- Hardcode the apphost version until the SDK understands the net7.0 tfm. -->
<_AppHostBaselinePackVersion Condition="'$(UseLocalAppHostPack)' != 'true'">6.0.0-rc.1.21411.2</_AppHostBaselinePackVersion>
</PropertyGroup>
<!-- Add Known* items if the SDK doesn't support the TargetFramework yet. -->
<ItemGroup Condition="'$(UseLocalTargetingRuntimePack)' == 'true'">
<KnownFrameworkReference Include="$(LocalFrameworkOverrideName)"
DefaultRuntimeFrameworkVersion="$(ProductVersion)"
LatestRuntimeFrameworkVersion="$(ProductVersion)"
RuntimeFrameworkName="$(LocalFrameworkOverrideName)"
RuntimePackNamePatterns="$(LocalFrameworkOverrideName).Runtime.**RID**"
RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-loongarch64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;maccatalyst-x64;maccatalyst-arm64"
TargetFramework="$(NetCoreAppCurrent)"
TargetingPackName="$(LocalFrameworkOverrideName).Ref"
TargetingPackVersion="$(ProductVersion)"
Condition="'@(KnownFrameworkReference)' == '' or !@(KnownFrameworkReference->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
<KnownRuntimePack Include="$(LocalFrameworkOverrideName)"
TargetFramework="$(NetCoreAppCurrent)"
RuntimeFrameworkName="$(LocalFrameworkOverrideName)"
LatestRuntimeFrameworkVersion="$(ProductVersion)"
RuntimePackNamePatterns="$(LocalFrameworkOverrideName).Runtime.Mono.**RID**"
RuntimePackRuntimeIdentifiers="linux-arm;linux-armv6;linux-arm64;linux-musl-arm64;linux-loongarch64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;maccatalyst-x64;maccatalyst-arm64;browser-wasm;ios-arm64;ios-arm;iossimulator-arm64;iossimulator-x64;iossimulator-x86;tvos-arm64;tvossimulator-arm64;tvossimulator-x64;android-arm64;android-arm;android-x64;android-x86"
RuntimePackLabels="Mono"
Condition="'@(KnownRuntimePack)' == '' or !@(KnownRuntimePack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))"/>
<KnownAppHostPack Include="$(LocalFrameworkOverrideName)"
AppHostPackNamePattern="$(LocalFrameworkOverrideName).Host.**RID**"
AppHostPackVersion="$([MSBuild]::ValueOrDefault('$(_AppHostBaselinePackVersion)', '$(ProductVersion)'))"
AppHostRuntimeIdentifiers="linux-arm;linux-armv6;linux-arm64;linux-musl-arm64;linux-loongarch64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64"
TargetFramework="$(NetCoreAppCurrent)"
Condition="'@(KnownAppHostPack)' == '' or !@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
<KnownCrossgen2Pack Include="$(LocalFrameworkOverrideName).Crossgen2"
TargetFramework="$(NetCoreAppCurrent)"
Crossgen2PackNamePattern="$(LocalFrameworkOverrideName).Crossgen2.**RID**"
Crossgen2PackVersion="$(ProductVersion)"
Crossgen2RuntimeIdentifiers="linux-musl-x64;linux-x64;win-x64"
Condition="'@(KnownCrossgen2Pack)' == '' or !@(KnownCrossgen2Pack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
</ItemGroup>
<!-- Simple name references will be resolved from the targeting pack folders and should never be copied to the output. -->
<ItemGroup>
<Reference Update="@(Reference)">
<Private Condition="'%(Reference.Extension)' != '.dll'">false</Private>
</Reference>
</ItemGroup>
<!-- DisableImplicitAssemblyReferences support. -->
<Target Name="RemoveFrameworkReferences"
BeforeTargets="_HandlePackageFileConflicts"
AfterTargets="ResolveTargetingPackAssets"
Condition="'$(DisableImplicitAssemblyReferences)' == 'true' and
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<!-- Point MicrosoftNetCoreAppRefPackRefDir to the acquired targeting pack to use it later for AssemblySearchPaths resolution. -->
<PropertyGroup Condition="'$(UseLocalTargetingRuntimePack)' != 'true'">
<MicrosoftNetCoreAppRefPackRefDir>%(ResolvedFrameworkReference.TargetingPackPath)\ref\net$(TargetFrameworkVersion.TrimStart('v'))\</MicrosoftNetCoreAppRefPackRefDir>
</PropertyGroup>
<ItemGroup>
<Reference Remove="@(Reference)"
Condition="'%(Reference.FrameworkReferenceName)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
<!-- Add the resolved targeting pack to the assembly search path. -->
<Target Name="UseTargetingPackForAssemblySearchPaths"
BeforeTargets="ResolveAssemblyReferences;
DesignTimeResolveAssemblyReferences"
Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<PropertyGroup>
<AssemblySearchPaths>$(AssemblySearchPaths);$(MicrosoftNetCoreAppRefPackRefDir.TrimEnd('/\'))</AssemblySearchPaths>
<DesignTimeAssemblySearchPaths>$(DesignTimeAssemblySearchPaths);$(MicrosoftNetCoreAppRefPackRefDir.TrimEnd('/\'))</DesignTimeAssemblySearchPaths>
</PropertyGroup>
</Target>
<!-- SDK tries to download runtime packs when RuntimeIdentifier is set, remove them from PackageDownload item. -->
<Target Name="RemoveRuntimePackFromDownloadItem"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ProcessFrameworkReferences">
<ItemGroup>
<PackageDownload Remove="@(PackageDownload)"
Condition="'$(UsePackageDownload)' == 'true' and $([System.String]::Copy('%(Identity)').StartsWith('$(LocalFrameworkOverrideName).Runtime'))" />
<PackageReference Remove="@(PackageReference)"
Condition="'$(UsePackageDownload)' != 'true' and $([System.String]::Copy('%(Identity)').StartsWith('$(LocalFrameworkOverrideName).Runtime'))" />
</ItemGroup>
</Target>
<!-- Use local targeting/runtime pack for NetCoreAppCurrent. -->
<Target Name="UpdateTargetingAndRuntimePack"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ResolveFrameworkReferences">
<ItemGroup>
<ResolvedTargetingPack Path="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
NuGetPackageVersion="$(ProductVersion)"
PackageDirectory="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
Condition="'%(ResolvedTargetingPack.RuntimeFrameworkName)' == '$(LocalFrameworkOverrideName)' and
Exists('$(MicrosoftNetCoreAppRefPackDir)data\FrameworkList.xml')" />
<ResolvedRuntimePack PackageDirectory="$(MicrosoftNetCoreAppRuntimePackDir)"
Condition="'$(MicrosoftNetCoreAppRuntimePackDir)' != '' and
'%(ResolvedRuntimePack.FrameworkName)' == '$(LocalFrameworkOverrideName)'" />
<ResolvedFrameworkReference TargetingPackPath="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
TargetingPackVersion="$(ProductVersion)"
Condition="'%(Identity)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
<!-- Update the local targeting pack's version as it's written into the runtimeconfig.json file to select the right framework. -->
<Target Name="UpdateRuntimeFrameworkVersion"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ResolveTargetingPackAssets">
<ItemGroup>
<RuntimeFramework Version="$(ProductVersion)"
Condition="'%(RuntimeFramework.FrameworkName)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
<!-- Filter out conflicting implicit assembly references. -->
<Target Name="FilterImplicitAssemblyReferences"
Condition="'$(DisableImplicitAssemblyReferences)' != 'true'"
DependsOnTargets="ResolveProjectReferences"
AfterTargets="ResolveTargetingPackAssets">
<ItemGroup>
<_targetingPackReferenceExclusion Include="$(TargetName)" />
<_targetingPackReferenceExclusion Include="@(_ResolvedProjectReferencePaths->Metadata('Filename'))" />
<_targetingPackReferenceExclusion Include="@(DefaultReferenceExclusion)" />
</ItemGroup>
<!-- Filter out shims from the targeting pack references as an opt-in. -->
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
'$(SkipTargetingPackShimReferences)' == 'true'">
<_targetingPackReferenceExclusion Include="@(NetFxReference)" />
<_targetingPackReferenceExclusion Include="netstandard" />
</ItemGroup>
<ItemGroup>
<_targetingPackReferenceWithProjectName Include="@(Reference->WithMetadataValue('ExternallyResolved', 'true')->Metadata('Filename'))"
OriginalIdentity="%(Identity)" />
<_targetingPackIncludedReferenceWithProjectName Include="@(_targetingPackReferenceWithProjectName)"
Exclude="@(_targetingPackReferenceExclusion)" />
<_targetingPackExcludedReferenceWithProjectName Include="@(_targetingPackReferenceWithProjectName)"
Exclude="@(_targetingPackIncludedReferenceWithProjectName)" />
<Reference Remove="@(_targetingPackExcludedReferenceWithProjectName->Metadata('OriginalIdentity'))" />
</ItemGroup>
</Target>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/inc/eventtrace.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// File: eventtrace.h
// Abstract: This module implements Event Tracing support. This includes
// eventtracebase.h, and adds VM-specific ETW helpers to support features like type
// logging, allocation logging, and gc heap walk logging.
//
//
//
//
// #EventTracing
// Windows
// ETW (Event Tracing for Windows) is a high-performance, low overhead and highly scalable
// tracing facility provided by the Windows Operating System. ETW is available on Win2K and above. There are
// four main types of components in ETW: event providers, controllers, consumers, and event trace sessions.
// An event provider is a logical entity that writes events to ETW sessions. The event provider must register
// a provider ID with ETW through the registration API. A provider first registers with ETW and writes events
// from various points in the code by invoking the ETW logging API. When a provider is enabled dynamically by
// the ETW controller application, calls to the logging API sends events to a specific trace session
// designated by the controller. Each event sent by the event provider to the trace session consists of a
// fixed header that includes event metadata and additional variable user-context data. CLR is an event
// provider.
// Mac
// DTrace is similar to ETW and has been made to look like ETW at most of the places.
// For convenience, it is called ETM (Event Tracing for Mac) and exists only on the Mac Leopard OS
// ============================================================================
#ifndef _VMEVENTTRACE_H_
#define _VMEVENTTRACE_H_
#include "eventtracebase.h"
#include "gcinterface.h"
#if defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE)
struct ProfilingScanContext : ScanContext
{
BOOL fProfilerPinned;
void * pvEtwContext;
void *pHeapId;
ProfilingScanContext(BOOL fProfilerPinnedParam) : ScanContext()
{
LIMITED_METHOD_CONTRACT;
pHeapId = NULL;
fProfilerPinned = fProfilerPinnedParam;
pvEtwContext = NULL;
#ifdef FEATURE_CONSERVATIVE_GC
// To not confuse GCScan::GcScanRoots
promotion = g_pConfig->GetGCConservative();
#endif
}
};
#endif // defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE)
#ifndef FEATURE_REDHAWK
namespace ETW
{
class LoggedTypesFromModule;
// We keep a hash of these to keep track of:
// * Which types have been logged through ETW (so we can avoid logging dupe Type
// events), and
// * GCSampledObjectAllocation stats to help with "smart sampling" which
// dynamically adjusts sampling rate of objects by type.
// See code:LoggedTypesFromModuleTraits
struct TypeLoggingInfo
{
public:
TypeLoggingInfo(TypeHandle thParam)
{
Init(thParam);
}
TypeLoggingInfo()
{
Init(TypeHandle());
}
void Init(TypeHandle thParam)
{
th = thParam;
dwTickOfCurrentTimeBucket = 0;
dwAllocCountInCurrentBucket = 0;
flAllocPerMSec = 0;
dwAllocsToSkipPerSample = 0;
dwAllocsSkippedForSample = 0;
cbIgnoredSizeForSample = 0;
};
// The type this TypeLoggingInfo represents
TypeHandle th;
// Smart sampling
// These bucket values remember stats of a particular time slice that are used to
// help adjust the sampling rate
DWORD dwTickOfCurrentTimeBucket;
DWORD dwAllocCountInCurrentBucket;
float flAllocPerMSec;
// The number of data points to ignore before taking a "sample" (i.e., logging a
// GCSampledObjectAllocation ETW event for this type)
DWORD dwAllocsToSkipPerSample;
// The current number of data points actually ignored for the current sample
DWORD dwAllocsSkippedForSample;
// The current count of bytes of objects of this type actually allocated (and
// ignored) for the current sample
SIZE_T cbIgnoredSizeForSample;
};
// Class to wrap all type system logic for ETW
class TypeSystemLog
{
private:
// Global type hash
static AllLoggedTypes *s_pAllLoggedTypes;
// An unsigned value that gets incremented whenever a global change is made.
// When this occurs, threads must synchronize themselves with the global state.
// Examples include unloading of modules and disabling of allocation sampling.
static unsigned int s_nEpoch;
// See code:ETW::TypeSystemLog::PostRegistrationInit
static BOOL s_fHeapAllocEventEnabledOnStartup;
static BOOL s_fHeapAllocHighEventEnabledNow;
static BOOL s_fHeapAllocLowEventEnabledNow;
// If COMPLUS_UNSUPPORTED_ETW_ObjectAllocationEventsPerTypePerSec is set, then
// this is used to determine the event frequency, overriding
// s_nDefaultMsBetweenEvents above (regardless of which
// GCSampledObjectAllocation*Keyword was used)
static int s_nCustomMsBetweenEvents;
public:
// This customizes the type logging behavior in LogTypeAndParametersIfNecessary
enum TypeLogBehavior
{
// Take lock, and consult hash table to see if this is the first time we've
// encountered the type, in which case, log it
kTypeLogBehaviorTakeLockAndLogIfFirstTime,
// Don't take lock, don't consult hash table. Just log the type. (This is
// used in cases when checking for dupe type logging isn't worth it, such as
// when logging the finalization of an object.)
kTypeLogBehaviorAlwaysLog,
// When logging the type for GCSampledObjectAllocation events,
// we already know we need to log the type (since we already
// looked it up in the hash). But we would still need to consult the hash
// for any type parameters, so kTypeLogBehaviorAlwaysLog isn't appropriate,
// and this is used instead.
kTypeLogBehaviorAlwaysLogTopLevelType,
};
static HRESULT PreRegistrationInit();
static void PostRegistrationInit();
static BOOL IsHeapAllocEventEnabled();
static void SendObjectAllocatedEvent(Object * pObject);
static CrstBase * GetHashCrst();
static VOID LogTypeAndParametersIfNecessary(BulkTypeEventLogger * pBulkTypeEventLogger, ULONGLONG thAsAddr, TypeLogBehavior typeLogBehavior);
static VOID OnModuleUnload(Module * pModule);
static void OnKeywordsChanged();
static void Cleanup();
static VOID DeleteTypeHashNoLock(AllLoggedTypes **ppAllLoggedTypes);
static VOID FlushObjectAllocationEvents();
static UINT32 TypeLoadBegin();
static VOID TypeLoadEnd(UINT32 typeLoad, TypeHandle th, UINT16 loadLevel);
private:
static BOOL ShouldLogType(TypeHandle th);
static TypeLoggingInfo LookupOrCreateTypeLoggingInfo(TypeHandle th, BOOL * pfCreatedNew, LoggedTypesFromModule ** ppLoggedTypesFromModule = NULL);
static BOOL AddTypeToGlobalCacheIfNotExists(TypeHandle th, BOOL * pfCreatedNew);
static BOOL AddOrReplaceTypeLoggingInfo(ETW::LoggedTypesFromModule * pLoggedTypesFromModule, const ETW::TypeLoggingInfo * pTypeLoggingInfo);
static int GetDefaultMsBetweenEvents();
static VOID OnTypesKeywordTurnedOff();
};
#endif // FEATURE_REDHAWK
// Class to wrap all GC logic for ETW
class GCLog
{
private:
// When WPA triggers a GC, it gives us this unique number to append to our
// GCStart event so WPA can correlate the CLR's GC with the JScript GC they
// triggered at the same time.
//
// We set this value when the GC is triggered, and then retrieve the value on the
// first subsequent FireGcStart() method call for a full, induced GC, assuming
// that that's the GC that WPA triggered. This is imperfect, and if we were in
// the act of beginning another full, induced GC (for some other reason), then
// we'll attach this sequence number to that GC instead of to the WPA-induced GC,
// but who cares? When parsing ETW logs later on, it's indistinguishable if both
// GCs really were induced at around the same time.
#ifdef FEATURE_REDHAWK
static volatile LONGLONG s_l64LastClientSequenceNumber;
#else // FEATURE_REDHAWK
static Volatile<LONGLONG> s_l64LastClientSequenceNumber;
#endif // FEATURE_REDHAWK
public:
typedef union st_GCEventInfo {
// These values are gotten from the gc_reason
// in gcimpl.h
typedef enum _GC_REASON {
GC_ALLOC_SOH = 0,
GC_INDUCED = 1,
GC_LOWMEMORY = 2,
GC_EMPTY = 3,
GC_ALLOC_LOH = 4,
GC_OOS_SOH = 5,
GC_OOS_LOH = 6,
GC_INDUCED_NOFORCE = 7,
GC_GCSTRESS = 8,
GC_LOWMEMORY_BLOCKING = 9,
GC_INDUCED_COMPACTING = 10,
GC_LOWMEMORY_HOST = 11
} GC_REASON;
typedef enum _GC_TYPE {
GC_NGC = 0,
GC_BGC = 1,
GC_FGC = 2
} GC_TYPE;
struct {
ULONG Count;
ULONG Depth;
GC_REASON Reason;
GC_TYPE Type;
} GCStart;
struct {
ULONG Reason;
// This is only valid when SuspendEE is called by GC (ie, Reason is either
// SUSPEND_FOR_GC or SUSPEND_FOR_GC_PREP.
ULONG GcCount;
} SuspendEE;
struct {
ULONGLONG SegmentSize;
ULONGLONG LargeObjectSegmentSize;
BOOL ServerGC; // TRUE means it's server GC; FALSE means it's workstation.
} GCSettings;
} ETW_GC_INFO, *PETW_GC_INFO;
#ifdef FEATURE_EVENT_TRACE
static VOID GCSettingsEvent();
#else
static VOID GCSettingsEvent() {};
#endif // FEATURE_EVENT_TRACE
static BOOL ShouldWalkHeapObjectsForEtw();
static BOOL ShouldWalkHeapRootsForEtw();
static BOOL ShouldTrackMovementForEtw();
static HRESULT ForceGCForDiagnostics();
static VOID ForceGC(LONGLONG l64ClientSequenceNumber);
static VOID FireGcStart(ETW_GC_INFO * pGcInfo);
static VOID RootReference(
LPVOID pvHandle,
Object * pRootedNode,
Object * pSecondaryNodeForDependentHandle,
BOOL fDependentHandle,
ProfilingScanContext * profilingScanContext,
DWORD dwGCFlags,
DWORD rootFlags);
static VOID ObjectReference(
ProfilerWalkHeapContext * profilerWalkHeapContext,
Object * pObjReferenceSource,
ULONGLONG typeID,
ULONGLONG cRefs,
Object ** rgObjReferenceTargets);
static BOOL ShouldWalkStaticsAndCOMForEtw();
static VOID WalkStaticsAndCOMForETW();
static VOID EndHeapDump(ProfilerWalkHeapContext * profilerWalkHeapContext);
#ifdef FEATURE_EVENT_TRACE
static VOID BeginMovedReferences(size_t * pProfilingContext);
static VOID MovedReference(BYTE * pbMemBlockStart, BYTE * pbMemBlockEnd, ptrdiff_t cbRelocDistance, size_t profilingContext, BOOL fCompacting, BOOL fAllowProfApiNotification = TRUE);
static VOID EndMovedReferences(size_t profilingContext, BOOL fAllowProfApiNotification = TRUE);
#else
// TODO: Need to be implemented for PROFILING_SUPPORTED.
static VOID BeginMovedReferences(size_t * pProfilingContext) {};
static VOID MovedReference(BYTE * pbMemBlockStart, BYTE * pbMemBlockEnd, ptrdiff_t cbRelocDistance, size_t profilingContext, BOOL fCompacting, BOOL fAllowProfApiNotification = TRUE) {};
static VOID EndMovedReferences(size_t profilingContext, BOOL fAllowProfApiNotification = TRUE) {};
#endif // FEATURE_EVENT_TRACE
static VOID SendFinalizeObjectEvent(MethodTable * pMT, Object * pObj);
};
};
#endif //_VMEVENTTRACE_H_
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// File: eventtrace.h
// Abstract: This module implements Event Tracing support. This includes
// eventtracebase.h, and adds VM-specific ETW helpers to support features like type
// logging, allocation logging, and gc heap walk logging.
//
//
//
//
// #EventTracing
// Windows
// ETW (Event Tracing for Windows) is a high-performance, low overhead and highly scalable
// tracing facility provided by the Windows Operating System. ETW is available on Win2K and above. There are
// four main types of components in ETW: event providers, controllers, consumers, and event trace sessions.
// An event provider is a logical entity that writes events to ETW sessions. The event provider must register
// a provider ID with ETW through the registration API. A provider first registers with ETW and writes events
// from various points in the code by invoking the ETW logging API. When a provider is enabled dynamically by
// the ETW controller application, calls to the logging API sends events to a specific trace session
// designated by the controller. Each event sent by the event provider to the trace session consists of a
// fixed header that includes event metadata and additional variable user-context data. CLR is an event
// provider.
// Mac
// DTrace is similar to ETW and has been made to look like ETW at most of the places.
// For convenience, it is called ETM (Event Tracing for Mac) and exists only on the Mac Leopard OS
// ============================================================================
#ifndef _VMEVENTTRACE_H_
#define _VMEVENTTRACE_H_
#include "eventtracebase.h"
#include "gcinterface.h"
#if defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE)
struct ProfilingScanContext : ScanContext
{
BOOL fProfilerPinned;
void * pvEtwContext;
void *pHeapId;
ProfilingScanContext(BOOL fProfilerPinnedParam) : ScanContext()
{
LIMITED_METHOD_CONTRACT;
pHeapId = NULL;
fProfilerPinned = fProfilerPinnedParam;
pvEtwContext = NULL;
#ifdef FEATURE_CONSERVATIVE_GC
// To not confuse GCScan::GcScanRoots
promotion = g_pConfig->GetGCConservative();
#endif
}
};
#endif // defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE)
#ifndef FEATURE_REDHAWK
namespace ETW
{
class LoggedTypesFromModule;
// We keep a hash of these to keep track of:
// * Which types have been logged through ETW (so we can avoid logging dupe Type
// events), and
// * GCSampledObjectAllocation stats to help with "smart sampling" which
// dynamically adjusts sampling rate of objects by type.
// See code:LoggedTypesFromModuleTraits
struct TypeLoggingInfo
{
public:
TypeLoggingInfo(TypeHandle thParam)
{
Init(thParam);
}
TypeLoggingInfo()
{
Init(TypeHandle());
}
void Init(TypeHandle thParam)
{
th = thParam;
dwTickOfCurrentTimeBucket = 0;
dwAllocCountInCurrentBucket = 0;
flAllocPerMSec = 0;
dwAllocsToSkipPerSample = 0;
dwAllocsSkippedForSample = 0;
cbIgnoredSizeForSample = 0;
};
// The type this TypeLoggingInfo represents
TypeHandle th;
// Smart sampling
// These bucket values remember stats of a particular time slice that are used to
// help adjust the sampling rate
DWORD dwTickOfCurrentTimeBucket;
DWORD dwAllocCountInCurrentBucket;
float flAllocPerMSec;
// The number of data points to ignore before taking a "sample" (i.e., logging a
// GCSampledObjectAllocation ETW event for this type)
DWORD dwAllocsToSkipPerSample;
// The current number of data points actually ignored for the current sample
DWORD dwAllocsSkippedForSample;
// The current count of bytes of objects of this type actually allocated (and
// ignored) for the current sample
SIZE_T cbIgnoredSizeForSample;
};
// Class to wrap all type system logic for ETW
class TypeSystemLog
{
private:
// Global type hash
static AllLoggedTypes *s_pAllLoggedTypes;
// An unsigned value that gets incremented whenever a global change is made.
// When this occurs, threads must synchronize themselves with the global state.
// Examples include unloading of modules and disabling of allocation sampling.
static unsigned int s_nEpoch;
// See code:ETW::TypeSystemLog::PostRegistrationInit
static BOOL s_fHeapAllocEventEnabledOnStartup;
static BOOL s_fHeapAllocHighEventEnabledNow;
static BOOL s_fHeapAllocLowEventEnabledNow;
// If COMPLUS_UNSUPPORTED_ETW_ObjectAllocationEventsPerTypePerSec is set, then
// this is used to determine the event frequency, overriding
// s_nDefaultMsBetweenEvents above (regardless of which
// GCSampledObjectAllocation*Keyword was used)
static int s_nCustomMsBetweenEvents;
public:
// This customizes the type logging behavior in LogTypeAndParametersIfNecessary
enum TypeLogBehavior
{
// Take lock, and consult hash table to see if this is the first time we've
// encountered the type, in which case, log it
kTypeLogBehaviorTakeLockAndLogIfFirstTime,
// Don't take lock, don't consult hash table. Just log the type. (This is
// used in cases when checking for dupe type logging isn't worth it, such as
// when logging the finalization of an object.)
kTypeLogBehaviorAlwaysLog,
// When logging the type for GCSampledObjectAllocation events,
// we already know we need to log the type (since we already
// looked it up in the hash). But we would still need to consult the hash
// for any type parameters, so kTypeLogBehaviorAlwaysLog isn't appropriate,
// and this is used instead.
kTypeLogBehaviorAlwaysLogTopLevelType,
};
static HRESULT PreRegistrationInit();
static void PostRegistrationInit();
static BOOL IsHeapAllocEventEnabled();
static void SendObjectAllocatedEvent(Object * pObject);
static CrstBase * GetHashCrst();
static VOID LogTypeAndParametersIfNecessary(BulkTypeEventLogger * pBulkTypeEventLogger, ULONGLONG thAsAddr, TypeLogBehavior typeLogBehavior);
static VOID OnModuleUnload(Module * pModule);
static void OnKeywordsChanged();
static void Cleanup();
static VOID DeleteTypeHashNoLock(AllLoggedTypes **ppAllLoggedTypes);
static VOID FlushObjectAllocationEvents();
static UINT32 TypeLoadBegin();
static VOID TypeLoadEnd(UINT32 typeLoad, TypeHandle th, UINT16 loadLevel);
private:
static BOOL ShouldLogType(TypeHandle th);
static TypeLoggingInfo LookupOrCreateTypeLoggingInfo(TypeHandle th, BOOL * pfCreatedNew, LoggedTypesFromModule ** ppLoggedTypesFromModule = NULL);
static BOOL AddTypeToGlobalCacheIfNotExists(TypeHandle th, BOOL * pfCreatedNew);
static BOOL AddOrReplaceTypeLoggingInfo(ETW::LoggedTypesFromModule * pLoggedTypesFromModule, const ETW::TypeLoggingInfo * pTypeLoggingInfo);
static int GetDefaultMsBetweenEvents();
static VOID OnTypesKeywordTurnedOff();
};
#endif // FEATURE_REDHAWK
// Class to wrap all GC logic for ETW
class GCLog
{
private:
// When WPA triggers a GC, it gives us this unique number to append to our
// GCStart event so WPA can correlate the CLR's GC with the JScript GC they
// triggered at the same time.
//
// We set this value when the GC is triggered, and then retrieve the value on the
// first subsequent FireGcStart() method call for a full, induced GC, assuming
// that that's the GC that WPA triggered. This is imperfect, and if we were in
// the act of beginning another full, induced GC (for some other reason), then
// we'll attach this sequence number to that GC instead of to the WPA-induced GC,
// but who cares? When parsing ETW logs later on, it's indistinguishable if both
// GCs really were induced at around the same time.
#ifdef FEATURE_REDHAWK
static volatile LONGLONG s_l64LastClientSequenceNumber;
#else // FEATURE_REDHAWK
static Volatile<LONGLONG> s_l64LastClientSequenceNumber;
#endif // FEATURE_REDHAWK
public:
typedef union st_GCEventInfo {
// These values are gotten from the gc_reason
// in gcimpl.h
typedef enum _GC_REASON {
GC_ALLOC_SOH = 0,
GC_INDUCED = 1,
GC_LOWMEMORY = 2,
GC_EMPTY = 3,
GC_ALLOC_LOH = 4,
GC_OOS_SOH = 5,
GC_OOS_LOH = 6,
GC_INDUCED_NOFORCE = 7,
GC_GCSTRESS = 8,
GC_LOWMEMORY_BLOCKING = 9,
GC_INDUCED_COMPACTING = 10,
GC_LOWMEMORY_HOST = 11
} GC_REASON;
typedef enum _GC_TYPE {
GC_NGC = 0,
GC_BGC = 1,
GC_FGC = 2
} GC_TYPE;
struct {
ULONG Count;
ULONG Depth;
GC_REASON Reason;
GC_TYPE Type;
} GCStart;
struct {
ULONG Reason;
// This is only valid when SuspendEE is called by GC (ie, Reason is either
// SUSPEND_FOR_GC or SUSPEND_FOR_GC_PREP.
ULONG GcCount;
} SuspendEE;
struct {
ULONGLONG SegmentSize;
ULONGLONG LargeObjectSegmentSize;
BOOL ServerGC; // TRUE means it's server GC; FALSE means it's workstation.
} GCSettings;
} ETW_GC_INFO, *PETW_GC_INFO;
#ifdef FEATURE_EVENT_TRACE
static VOID GCSettingsEvent();
#else
static VOID GCSettingsEvent() {};
#endif // FEATURE_EVENT_TRACE
static BOOL ShouldWalkHeapObjectsForEtw();
static BOOL ShouldWalkHeapRootsForEtw();
static BOOL ShouldTrackMovementForEtw();
static HRESULT ForceGCForDiagnostics();
static VOID ForceGC(LONGLONG l64ClientSequenceNumber);
static VOID FireGcStart(ETW_GC_INFO * pGcInfo);
static VOID RootReference(
LPVOID pvHandle,
Object * pRootedNode,
Object * pSecondaryNodeForDependentHandle,
BOOL fDependentHandle,
ProfilingScanContext * profilingScanContext,
DWORD dwGCFlags,
DWORD rootFlags);
static VOID ObjectReference(
ProfilerWalkHeapContext * profilerWalkHeapContext,
Object * pObjReferenceSource,
ULONGLONG typeID,
ULONGLONG cRefs,
Object ** rgObjReferenceTargets);
static BOOL ShouldWalkStaticsAndCOMForEtw();
static VOID WalkStaticsAndCOMForETW();
static VOID EndHeapDump(ProfilerWalkHeapContext * profilerWalkHeapContext);
#ifdef FEATURE_EVENT_TRACE
static VOID BeginMovedReferences(size_t * pProfilingContext);
static VOID MovedReference(BYTE * pbMemBlockStart, BYTE * pbMemBlockEnd, ptrdiff_t cbRelocDistance, size_t profilingContext, BOOL fCompacting, BOOL fAllowProfApiNotification = TRUE);
static VOID EndMovedReferences(size_t profilingContext, BOOL fAllowProfApiNotification = TRUE);
#else
// TODO: Need to be implemented for PROFILING_SUPPORTED.
static VOID BeginMovedReferences(size_t * pProfilingContext) {};
static VOID MovedReference(BYTE * pbMemBlockStart, BYTE * pbMemBlockEnd, ptrdiff_t cbRelocDistance, size_t profilingContext, BOOL fCompacting, BOOL fAllowProfApiNotification = TRUE) {};
static VOID EndMovedReferences(size_t profilingContext, BOOL fAllowProfApiNotification = TRUE) {};
#endif // FEATURE_EVENT_TRACE
static VOID SendFinalizeObjectEvent(MethodTable * pMT, Object * pObj);
};
};
#endif //_VMEVENTTRACE_H_
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.IO.Pipes.AccessControl/Directory.Build.props
|
<Project>
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
<SupportedOSPlatforms>windows</SupportedOSPlatforms>
</PropertyGroup>
</Project>
|
<Project>
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
<SupportedOSPlatforms>windows</SupportedOSPlatforms>
</PropertyGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/mono/mono/utils/mono-filemap.c
|
/**
* \file
* Unix/Windows implementation for filemap.
*
* Author:
* Paolo Molaro ([email protected])
*
* Copyright 2008-2008 Novell, Inc.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include "config.h"
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#include <fcntl.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include "mono-mmap.h"
MonoFileMap *
mono_file_map_open (const char* name)
{
#ifdef WIN32
gunichar2 *wname = g_utf8_to_utf16 (name, -1, 0, 0, 0);
MonoFileMap *result;
if (wname == NULL)
return NULL;
result = (MonoFileMap *) _wfopen ((wchar_t *) wname, L"rb");
g_free (wname);
return result;
#else
int fd = open (name, O_RDONLY);
if (fd < 0)
return NULL;
return (MonoFileMap *)(size_t)fd;
#endif
}
guint64
mono_file_map_size (MonoFileMap *fmap)
{
struct stat stat_buf;
if (fstat (mono_file_map_fd (fmap), &stat_buf) < 0)
return 0;
return stat_buf.st_size;
}
int
mono_file_map_fd (MonoFileMap *fmap)
{
#ifdef WIN32
return _fileno ((FILE*)fmap);
#else
return (int)(size_t)fmap;
#endif
}
int
mono_file_map_close (MonoFileMap *fmap)
{
#ifdef WIN32
return fclose ((FILE*)fmap);
#else
return close (mono_file_map_fd (fmap));
#endif
}
#if !defined (HOST_WIN32)
static mono_file_map_alloc_fn alloc_fn = (mono_file_map_alloc_fn) malloc;
static mono_file_map_release_fn release_fn = (mono_file_map_release_fn) free;
void
mono_file_map_set_allocator (mono_file_map_alloc_fn alloc, mono_file_map_release_fn release)
{
alloc_fn = alloc == NULL ? (mono_file_map_alloc_fn) malloc : alloc;
release_fn = release == NULL ? (mono_file_map_release_fn) free : release;
}
void *
mono_file_map_fileio (size_t length, int flags, int fd, guint64 offset, void **ret_handle)
{
guint64 cur_offset;
size_t bytes_read;
void *ptr = (*alloc_fn) (length);
if (!ptr)
return NULL;
cur_offset = lseek (fd, 0, SEEK_CUR);
if (lseek (fd, offset, SEEK_SET) != offset) {
(*release_fn) (ptr);
return NULL;
}
bytes_read = read (fd, ptr, length);
if (bytes_read != length)
return NULL;
lseek (fd, cur_offset, SEEK_SET);
*ret_handle = NULL;
return ptr;
}
int
mono_file_unmap_fileio (void *addr, void *handle)
{
(*release_fn) (addr);
return 0;
}
#if !defined(HAVE_MMAP)
void *
mono_file_map (size_t length, int flags, int fd, guint64 offset, void **ret_handle)
{
return mono_file_map_fileio (length, flags, fd, offset, ret_handle);
}
int
mono_file_unmap (void *addr, void *handle)
{
return mono_file_unmap_fileio(addr, handle);
}
#endif
#endif
|
/**
* \file
* Unix/Windows implementation for filemap.
*
* Author:
* Paolo Molaro ([email protected])
*
* Copyright 2008-2008 Novell, Inc.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include "config.h"
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#include <fcntl.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include "mono-mmap.h"
MonoFileMap *
mono_file_map_open (const char* name)
{
#ifdef WIN32
gunichar2 *wname = g_utf8_to_utf16 (name, -1, 0, 0, 0);
MonoFileMap *result;
if (wname == NULL)
return NULL;
result = (MonoFileMap *) _wfopen ((wchar_t *) wname, L"rb");
g_free (wname);
return result;
#else
int fd = open (name, O_RDONLY);
if (fd < 0)
return NULL;
return (MonoFileMap *)(size_t)fd;
#endif
}
guint64
mono_file_map_size (MonoFileMap *fmap)
{
struct stat stat_buf;
if (fstat (mono_file_map_fd (fmap), &stat_buf) < 0)
return 0;
return stat_buf.st_size;
}
int
mono_file_map_fd (MonoFileMap *fmap)
{
#ifdef WIN32
return _fileno ((FILE*)fmap);
#else
return (int)(size_t)fmap;
#endif
}
int
mono_file_map_close (MonoFileMap *fmap)
{
#ifdef WIN32
return fclose ((FILE*)fmap);
#else
return close (mono_file_map_fd (fmap));
#endif
}
#if !defined (HOST_WIN32)
static mono_file_map_alloc_fn alloc_fn = (mono_file_map_alloc_fn) malloc;
static mono_file_map_release_fn release_fn = (mono_file_map_release_fn) free;
void
mono_file_map_set_allocator (mono_file_map_alloc_fn alloc, mono_file_map_release_fn release)
{
alloc_fn = alloc == NULL ? (mono_file_map_alloc_fn) malloc : alloc;
release_fn = release == NULL ? (mono_file_map_release_fn) free : release;
}
void *
mono_file_map_fileio (size_t length, int flags, int fd, guint64 offset, void **ret_handle)
{
guint64 cur_offset;
size_t bytes_read;
void *ptr = (*alloc_fn) (length);
if (!ptr)
return NULL;
cur_offset = lseek (fd, 0, SEEK_CUR);
if (lseek (fd, offset, SEEK_SET) != offset) {
(*release_fn) (ptr);
return NULL;
}
bytes_read = read (fd, ptr, length);
if (bytes_read != length)
return NULL;
lseek (fd, cur_offset, SEEK_SET);
*ret_handle = NULL;
return ptr;
}
int
mono_file_unmap_fileio (void *addr, void *handle)
{
(*release_fn) (addr);
return 0;
}
#if !defined(HAVE_MMAP)
void *
mono_file_map (size_t length, int flags, int fd, guint64 offset, void **ret_handle)
{
return mono_file_map_fileio (length, flags, fd, offset, ret_handle);
}
int
mono_file_unmap (void *addr, void *handle)
{
return mono_file_unmap_fileio(addr, handle);
}
#endif
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/src/safecrt/mbusafecrt_internal.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/***
* mbusafecrt_internal.h - internal declarations for SafeCRT functions
*
*
* Purpose:
* This file contains the internal declarations SafeCRT
* functions ported to MacOS. These are the safe versions of
* functions standard functions banned by SWI
****/
/* shields! */
#ifndef MBUSAFECRT_INTERNAL_H
#define MBUSAFECRT_INTERNAL_H
#define PAL_IMPLEMENTATION
#include "pal_mstypes.h"
#ifndef DLLEXPORT
#ifdef _MSC_VER
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __attribute__ ((visibility ("default")))
#endif // _MSC_VER
#endif // !DLLEXPORT
typedef __builtin_va_list va_list;
// The ifdef below are to accommodate Unix build
// that complains about them being declared in stdarg.h already.
#ifndef va_start
#define va_start __builtin_va_start
#endif
#ifndef va_end
#define va_end __builtin_va_end
#endif
#include "mbusafecrt.h"
#ifdef EOF
#undef EOF
#endif
#define EOF -1
#ifdef WEOF
#undef WEOF
#endif
#define WEOF -1
#define CASSERT(p) extern int sanity_check_dummy[1+((!(p))*(-2))];
extern tSafeCRT_AssertFuncPtr sMBUSafeCRTAssertFunc;
typedef struct miniFILE_struct
{
char* _ptr;
int _cnt;
char* _base;
int _flag;
} miniFILE;
#undef _IOWRT
#undef _IOREAD
#undef _IOMYBUF
#define _IOSTRG 1
#define _IOWRT 2
#define _IOREAD 4
#define _IOMYBUF 8
int _putc_nolock( char inChar, miniFILE* inStream );
int _putwc_nolock( char16_t inChar, miniFILE* inStream );
int _getc_nolock( miniFILE* inStream );
int _getwc_nolock( miniFILE* inStream );
int _ungetc_nolock( char inChar, miniFILE* inStream );
int _ungetwc_nolock( char16_t inChar, miniFILE* inStream );
errno_t _safecrt_cfltcvt(double *arg, char *buffer, size_t sizeInBytes, int type, int precision, int flags);
void _safecrt_fassign(int flag, void* argument, char * number );
void _safecrt_wfassign(int flag, void* argument, char16_t * number );
int _minimal_chartowchar( char16_t* outWChar, const char* inChar );
int _output_s( miniFILE* outfile, const char* _Format, va_list _ArgList);
int _woutput_s( miniFILE* outfile, const char16_t* _Format, va_list _ArgList);
int _output( miniFILE *outfile, const char* _Format, va_list _ArgList);
int __tinput_s( miniFILE* inFile, const unsigned char * inFormat, va_list inArgList );
int __twinput_s( miniFILE* inFile, const char16_t * inFormat, va_list inArgList );
#endif /* MBUSAFECRT_INTERNAL_H */
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/***
* mbusafecrt_internal.h - internal declarations for SafeCRT functions
*
*
* Purpose:
* This file contains the internal declarations SafeCRT
* functions ported to MacOS. These are the safe versions of
* functions standard functions banned by SWI
****/
/* shields! */
#ifndef MBUSAFECRT_INTERNAL_H
#define MBUSAFECRT_INTERNAL_H
#define PAL_IMPLEMENTATION
#include "pal_mstypes.h"
#ifndef DLLEXPORT
#ifdef _MSC_VER
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __attribute__ ((visibility ("default")))
#endif // _MSC_VER
#endif // !DLLEXPORT
typedef __builtin_va_list va_list;
// The ifdef below are to accommodate Unix build
// that complains about them being declared in stdarg.h already.
#ifndef va_start
#define va_start __builtin_va_start
#endif
#ifndef va_end
#define va_end __builtin_va_end
#endif
#include "mbusafecrt.h"
#ifdef EOF
#undef EOF
#endif
#define EOF -1
#ifdef WEOF
#undef WEOF
#endif
#define WEOF -1
#define CASSERT(p) extern int sanity_check_dummy[1+((!(p))*(-2))];
extern tSafeCRT_AssertFuncPtr sMBUSafeCRTAssertFunc;
typedef struct miniFILE_struct
{
char* _ptr;
int _cnt;
char* _base;
int _flag;
} miniFILE;
#undef _IOWRT
#undef _IOREAD
#undef _IOMYBUF
#define _IOSTRG 1
#define _IOWRT 2
#define _IOREAD 4
#define _IOMYBUF 8
int _putc_nolock( char inChar, miniFILE* inStream );
int _putwc_nolock( char16_t inChar, miniFILE* inStream );
int _getc_nolock( miniFILE* inStream );
int _getwc_nolock( miniFILE* inStream );
int _ungetc_nolock( char inChar, miniFILE* inStream );
int _ungetwc_nolock( char16_t inChar, miniFILE* inStream );
errno_t _safecrt_cfltcvt(double *arg, char *buffer, size_t sizeInBytes, int type, int precision, int flags);
void _safecrt_fassign(int flag, void* argument, char * number );
void _safecrt_wfassign(int flag, void* argument, char16_t * number );
int _minimal_chartowchar( char16_t* outWChar, const char* inChar );
int _output_s( miniFILE* outfile, const char* _Format, va_list _ArgList);
int _woutput_s( miniFILE* outfile, const char16_t* _Format, va_list _ArgList);
int _output( miniFILE *outfile, const char* _Format, va_list _ArgList);
int __tinput_s( miniFILE* inFile, const unsigned char * inFormat, va_list inArgList );
int __twinput_s( miniFILE* inFile, const char16_t * inFormat, va_list inArgList );
#endif /* MBUSAFECRT_INTERNAL_H */
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/tests/palsuite/composite/synchronization/criticalsection/readme.txt
|
To compile:
1) create a dat file (say criticalsection.dat) with contents:
PAL,Composite,palsuite\composite\synchronization\criticalsection,criticalsection=mainWrapper.c,criticalsection.c,<SUPPORTEXE>,<TESTLANGCPP>,<COMPILEONLY>
2) perl rrunmod.pl -r criticalsection.dat
To execute:
mainwrapper [PROCESS_COUNT] [WORKER_THREAD_MULTIPLIER_COUNT] [REPEAT_COUNT]
|
To compile:
1) create a dat file (say criticalsection.dat) with contents:
PAL,Composite,palsuite\composite\synchronization\criticalsection,criticalsection=mainWrapper.c,criticalsection.c,<SUPPORTEXE>,<TESTLANGCPP>,<COMPILEONLY>
2) perl rrunmod.pl -r criticalsection.dat
To execute:
mainwrapper [PROCESS_COUNT] [WORKER_THREAD_MULTIPLIER_COUNT] [REPEAT_COUNT]
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./eng/DiaSymReaderNative.targets
|
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. -->
<Project>
<PropertyGroup>
<!--
Ensure the binaries using DiaSymReader.Native are marked as AnyCPU unless they specify
a different target. This should be the default behavior but recent SDK changes to more
correctly consider RIDs caused our behavior to change here. Once the SDK logic is settled
here we can remove this.
https://github.com/dotnet/sdk/issues/3495
-->
<PlatformTarget Condition="'$(PlatformTarget)' == ''">AnyCPU</PlatformTarget>
</PropertyGroup>
<!--
This is adding the diasymreader native assets to the output directory of our binaries. The
package can't be referenced directly but rather has to have it's assets manually copied
out. This logic is responsible for doing that.
-->
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<Content Include="$(NuGetPackageRoot)\microsoft.diasymreader.native\$(MicrosoftDiaSymReaderNativeVersion)\runtimes\win\native\Microsoft.DiaSymReader.Native.x86.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
<Pack>false</Pack>
</Content>
<Content Include="$(NuGetPackageRoot)\microsoft.diasymreader.native\$(MicrosoftDiaSymReaderNativeVersion)\runtimes\win\native\Microsoft.DiaSymReader.Native.amd64.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
<Pack>false</Pack>
</Content>
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(MicrosoftDiaSymReaderNativeVersion)" ExcludeAssets="all"/>
</ItemGroup>
</Project>
|
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. -->
<Project>
<PropertyGroup>
<!--
Ensure the binaries using DiaSymReader.Native are marked as AnyCPU unless they specify
a different target. This should be the default behavior but recent SDK changes to more
correctly consider RIDs caused our behavior to change here. Once the SDK logic is settled
here we can remove this.
https://github.com/dotnet/sdk/issues/3495
-->
<PlatformTarget Condition="'$(PlatformTarget)' == ''">AnyCPU</PlatformTarget>
</PropertyGroup>
<!--
This is adding the diasymreader native assets to the output directory of our binaries. The
package can't be referenced directly but rather has to have it's assets manually copied
out. This logic is responsible for doing that.
-->
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<Content Include="$(NuGetPackageRoot)\microsoft.diasymreader.native\$(MicrosoftDiaSymReaderNativeVersion)\runtimes\win\native\Microsoft.DiaSymReader.Native.x86.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
<Pack>false</Pack>
</Content>
<Content Include="$(NuGetPackageRoot)\microsoft.diasymreader.native\$(MicrosoftDiaSymReaderNativeVersion)\runtimes\win\native\Microsoft.DiaSymReader.Native.amd64.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
<Pack>false</Pack>
</Content>
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(MicrosoftDiaSymReaderNativeVersion)" ExcludeAssets="all"/>
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/jit/regset.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*****************************************************************************/
#ifndef _REGSET_H
#define _REGSET_H
#include "vartype.h"
#include "target.h"
class LclVarDsc;
class TempDsc;
class Compiler;
class CodeGen;
class GCInfo;
/*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX XX
XX RegSet XX
XX XX
XX Represents the register set, and their states during code generation XX
XX Can select an unused register, keeps track of the contents of the XX
XX registers, and can spill registers XX
XX XX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
*/
/*****************************************************************************/
class RegSet
{
friend class CodeGen;
friend class CodeGenInterface;
private:
Compiler* m_rsCompiler;
GCInfo& m_rsGCInfo;
public:
RegSet(Compiler* compiler, GCInfo& gcInfo);
#ifdef TARGET_ARM
regMaskTP rsMaskPreSpillRegs(bool includeAlignment) const
{
return includeAlignment ? (rsMaskPreSpillRegArg | rsMaskPreSpillAlign) : rsMaskPreSpillRegArg;
}
#endif // TARGET_ARM
private:
// The same descriptor is also used for 'multi-use' register tracking, BTW.
struct SpillDsc
{
SpillDsc* spillNext; // next spilled value of same reg
GenTree* spillTree; // the value that was spilled
TempDsc* spillTemp; // the temp holding the spilled value
static SpillDsc* alloc(Compiler* pComp, RegSet* regSet, var_types type);
static void freeDsc(RegSet* regSet, SpillDsc* spillDsc);
};
//-------------------------------------------------------------------------
//
// Track the status of the registers
//
private:
bool rsNeededSpillReg; // true if this method needed to spill any registers
regMaskTP rsModifiedRegsMask; // mask of the registers modified by the current function.
#ifdef DEBUG
bool rsModifiedRegsMaskInitialized; // Has rsModifiedRegsMask been initialized? Guards against illegal use.
#endif // DEBUG
public:
regMaskTP rsGetModifiedRegsMask() const
{
assert(rsModifiedRegsMaskInitialized);
return rsModifiedRegsMask;
}
void rsClearRegsModified();
void rsSetRegsModified(regMaskTP mask DEBUGARG(bool suppressDump = false));
void rsRemoveRegsModified(regMaskTP mask);
bool rsRegsModified(regMaskTP mask) const
{
assert(rsModifiedRegsMaskInitialized);
return (rsModifiedRegsMask & mask) != 0;
}
void verifyRegUsed(regNumber reg);
void verifyRegistersUsed(regMaskTP regMask);
public:
regMaskTP GetMaskVars() const // 'get' property function for rsMaskVars property
{
return _rsMaskVars;
}
void SetMaskVars(regMaskTP newMaskVars); // 'put' property function for rsMaskVars property
void AddMaskVars(regMaskTP addMaskVars) // union 'addMaskVars' with the rsMaskVars set
{
SetMaskVars(_rsMaskVars | addMaskVars);
}
void RemoveMaskVars(regMaskTP removeMaskVars) // remove 'removeMaskVars' from the rsMaskVars set (like bitset DiffD)
{
SetMaskVars(_rsMaskVars & ~removeMaskVars);
}
void ClearMaskVars() // Like SetMaskVars(RBM_NONE), but without any debug output.
{
_rsMaskVars = RBM_NONE;
}
private:
regMaskTP _rsMaskVars; // backing store for rsMaskVars property
#ifdef TARGET_ARMARCH
regMaskTP rsMaskCalleeSaved; // mask of the registers pushed/popped in the prolog/epilog
#endif // TARGET_ARM
public: // TODO-Cleanup: Should be private, but Compiler uses it
regMaskTP rsMaskResvd; // mask of the registers that are reserved for special purposes (typically empty)
public: // The PreSpill masks are used in LclVars.cpp
#ifdef TARGET_ARM
regMaskTP rsMaskPreSpillAlign; // Mask of alignment padding added to prespill to keep double aligned args
// at aligned stack addresses.
regMaskTP rsMaskPreSpillRegArg; // mask of incoming registers that are spilled at the start of the prolog
// This includes registers used to pass a struct (or part of a struct)
// and all enregistered user arguments in a varargs call
#endif // TARGET_ARM
private:
//-------------------------------------------------------------------------
//
// The following tables keep track of spilled register values.
//
// When a register gets spilled, the old information is stored here
SpillDsc* rsSpillDesc[REG_COUNT];
SpillDsc* rsSpillFree; // list of unused spill descriptors
void rsSpillChk();
void rsSpillInit();
void rsSpillDone();
void rsSpillBeg();
void rsSpillEnd();
void rsSpillTree(regNumber reg, GenTree* tree, unsigned regIdx = 0);
#if defined(TARGET_X86)
void rsSpillFPStack(GenTreeCall* call);
#endif // defined(TARGET_X86)
SpillDsc* rsGetSpillInfo(GenTree* tree, regNumber reg, SpillDsc** pPrevDsc = nullptr);
TempDsc* rsGetSpillTempWord(regNumber oldReg, SpillDsc* dsc, SpillDsc* prevDsc);
TempDsc* rsUnspillInPlace(GenTree* tree, regNumber oldReg, unsigned regIdx = 0);
void rsMarkSpill(GenTree* tree, regNumber reg);
public:
void tmpInit();
enum TEMP_USAGE_TYPE
{
TEMP_USAGE_FREE,
TEMP_USAGE_USED
};
static var_types tmpNormalizeType(var_types type);
TempDsc* tmpGetTemp(var_types type); // get temp for the given type
void tmpRlsTemp(TempDsc* temp);
TempDsc* tmpFindNum(int temp, TEMP_USAGE_TYPE usageType = TEMP_USAGE_FREE) const;
void tmpEnd();
TempDsc* tmpListBeg(TEMP_USAGE_TYPE usageType = TEMP_USAGE_FREE) const;
TempDsc* tmpListNxt(TempDsc* curTemp, TEMP_USAGE_TYPE usageType = TEMP_USAGE_FREE) const;
void tmpDone();
#ifdef DEBUG
bool tmpAllFree() const;
#endif // DEBUG
void tmpBeginPreAllocateTemps()
{
tmpSize = 0;
}
void tmpPreAllocateTemps(var_types type, unsigned count);
unsigned tmpGetTotalSize()
{
assert(hasComputedTmpSize());
return tmpSize;
}
bool hasComputedTmpSize()
{
return tmpSize != UINT_MAX;
}
private:
unsigned tmpCount; // Number of temps
unsigned tmpSize; // Size of all the temps
#ifdef DEBUG
// Used by RegSet::rsSpillChk()
unsigned tmpGetCount; // Temps which haven't been released yet
#endif
static unsigned tmpSlot(unsigned size); // which slot in tmpFree[] or tmpUsed[] to use
enum TEMP_CONSTANTS : unsigned
{
#if defined(FEATURE_SIMD)
#if defined(TARGET_XARCH)
TEMP_MAX_SIZE = YMM_REGSIZE_BYTES,
#elif defined(TARGET_ARM64)
TEMP_MAX_SIZE = FP_REGSIZE_BYTES,
#endif // defined(TARGET_XARCH) || defined(TARGET_ARM64)
#else // !FEATURE_SIMD
TEMP_MAX_SIZE = sizeof(double),
#endif // !FEATURE_SIMD
TEMP_SLOT_COUNT = (TEMP_MAX_SIZE / sizeof(int))
};
TempDsc* tmpFree[TEMP_MAX_SIZE / sizeof(int)];
TempDsc* tmpUsed[TEMP_MAX_SIZE / sizeof(int)];
};
#endif // _REGSET_H
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*****************************************************************************/
#ifndef _REGSET_H
#define _REGSET_H
#include "vartype.h"
#include "target.h"
class LclVarDsc;
class TempDsc;
class Compiler;
class CodeGen;
class GCInfo;
/*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX XX
XX RegSet XX
XX XX
XX Represents the register set, and their states during code generation XX
XX Can select an unused register, keeps track of the contents of the XX
XX registers, and can spill registers XX
XX XX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
*/
/*****************************************************************************/
class RegSet
{
friend class CodeGen;
friend class CodeGenInterface;
private:
Compiler* m_rsCompiler;
GCInfo& m_rsGCInfo;
public:
RegSet(Compiler* compiler, GCInfo& gcInfo);
#ifdef TARGET_ARM
regMaskTP rsMaskPreSpillRegs(bool includeAlignment) const
{
return includeAlignment ? (rsMaskPreSpillRegArg | rsMaskPreSpillAlign) : rsMaskPreSpillRegArg;
}
#endif // TARGET_ARM
private:
// The same descriptor is also used for 'multi-use' register tracking, BTW.
struct SpillDsc
{
SpillDsc* spillNext; // next spilled value of same reg
GenTree* spillTree; // the value that was spilled
TempDsc* spillTemp; // the temp holding the spilled value
static SpillDsc* alloc(Compiler* pComp, RegSet* regSet, var_types type);
static void freeDsc(RegSet* regSet, SpillDsc* spillDsc);
};
//-------------------------------------------------------------------------
//
// Track the status of the registers
//
private:
bool rsNeededSpillReg; // true if this method needed to spill any registers
regMaskTP rsModifiedRegsMask; // mask of the registers modified by the current function.
#ifdef DEBUG
bool rsModifiedRegsMaskInitialized; // Has rsModifiedRegsMask been initialized? Guards against illegal use.
#endif // DEBUG
public:
regMaskTP rsGetModifiedRegsMask() const
{
assert(rsModifiedRegsMaskInitialized);
return rsModifiedRegsMask;
}
void rsClearRegsModified();
void rsSetRegsModified(regMaskTP mask DEBUGARG(bool suppressDump = false));
void rsRemoveRegsModified(regMaskTP mask);
bool rsRegsModified(regMaskTP mask) const
{
assert(rsModifiedRegsMaskInitialized);
return (rsModifiedRegsMask & mask) != 0;
}
void verifyRegUsed(regNumber reg);
void verifyRegistersUsed(regMaskTP regMask);
public:
regMaskTP GetMaskVars() const // 'get' property function for rsMaskVars property
{
return _rsMaskVars;
}
void SetMaskVars(regMaskTP newMaskVars); // 'put' property function for rsMaskVars property
void AddMaskVars(regMaskTP addMaskVars) // union 'addMaskVars' with the rsMaskVars set
{
SetMaskVars(_rsMaskVars | addMaskVars);
}
void RemoveMaskVars(regMaskTP removeMaskVars) // remove 'removeMaskVars' from the rsMaskVars set (like bitset DiffD)
{
SetMaskVars(_rsMaskVars & ~removeMaskVars);
}
void ClearMaskVars() // Like SetMaskVars(RBM_NONE), but without any debug output.
{
_rsMaskVars = RBM_NONE;
}
private:
regMaskTP _rsMaskVars; // backing store for rsMaskVars property
#ifdef TARGET_ARMARCH
regMaskTP rsMaskCalleeSaved; // mask of the registers pushed/popped in the prolog/epilog
#endif // TARGET_ARM
public: // TODO-Cleanup: Should be private, but Compiler uses it
regMaskTP rsMaskResvd; // mask of the registers that are reserved for special purposes (typically empty)
public: // The PreSpill masks are used in LclVars.cpp
#ifdef TARGET_ARM
regMaskTP rsMaskPreSpillAlign; // Mask of alignment padding added to prespill to keep double aligned args
// at aligned stack addresses.
regMaskTP rsMaskPreSpillRegArg; // mask of incoming registers that are spilled at the start of the prolog
// This includes registers used to pass a struct (or part of a struct)
// and all enregistered user arguments in a varargs call
#endif // TARGET_ARM
private:
//-------------------------------------------------------------------------
//
// The following tables keep track of spilled register values.
//
// When a register gets spilled, the old information is stored here
SpillDsc* rsSpillDesc[REG_COUNT];
SpillDsc* rsSpillFree; // list of unused spill descriptors
void rsSpillChk();
void rsSpillInit();
void rsSpillDone();
void rsSpillBeg();
void rsSpillEnd();
void rsSpillTree(regNumber reg, GenTree* tree, unsigned regIdx = 0);
#if defined(TARGET_X86)
void rsSpillFPStack(GenTreeCall* call);
#endif // defined(TARGET_X86)
SpillDsc* rsGetSpillInfo(GenTree* tree, regNumber reg, SpillDsc** pPrevDsc = nullptr);
TempDsc* rsGetSpillTempWord(regNumber oldReg, SpillDsc* dsc, SpillDsc* prevDsc);
TempDsc* rsUnspillInPlace(GenTree* tree, regNumber oldReg, unsigned regIdx = 0);
void rsMarkSpill(GenTree* tree, regNumber reg);
public:
void tmpInit();
enum TEMP_USAGE_TYPE
{
TEMP_USAGE_FREE,
TEMP_USAGE_USED
};
static var_types tmpNormalizeType(var_types type);
TempDsc* tmpGetTemp(var_types type); // get temp for the given type
void tmpRlsTemp(TempDsc* temp);
TempDsc* tmpFindNum(int temp, TEMP_USAGE_TYPE usageType = TEMP_USAGE_FREE) const;
void tmpEnd();
TempDsc* tmpListBeg(TEMP_USAGE_TYPE usageType = TEMP_USAGE_FREE) const;
TempDsc* tmpListNxt(TempDsc* curTemp, TEMP_USAGE_TYPE usageType = TEMP_USAGE_FREE) const;
void tmpDone();
#ifdef DEBUG
bool tmpAllFree() const;
#endif // DEBUG
void tmpBeginPreAllocateTemps()
{
tmpSize = 0;
}
void tmpPreAllocateTemps(var_types type, unsigned count);
unsigned tmpGetTotalSize()
{
assert(hasComputedTmpSize());
return tmpSize;
}
bool hasComputedTmpSize()
{
return tmpSize != UINT_MAX;
}
private:
unsigned tmpCount; // Number of temps
unsigned tmpSize; // Size of all the temps
#ifdef DEBUG
// Used by RegSet::rsSpillChk()
unsigned tmpGetCount; // Temps which haven't been released yet
#endif
static unsigned tmpSlot(unsigned size); // which slot in tmpFree[] or tmpUsed[] to use
enum TEMP_CONSTANTS : unsigned
{
#if defined(FEATURE_SIMD)
#if defined(TARGET_XARCH)
TEMP_MAX_SIZE = YMM_REGSIZE_BYTES,
#elif defined(TARGET_ARM64)
TEMP_MAX_SIZE = FP_REGSIZE_BYTES,
#endif // defined(TARGET_XARCH) || defined(TARGET_ARM64)
#else // !FEATURE_SIMD
TEMP_MAX_SIZE = sizeof(double),
#endif // !FEATURE_SIMD
TEMP_SLOT_COUNT = (TEMP_MAX_SIZE / sizeof(int))
};
TempDsc* tmpFree[TEMP_MAX_SIZE / sizeof(int)];
TempDsc* tmpUsed[TEMP_MAX_SIZE / sizeof(int)];
};
#endif // _REGSET_H
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/vm/commodule.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
////////////////////////////////////////////////////////////////////////////////
#ifndef _COMModule_H_
#define _COMModule_H_
#include "invokeutil.h"
class Module;
class COMModule
{
public:
// GetTypes will return an array containing all of the types
// that are defined within this Module.
static FCDECL1(Object*, GetTypes, ReflectModuleBaseObject* pModuleUNSAFE);
static FCDECL1(Object*, GetMethods, ReflectModuleBaseObject* refThisUNSAFE);
};
// GetTypeRef
// This function will return the class token for the named element.
extern "C" mdTypeRef QCALLTYPE ModuleBuilder_GetTypeRef(QCall::ModuleHandle pModule,
LPCWSTR wszFullName,
QCall::ModuleHandle pRefedModule,
LPCWSTR wszRefedModuleFileName,
INT32 tkResolution);
// SetFieldRVAContent
// This function is used to set the FieldRVA with the content data
extern "C" void QCALLTYPE ModuleBuilder_SetFieldRVAContent(QCall::ModuleHandle pModule, INT32 tkField, LPCBYTE pContent, INT32 length);
//GetArrayMethodToken
extern "C" INT32 QCALLTYPE ModuleBuilder_GetArrayMethodToken(QCall::ModuleHandle pModule,
INT32 tkTypeSpec,
LPCWSTR wszMethodName,
LPCBYTE pSignature,
INT32 sigLength);
// GetMemberRefToken
// This function will return the MemberRef token
extern "C" INT32 QCALLTYPE ModuleBuilder_GetMemberRef(QCall::ModuleHandle pModule, QCall::ModuleHandle pRefedModule, INT32 tr, INT32 token);
// This function return a MemberRef token given a MethodInfo describing a array method
extern "C" INT32 QCALLTYPE ModuleBuilder_GetMemberRefOfMethodInfo(QCall::ModuleHandle pModule, INT32 tr, MethodDesc * method);
// GetMemberRefOfFieldInfo
// This function will return a memberRef token given a FieldInfo
extern "C" mdMemberRef QCALLTYPE ModuleBuilder_GetMemberRefOfFieldInfo(QCall::ModuleHandle pModule, mdTypeDef tr, QCall::TypeHandle th, mdFieldDef tkField);
// GetMemberRefFromSignature
// This function will return the MemberRef token given the signature from managed code
extern "C" INT32 QCALLTYPE ModuleBuilder_GetMemberRefFromSignature(QCall::ModuleHandle pModule,
INT32 tr,
LPCWSTR wszMemberName,
LPCBYTE pSignature,
INT32 sigLength);
// GetTokenFromTypeSpec
extern "C" mdTypeSpec QCALLTYPE ModuleBuilder_GetTokenFromTypeSpec(QCall::ModuleHandle pModule, LPCBYTE pSignature, INT32 sigLength);
// GetType
// Given a class type, this method will look for that type
// with in the module.
extern "C" void QCALLTYPE RuntimeModule_GetType(QCall::ModuleHandle pModule, LPCWSTR wszName, BOOL bThrowOnError, BOOL bIgnoreCase, QCall::ObjectHandleOnStack retType, QCall::ObjectHandleOnStack keepAlive);
// GetStringConstant
// If this is a dynamic module, this routine will define a new
// string constant or return the token of an existing constant.
extern "C" mdString QCALLTYPE ModuleBuilder_GetStringConstant(QCall::ModuleHandle pModule, LPCWSTR pwzValue, INT32 iLength);
extern "C" void QCALLTYPE ModuleBuilder_SetModuleName(QCall::ModuleHandle pModule, LPCWSTR wszModuleName);
extern "C" void QCALLTYPE RuntimeModule_GetScopeName(QCall::ModuleHandle pModule, QCall::StringHandleOnStack retString);
extern "C" void QCALLTYPE RuntimeModule_GetFullyQualifiedName(QCall::ModuleHandle pModule, QCall::StringHandleOnStack retString);
extern "C" HINSTANCE QCALLTYPE MarshalNative_GetHINSTANCE(QCall::ModuleHandle pModule);
#endif
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
////////////////////////////////////////////////////////////////////////////////
#ifndef _COMModule_H_
#define _COMModule_H_
#include "invokeutil.h"
class Module;
class COMModule
{
public:
// GetTypes will return an array containing all of the types
// that are defined within this Module.
static FCDECL1(Object*, GetTypes, ReflectModuleBaseObject* pModuleUNSAFE);
static FCDECL1(Object*, GetMethods, ReflectModuleBaseObject* refThisUNSAFE);
};
// GetTypeRef
// This function will return the class token for the named element.
extern "C" mdTypeRef QCALLTYPE ModuleBuilder_GetTypeRef(QCall::ModuleHandle pModule,
LPCWSTR wszFullName,
QCall::ModuleHandle pRefedModule,
LPCWSTR wszRefedModuleFileName,
INT32 tkResolution);
// SetFieldRVAContent
// This function is used to set the FieldRVA with the content data
extern "C" void QCALLTYPE ModuleBuilder_SetFieldRVAContent(QCall::ModuleHandle pModule, INT32 tkField, LPCBYTE pContent, INT32 length);
//GetArrayMethodToken
extern "C" INT32 QCALLTYPE ModuleBuilder_GetArrayMethodToken(QCall::ModuleHandle pModule,
INT32 tkTypeSpec,
LPCWSTR wszMethodName,
LPCBYTE pSignature,
INT32 sigLength);
// GetMemberRefToken
// This function will return the MemberRef token
extern "C" INT32 QCALLTYPE ModuleBuilder_GetMemberRef(QCall::ModuleHandle pModule, QCall::ModuleHandle pRefedModule, INT32 tr, INT32 token);
// This function return a MemberRef token given a MethodInfo describing a array method
extern "C" INT32 QCALLTYPE ModuleBuilder_GetMemberRefOfMethodInfo(QCall::ModuleHandle pModule, INT32 tr, MethodDesc * method);
// GetMemberRefOfFieldInfo
// This function will return a memberRef token given a FieldInfo
extern "C" mdMemberRef QCALLTYPE ModuleBuilder_GetMemberRefOfFieldInfo(QCall::ModuleHandle pModule, mdTypeDef tr, QCall::TypeHandle th, mdFieldDef tkField);
// GetMemberRefFromSignature
// This function will return the MemberRef token given the signature from managed code
extern "C" INT32 QCALLTYPE ModuleBuilder_GetMemberRefFromSignature(QCall::ModuleHandle pModule,
INT32 tr,
LPCWSTR wszMemberName,
LPCBYTE pSignature,
INT32 sigLength);
// GetTokenFromTypeSpec
extern "C" mdTypeSpec QCALLTYPE ModuleBuilder_GetTokenFromTypeSpec(QCall::ModuleHandle pModule, LPCBYTE pSignature, INT32 sigLength);
// GetType
// Given a class type, this method will look for that type
// with in the module.
extern "C" void QCALLTYPE RuntimeModule_GetType(QCall::ModuleHandle pModule, LPCWSTR wszName, BOOL bThrowOnError, BOOL bIgnoreCase, QCall::ObjectHandleOnStack retType, QCall::ObjectHandleOnStack keepAlive);
// GetStringConstant
// If this is a dynamic module, this routine will define a new
// string constant or return the token of an existing constant.
extern "C" mdString QCALLTYPE ModuleBuilder_GetStringConstant(QCall::ModuleHandle pModule, LPCWSTR pwzValue, INT32 iLength);
extern "C" void QCALLTYPE ModuleBuilder_SetModuleName(QCall::ModuleHandle pModule, LPCWSTR wszModuleName);
extern "C" void QCALLTYPE RuntimeModule_GetScopeName(QCall::ModuleHandle pModule, QCall::StringHandleOnStack retString);
extern "C" void QCALLTYPE RuntimeModule_GetFullyQualifiedName(QCall::ModuleHandle pModule, QCall::StringHandleOnStack retString);
extern "C" HINSTANCE QCALLTYPE MarshalNative_GetHINSTANCE(QCall::ModuleHandle pModule);
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/vm/assemblyspecbase.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ============================================================
//
// AssemblySpecBase.h
//
//
// Chooses the appropriate implementation to base AssemblySpec on
//
// ============================================================
#ifndef __ASSEMBLY_SPEC_BASE_H__
#define __ASSEMBLY_SPEC_BASE_H__
#include "../binder/inc/assembly.hpp"
#include "baseassemblyspec.h"
#include "baseassemblyspec.inl"
#endif // __ASSEMBLY_SPEC_BASE_H__
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ============================================================
//
// AssemblySpecBase.h
//
//
// Chooses the appropriate implementation to base AssemblySpec on
//
// ============================================================
#ifndef __ASSEMBLY_SPEC_BASE_H__
#define __ASSEMBLY_SPEC_BASE_H__
#include "../binder/inc/assembly.hpp"
#include "baseassemblyspec.h"
#include "baseassemblyspec.inl"
#endif // __ASSEMBLY_SPEC_BASE_H__
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Data.OleDb/src/Resources/Strings.resx
|
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ADP_CollectionIndexInt32" xml:space="preserve">
<value>Invalid index {0} for this {1} with Count={2}.</value>
</data>
<data name="ADP_CollectionIndexString" xml:space="preserve">
<value>An {0} with {1} '{2}' is not contained by this {3}.</value>
</data>
<data name="ADP_CollectionInvalidType" xml:space="preserve">
<value>The {0} only accepts non-null {1} type objects, not {2} objects.</value>
</data>
<data name="ADP_CollectionIsNotParent" xml:space="preserve">
<value>The {0} is already contained by another {1}.</value>
</data>
<data name="ADP_CollectionNullValue" xml:space="preserve">
<value>The {0} only accepts non-null {1} type objects.</value>
</data>
<data name="ADP_CollectionRemoveInvalidObject" xml:space="preserve">
<value>Attempted to remove an {0} that is not contained by this {1}.</value>
</data>
<data name="ADP_ConnectionStateMsg_Closed" xml:space="preserve">
<value>The connection's current state is closed.</value>
</data>
<data name="ADP_ConnectionStateMsg_Connecting" xml:space="preserve">
<value>The connection's current state is connecting.</value>
</data>
<data name="ADP_ConnectionStateMsg_Open" xml:space="preserve">
<value>The connection's current state is open.</value>
</data>
<data name="ADP_ConnectionStateMsg_OpenExecuting" xml:space="preserve">
<value>The connection's current state is executing.</value>
</data>
<data name="ADP_ConnectionStateMsg_OpenFetching" xml:space="preserve">
<value>The connection's current state is fetching.</value>
</data>
<data name="ADP_ConnectionStateMsg" xml:space="preserve">
<value>The connection's current state: {0}.</value>
</data>
<data name="ADP_ConnectionStringSyntax" xml:space="preserve">
<value>Format of the initialization string does not conform to specification starting at index {0}.</value>
</data>
<data name="ADP_DataReaderClosed" xml:space="preserve">
<value>Invalid attempt to call {0} when reader is closed.</value>
</data>
<data name="ADP_InvalidEnumerationValue" xml:space="preserve">
<value>The {0} enumeration value, {1}, is invalid.</value>
</data>
<data name="SqlConvert_ConvertFailed" xml:space="preserve">
<value>Cannot convert object of type '{0}' to object of type '{1}'.</value>
</data>
<data name="ADP_InvalidConnectionOptionValue" xml:space="preserve">
<value>Invalid value for key '{0}'.</value>
</data>
<data name="ADP_KeywordNotSupported" xml:space="preserve">
<value>Keyword not supported: '{0}'.</value>
</data>
<data name="ADP_InternalProviderError" xml:space="preserve">
<value>Internal data provider error {0}.</value>
</data>
<data name="ADP_InvalidMultipartName" xml:space="preserve">
<value>{0} "{1}".</value>
</data>
<data name="ADP_InvalidMultipartNameQuoteUsage" xml:space="preserve">
<value>{0} "{1}", incorrect usage of quotes.</value>
</data>
<data name="ADP_InvalidMultipartNameToManyParts" xml:space="preserve">
<value>{0} "{1}", the current limit of "{2}" is insufficient.</value>
</data>
<data name="OLEDB_OLEDBCommandText" xml:space="preserve">
<value>OleDbCommandBuilder.DeriveParameters failed because the OleDbCommandBuilder.CommandText property value is an invalid multipart name</value>
</data>
<data name="ADP_InvalidSourceBufferIndex" xml:space="preserve">
<value>Invalid source buffer (size of {0}) offset: {1}</value>
</data>
<data name="ADP_InvalidDestinationBufferIndex" xml:space="preserve">
<value>Invalid destination buffer (size of {0}) offset: {1}</value>
</data>
<data name="OleDb_SchemaRowsetsNotSupported" xml:space="preserve">
<value>'{0}' interface is not supported by the '{1}' provider. GetOleDbSchemaTable is unavailable with the current provider.</value>
</data>
<data name="OleDb_NoErrorInformation2" xml:space="preserve">
<value>'{0}' failed with no error message available, result code: {1}.</value>
</data>
<data name="OleDb_NoErrorInformation" xml:space="preserve">
<value>No error message available, result code: {0}.</value>
</data>
<data name="OleDb_MDACNotAvailable" xml:space="preserve">
<value>The data providers require Microsoft Data Access Components (MDAC). Please install Microsoft Data Access Components (MDAC) version 2.6 or later.</value>
</data>
<data name="OleDb_MSDASQLNotSupported" xml:space="preserve">
<value>The data provider for OLEDB (System.Data.OleDb) does not support the Microsoft OLEDB Provider for ODBC Drivers (MSDASQL). Use the data provider for ODBC (System.Data.Odbc).</value>
</data>
<data name="OleDb_PossiblePromptNotUserInteractive" xml:space="preserve">
<value>The data provider for OLEDB will not allow the OLEDB Provider to prompt the user in a non-interactive environment.</value>
</data>
<data name="OleDb_ProviderUnavailable" xml:space="preserve">
<value>The '{0}' provider is not registered on the local machine.</value>
</data>
<data name="OleDb_CommandTextNotSupported" xml:space="preserve">
<value>The ICommandText interface is not supported by the '{0}' provider. Use CommandType.TableDirect instead.</value>
</data>
<data name="OleDb_TransactionsNotSupported" xml:space="preserve">
<value>The ITransactionLocal interface is not supported by the '{0}' provider. Local transactions are unavailable with the current provider.</value>
</data>
<data name="OleDb_AsynchronousNotSupported" xml:space="preserve">
<value>'Asynchronous Processing' is not a supported feature of the Data OLEDB Provider (System.Data.OleDb).</value>
</data>
<data name="OleDb_NoProviderSpecified" xml:space="preserve">
<value>An OLEDB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.</value>
</data>
<data name="OleDb_InvalidProviderSpecified" xml:space="preserve">
<value>The OLEDB Provider specified in the ConnectionString is too long.</value>
</data>
<data name="OleDb_InvalidRestrictionsDbInfoKeywords" xml:space="preserve">
<value>No restrictions are expected for the DbInfoKeywords OleDbSchemaGuid.</value>
</data>
<data name="OleDb_InvalidRestrictionsDbInfoLiteral" xml:space="preserve">
<value>No restrictions are expected for the DbInfoLiterals OleDbSchemaGuid.</value>
</data>
<data name="OleDb_InvalidRestrictionsSchemaGuids" xml:space="preserve">
<value>No restrictions are expected for the schema guid OleDbSchemaGuid.</value>
</data>
<data name="OleDb_NotSupportedSchemaTable" xml:space="preserve">
<value>The {0} OleDbSchemaGuid is not a supported schema by the '{1}' provider.</value>
</data>
<data name="OleDb_CommandParameterBadAccessor" xml:space="preserve">
<value>Command parameter[{0}] '{1}' is invalid.</value>
</data>
<data name="OleDb_CommandParameterCantConvertValue" xml:space="preserve">
<value>Command parameter[{0}] '{1}' data value could not be converted for reasons other than sign mismatch or data overflow.</value>
</data>
<data name="OleDb_CommandParameterSignMismatch" xml:space="preserve">
<value>Conversion failed for command parameter[{0}] '{1}' because the data value was signed and the type used by the provider was unsigned.</value>
</data>
<data name="OleDb_CommandParameterDataOverflow" xml:space="preserve">
<value>Conversion failed for command parameter[{0}] '{1}' because the data value overflowed the type used by the provider.</value>
</data>
<data name="OleDb_CommandParameterUnavailable" xml:space="preserve">
<value>Provider encountered an error while sending command parameter[{0}] '{1}' value and stopped processing.</value>
</data>
<data name="OleDb_CommandParameterDefault" xml:space="preserve">
<value>Parameter[{0}] '{1}' has no default value.</value>
</data>
<data name="OleDb_CommandParameterError" xml:space="preserve">
<value>Error occurred with parameter[{0}]: {1}.</value>
</data>
<data name="OleDb_BadStatus_ParamAcc" xml:space="preserve">
<value>System.Data.OleDb.OleDbDataAdapter internal error: invalid parameter accessor: {0} {1}.</value>
</data>
<data name="OleDb_UninitializedParameters" xml:space="preserve">
<value>Parameter[{0}]: the OleDbType property is uninitialized: OleDbType.{1}.</value>
</data>
<data name="OleDb_NoProviderSupportForParameters" xml:space="preserve">
<value>The ICommandWithParameters interface is not supported by the '{0}' provider. Command parameters are unsupported with the current provider.</value>
</data>
<data name="OleDb_NoProviderSupportForSProcResetParameters" xml:space="preserve">
<value>Retrieving procedure parameter information is not supported by the '{0}' provider.</value>
</data>
<data name="OleDb_Fill_NotADODB" xml:space="preserve">
<value>Object is not an ADODB.RecordSet or an ADODB.Record.</value>
</data>
<data name="OleDb_Fill_EmptyRecordSet" xml:space="preserve">
<value>Unable to retrieve the '{0}' interface from the ADODB.RecordSet object.</value>
</data>
<data name="OleDb_Fill_EmptyRecord" xml:space="preserve">
<value>Unable to retrieve the IRow interface from the ADODB.Record object.</value>
</data>
<data name="OleDb_ISourcesRowsetNotSupported" xml:space="preserve">
<value>Type does not support the OLEDB interface ISourcesRowset</value>
</data>
<data name="OleDb_IDBInfoNotSupported" xml:space="preserve">
<value>Cannot construct the ReservedWords schema collection because the provider does not support IDBInfo.</value>
</data>
<data name="OleDb_PropertyNotSupported" xml:space="preserve">
<value>The property's value was not set because the provider did not support the '{0}' property, or the consumer attempted to get or set values of properties not in the Initialization property group and the data source object is uninitialized.</value>
</data>
<data name="OleDb_PropertyBadValue" xml:space="preserve">
<value>Failed to initialize the '{0}' property for one of the following reasons:
The value data type was not the data type of the property or was not null. For example, the property was DBPROP_MEMORYUSAGE, which has a data type of Int32, and the data type was Int64.
The value was not a valid value. For example, the property was DBPROP_MEMORYUSAGE and the value was negative.
The value was a valid value for the property and the provider supports the property as a settable property, but the provider does not support the value specified. This includes the case where the value was added to the property in OLEDB after the provider was written.</value>
</data>
<data name="OleDb_PropertyBadOption" xml:space="preserve">
<value>The value of Options was invalid.</value>
</data>
<data name="OleDb_PropertyBadColumn" xml:space="preserve">
<value>The ColumnID element was invalid.</value>
</data>
<data name="OleDb_PropertyNotAllSettable" xml:space="preserve">
<value>A '{0}' property was specified to be applied to all columns but could not be applied to one or more of them.</value>
</data>
<data name="OleDb_PropertyNotSettable" xml:space="preserve">
<value>The '{0}' property was read-only, or the consumer attempted to set values of properties in the Initialization property group after the data source object was initialized. Consumers can set the value of a read-only property to its current value. This status is also returned if a settable column property could not be set for the particular column.</value>
</data>
<data name="OleDb_PropertyNotSet" xml:space="preserve">
<value>The optional '{0}' property's value was not set to the specified value and setting the property to the specified value was not possible.</value>
</data>
<data name="OleDb_PropertyConflicting" xml:space="preserve">
<value>The '{0}'property's value was not set because doing so would have conflicted with an existing property.</value>
</data>
<data name="OleDb_PropertyNotAvailable" xml:space="preserve">
<value>(Reserved).</value>
</data>
<data name="OleDb_PropertyStatusUnknown" xml:space="preserve">
<value>The provider returned an unknown DBPROPSTATUS_ value '{0}'.</value>
</data>
<data name="OleDb_BadAccessor" xml:space="preserve">
<value>Accessor validation was deferred and was performed while the method returned data. The binding was invalid for this column or parameter.</value>
</data>
<data name="OleDb_BadStatusRowAccessor" xml:space="preserve">
<value>OleDbDataAdapter internal error: invalid row set accessor: Ordinal={0} Status={1}.</value>
</data>
<data name="OleDb_CantConvertValue" xml:space="preserve">
<value>The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable.</value>
</data>
<data name="OleDb_CantCreate" xml:space="preserve">
<value>The provider could not allocate memory in which to return {0} data.</value>
</data>
<data name="OleDb_DataOverflow" xml:space="preserve">
<value>Conversion failed because the {0} data value overflowed the type specified for the {0} value part in the consumer's buffer.</value>
</data>
<data name="OleDb_GVtUnknown" xml:space="preserve">
<value>OleDbDataAdapter internal error: [get] Unknown OLEDB data type: 0x{0} ({1}).</value>
</data>
<data name="OleDb_SignMismatch" xml:space="preserve">
<value>Conversion failed because the {0} data value was signed and the type specified for the {0} value part in the consumer's buffer was unsigned.</value>
</data>
<data name="OleDb_SVtUnknown" xml:space="preserve">
<value>OleDbDataAdapter internal error: [set] Unknown OLEDB data type: 0x{0} ({1}).</value>
</data>
<data name="OleDb_Unavailable" xml:space="preserve">
<value>The provider could not determine the {0} value. For example, the row was just created, the default for the {0} column was not available, and the consumer had not yet set a new {0} value.</value>
</data>
<data name="OleDb_UnexpectedStatusValue" xml:space="preserve">
<value>OLEDB Provider returned an unexpected status value of {0}.</value>
</data>
<data name="OleDb_ThreadApartmentState" xml:space="preserve">
<value>The OleDbDataReader.Read must be used from the same thread on which is was created if that thread's ApartmentState was not ApartmentState.MTA.</value>
</data>
<data name="OleDb_NoErrorMessage" xml:space="preserve">
<value>Unspecified error: {0}</value>
</data>
<data name="OleDb_FailedGetDescription" xml:space="preserve">
<value>IErrorInfo.GetDescription failed with {0}.</value>
</data>
<data name="OleDb_FailedGetSource" xml:space="preserve">
<value>IErrorInfo.GetSource failed with {0}.</value>
</data>
<data name="OleDb_DBBindingGetVector" xml:space="preserve">
<value>DBTYPE_VECTOR data is not supported by the Data OLEDB Provider (System.Data.OleDb).</value>
</data>
<data name="SQL_InvalidDataLength" xml:space="preserve">
<value>Data length '{0}' is less than 0.</value>
</data>
<data name="PlatformNotSupported_OleDb" xml:space="preserve">
<value>System.Data.OleDb is not supported on this platform.</value>
</data>
<data name="PlatformNotSupported_GetIDispatchForObject" xml:space="preserve">
<value>Marshal.GetIDispatchForObject API not available on this plaTform</value>
</data>
<data name="ADP_EmptyString" xml:space="preserve">
<value>Expecting non-empty string for '{0}' parameter.</value>
</data>
<data name="ADP_UdlFileError" xml:space="preserve">
<value>Unable to load the UDL file.</value>
</data>
<data name="ADP_InvalidUDL" xml:space="preserve">
<value>Invalid UDL file.</value>
</data>
<data name="ADP_InvalidDataDirectory" xml:space="preserve">
<value>The DataDirectory substitute is not a string.</value>
</data>
<data name="ADP_InvalidKey" xml:space="preserve">
<value>Invalid keyword, contain one or more of 'no characters', 'control characters', 'leading or trailing whitespace' or 'leading semicolons'.</value>
</data>
<data name="ADP_InvalidValue" xml:space="preserve">
<value>The value contains embedded nulls (\\u0000).</value>
</data>
<data name="ADP_NoConnectionString" xml:space="preserve">
<value>The ConnectionString property has not been initialized.</value>
</data>
<data name="OleDb_ConfigUnableToLoadXmlMetaDataFile" xml:space="preserve">
<value>Unable to load the XML file specified in configuration setting '{0}'.</value>
</data>
<data name="OleDb_ConfigWrongNumberOfValues" xml:space="preserve">
<value>The '{0}' configuration setting has the wrong number of values.</value>
</data>
<data name="ADP_PooledOpenTimeout" xml:space="preserve">
<value>Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.</value>
</data>
<data name="ADP_NonPooledOpenTimeout" xml:space="preserve">
<value>Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded.</value>
</data>
<data name="ADP_TransactionConnectionMismatch" xml:space="preserve">
<value>The transaction is either not associated with the current connection or has been completed.</value>
</data>
<data name="ADP_TransactionRequired" xml:space="preserve">
<value>{0} requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.</value>
</data>
<data name="ADP_CommandTextRequired" xml:space="preserve">
<value>{0}: CommandText property has not been initialized</value>
</data>
<data name="ADP_ConnectionRequired" xml:space="preserve">
<value>{0}: Connection property has not been initialized.</value>
</data>
<data name="ADP_OpenConnectionRequired" xml:space="preserve">
<value>{0} requires an open and available Connection. {1}</value>
</data>
<data name="ADP_NoStoredProcedureExists" xml:space="preserve">
<value>The stored procedure '{0}' doesn't exist.</value>
</data>
<data name="ADP_OpenReaderExists" xml:space="preserve">
<value>There is already an open DataReader associated with this Command which must be closed first.</value>
</data>
<data name="ADP_TransactionCompleted" xml:space="preserve">
<value>The transaction assigned to this command must be the most nested pending local transaction.</value>
</data>
<data name="ADP_NonSeqByteAccess" xml:space="preserve">
<value>Invalid {2} attempt at dataIndex '{0}'. With CommandBehavior.SequentialAccess, you may only read from dataIndex '{1}' or greater.</value>
</data>
<data name="ADP_NumericToDecimalOverflow" xml:space="preserve">
<value>The numerical value is too large to fit into a 96 bit decimal.</value>
</data>
<data name="ADP_NonSequentialColumnAccess" xml:space="preserve">
<value>Invalid attempt to read from column ordinal '{0}'. With CommandBehavior.SequentialAccess, you may only read from column ordinal '{1}' or greater.</value>
</data>
<data name="ADP_FillRequiresSourceTableName" xml:space="preserve">
<value>Fill: expected a non-empty string for the SourceTable name.</value>
</data>
<data name="ADP_InvalidCommandTimeout" xml:space="preserve">
<value>Invalid CommandTimeout value {0}; the value must be >= 0.</value>
</data>
<data name="ADP_DeriveParametersNotSupported" xml:space="preserve">
<value>{0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType.{1}.</value>
</data>
<data name="ADP_UninitializedParameterSize" xml:space="preserve">
<value>{1}[{0}]: the Size property has an invalid size of 0.</value>
</data>
<data name="ADP_PrepareParameterType" xml:space="preserve">
<value>{0}.Prepare method requires all parameters to have an explicitly set type.</value>
</data>
<data name="ADP_PrepareParameterSize" xml:space="preserve">
<value>{0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size.</value>
</data>
<data name="ADP_PrepareParameterScale" xml:space="preserve">
<value>{0}.Prepare method requires parameters of type '{1}' have an explicitly set Precision and Scale.</value>
</data>
<data name="ADP_ClosedConnectionError" xml:space="preserve">
<value>Invalid operation. The connection is closed.</value>
</data>
<data name="ADP_ConnectionAlreadyOpen" xml:space="preserve">
<value>The connection was not closed. {0}</value>
</data>
<data name="ADP_TransactionPresent" xml:space="preserve">
<value>Connection currently has transaction enlisted. Finish current transaction and retry.</value>
</data>
<data name="ADP_LocalTransactionPresent" xml:space="preserve">
<value>Cannot enlist in the transaction because a local transaction is in progress on the connection. Finish local transaction and retry.</value>
</data>
<data name="ADP_OpenConnectionPropertySet" xml:space="preserve">
<value>Not allowed to change the '{0}' property. {1}</value>
</data>
<data name="ADP_EmptyDatabaseName" xml:space="preserve">
<value>Database cannot be null, the empty string, or string of only whitespace.</value>
</data>
<data name="ADP_InternalConnectionError" xml:space="preserve">
<value>Internal DbConnection Error: {0}</value>
</data>
<data name="ADP_InvalidConnectTimeoutValue" xml:space="preserve">
<value>Invalid 'Connect Timeout' value which must be an integer >= 0.</value>
</data>
<data name="ADP_DataReaderNoData" xml:space="preserve">
<value>No data exists for the row/column.</value>
</data>
<data name="ADP_InvalidDataType" xml:space="preserve">
<value>The parameter data type of {0} is invalid.</value>
</data>
<data name="ADP_DbTypeNotSupported" xml:space="preserve">
<value>No mapping exists from DbType {0} to a known {1}.</value>
</data>
<data name="ADP_UnknownDataTypeCode" xml:space="preserve">
<value>Unable to handle an unknown TypeCode {0} returned by Type {1}.</value>
</data>
<data name="ADP_InvalidOffsetValue" xml:space="preserve">
<value>Invalid parameter Offset value '{0}'. The value must be greater than or equal to 0.</value>
</data>
<data name="ADP_InvalidSizeValue" xml:space="preserve">
<value>Invalid parameter Size value '{0}'. The value must be greater than or equal to 0.</value>
</data>
<data name="ADP_ParameterConversionFailed" xml:space="preserve">
<value>Failed to convert parameter value from a {0} to a {1}.</value>
</data>
<data name="ADP_ParallelTransactionsNotSupported" xml:space="preserve">
<value>{0} does not support parallel transactions.</value>
</data>
<data name="ADP_TransactionZombied" xml:space="preserve">
<value>This {0} has completed; it is no longer usable.</value>
</data>
<data name="MDF_AmbigousCollectionName" xml:space="preserve">
<value>The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly.</value>
</data>
<data name="MDF_CollectionNameISNotUnique" xml:space="preserve">
<value>There are multiple collections named '{0}'.</value>
</data>
<data name="MDF_DataTableDoesNotExist" xml:space="preserve">
<value>The collection '{0}' is missing from the metadata XML.</value>
</data>
<data name="MDF_IncorrectNumberOfDataSourceInformationRows" xml:space="preserve">
<value>The DataSourceInformation table must contain exactly one row.</value>
</data>
<data name="MDF_InvalidRestrictionValue" xml:space="preserve">
<value>'{2}' is not a valid value for the '{1}' restriction of the '{0}' schema collection.</value>
</data>
<data name="MDF_InvalidXml" xml:space="preserve">
<value>The metadata XML is invalid.</value>
</data>
<data name="MDF_InvalidXmlMissingColumn" xml:space="preserve">
<value>The metadata XML is invalid. The {0} collection must contain a {1} column and it must be a string column.</value>
</data>
<data name="MDF_InvalidXmlInvalidValue" xml:space="preserve">
<value>The metadata XML is invalid. The {1} column of the {0} collection must contain a non-empty string.</value>
</data>
<data name="MDF_MissingDataSourceInformationColumn" xml:space="preserve">
<value>One of the required DataSourceInformation tables columns is missing.</value>
</data>
<data name="MDF_MissingRestrictionColumn" xml:space="preserve">
<value>One or more of the required columns of the restrictions collection is missing.</value>
</data>
<data name="MDF_MissingRestrictionRow" xml:space="preserve">
<value>A restriction exists for which there is no matching row in the restrictions collection.</value>
</data>
<data name="MDF_NoColumns" xml:space="preserve">
<value>The schema table contains no columns.</value>
</data>
<data name="MDF_QueryFailed" xml:space="preserve">
<value>Unable to build the '{0}' collection because execution of the SQL query failed. See the inner exception for details.</value>
</data>
<data name="MDF_TooManyRestrictions" xml:space="preserve">
<value>More restrictions were provided than the requested schema ('{0}') supports.</value>
</data>
<data name="MDF_UnableToBuildCollection" xml:space="preserve">
<value>Unable to build schema collection '{0}';</value>
</data>
<data name="MDF_UndefinedCollection" xml:space="preserve">
<value>The requested collection ({0}) is not defined.</value>
</data>
<data name="MDF_UndefinedPopulationMechanism" xml:space="preserve">
<value>The population mechanism '{0}' is not defined.</value>
</data>
<data name="MDF_UnsupportedVersion" xml:space="preserve">
<value>The requested collection ({0}) is not supported by this version of the provider.</value>
</data>
<data name="ADP_QuotePrefixNotSet" xml:space="preserve">
<value>{0} requires open connection when the quote prefix has not been set.</value>
</data>
<data name="Odbc_MDACWrongVersion" xml:space="preserve">
<value>The Odbc Data Provider requires Microsoft Data Access Components (MDAC) version 2.6 or later. Version {0} was found currently installed.</value>
</data>
<data name="OleDb_MDACWrongVersion" xml:space="preserve">
<value>The OLEDB Data Provider requires Microsoft Data Access Components (MDAC) version 2.6 or later. Version {0} was found currently installed.</value>
</data>
</root>
|
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ADP_CollectionIndexInt32" xml:space="preserve">
<value>Invalid index {0} for this {1} with Count={2}.</value>
</data>
<data name="ADP_CollectionIndexString" xml:space="preserve">
<value>An {0} with {1} '{2}' is not contained by this {3}.</value>
</data>
<data name="ADP_CollectionInvalidType" xml:space="preserve">
<value>The {0} only accepts non-null {1} type objects, not {2} objects.</value>
</data>
<data name="ADP_CollectionIsNotParent" xml:space="preserve">
<value>The {0} is already contained by another {1}.</value>
</data>
<data name="ADP_CollectionNullValue" xml:space="preserve">
<value>The {0} only accepts non-null {1} type objects.</value>
</data>
<data name="ADP_CollectionRemoveInvalidObject" xml:space="preserve">
<value>Attempted to remove an {0} that is not contained by this {1}.</value>
</data>
<data name="ADP_ConnectionStateMsg_Closed" xml:space="preserve">
<value>The connection's current state is closed.</value>
</data>
<data name="ADP_ConnectionStateMsg_Connecting" xml:space="preserve">
<value>The connection's current state is connecting.</value>
</data>
<data name="ADP_ConnectionStateMsg_Open" xml:space="preserve">
<value>The connection's current state is open.</value>
</data>
<data name="ADP_ConnectionStateMsg_OpenExecuting" xml:space="preserve">
<value>The connection's current state is executing.</value>
</data>
<data name="ADP_ConnectionStateMsg_OpenFetching" xml:space="preserve">
<value>The connection's current state is fetching.</value>
</data>
<data name="ADP_ConnectionStateMsg" xml:space="preserve">
<value>The connection's current state: {0}.</value>
</data>
<data name="ADP_ConnectionStringSyntax" xml:space="preserve">
<value>Format of the initialization string does not conform to specification starting at index {0}.</value>
</data>
<data name="ADP_DataReaderClosed" xml:space="preserve">
<value>Invalid attempt to call {0} when reader is closed.</value>
</data>
<data name="ADP_InvalidEnumerationValue" xml:space="preserve">
<value>The {0} enumeration value, {1}, is invalid.</value>
</data>
<data name="SqlConvert_ConvertFailed" xml:space="preserve">
<value>Cannot convert object of type '{0}' to object of type '{1}'.</value>
</data>
<data name="ADP_InvalidConnectionOptionValue" xml:space="preserve">
<value>Invalid value for key '{0}'.</value>
</data>
<data name="ADP_KeywordNotSupported" xml:space="preserve">
<value>Keyword not supported: '{0}'.</value>
</data>
<data name="ADP_InternalProviderError" xml:space="preserve">
<value>Internal data provider error {0}.</value>
</data>
<data name="ADP_InvalidMultipartName" xml:space="preserve">
<value>{0} "{1}".</value>
</data>
<data name="ADP_InvalidMultipartNameQuoteUsage" xml:space="preserve">
<value>{0} "{1}", incorrect usage of quotes.</value>
</data>
<data name="ADP_InvalidMultipartNameToManyParts" xml:space="preserve">
<value>{0} "{1}", the current limit of "{2}" is insufficient.</value>
</data>
<data name="OLEDB_OLEDBCommandText" xml:space="preserve">
<value>OleDbCommandBuilder.DeriveParameters failed because the OleDbCommandBuilder.CommandText property value is an invalid multipart name</value>
</data>
<data name="ADP_InvalidSourceBufferIndex" xml:space="preserve">
<value>Invalid source buffer (size of {0}) offset: {1}</value>
</data>
<data name="ADP_InvalidDestinationBufferIndex" xml:space="preserve">
<value>Invalid destination buffer (size of {0}) offset: {1}</value>
</data>
<data name="OleDb_SchemaRowsetsNotSupported" xml:space="preserve">
<value>'{0}' interface is not supported by the '{1}' provider. GetOleDbSchemaTable is unavailable with the current provider.</value>
</data>
<data name="OleDb_NoErrorInformation2" xml:space="preserve">
<value>'{0}' failed with no error message available, result code: {1}.</value>
</data>
<data name="OleDb_NoErrorInformation" xml:space="preserve">
<value>No error message available, result code: {0}.</value>
</data>
<data name="OleDb_MDACNotAvailable" xml:space="preserve">
<value>The data providers require Microsoft Data Access Components (MDAC). Please install Microsoft Data Access Components (MDAC) version 2.6 or later.</value>
</data>
<data name="OleDb_MSDASQLNotSupported" xml:space="preserve">
<value>The data provider for OLEDB (System.Data.OleDb) does not support the Microsoft OLEDB Provider for ODBC Drivers (MSDASQL). Use the data provider for ODBC (System.Data.Odbc).</value>
</data>
<data name="OleDb_PossiblePromptNotUserInteractive" xml:space="preserve">
<value>The data provider for OLEDB will not allow the OLEDB Provider to prompt the user in a non-interactive environment.</value>
</data>
<data name="OleDb_ProviderUnavailable" xml:space="preserve">
<value>The '{0}' provider is not registered on the local machine.</value>
</data>
<data name="OleDb_CommandTextNotSupported" xml:space="preserve">
<value>The ICommandText interface is not supported by the '{0}' provider. Use CommandType.TableDirect instead.</value>
</data>
<data name="OleDb_TransactionsNotSupported" xml:space="preserve">
<value>The ITransactionLocal interface is not supported by the '{0}' provider. Local transactions are unavailable with the current provider.</value>
</data>
<data name="OleDb_AsynchronousNotSupported" xml:space="preserve">
<value>'Asynchronous Processing' is not a supported feature of the Data OLEDB Provider (System.Data.OleDb).</value>
</data>
<data name="OleDb_NoProviderSpecified" xml:space="preserve">
<value>An OLEDB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.</value>
</data>
<data name="OleDb_InvalidProviderSpecified" xml:space="preserve">
<value>The OLEDB Provider specified in the ConnectionString is too long.</value>
</data>
<data name="OleDb_InvalidRestrictionsDbInfoKeywords" xml:space="preserve">
<value>No restrictions are expected for the DbInfoKeywords OleDbSchemaGuid.</value>
</data>
<data name="OleDb_InvalidRestrictionsDbInfoLiteral" xml:space="preserve">
<value>No restrictions are expected for the DbInfoLiterals OleDbSchemaGuid.</value>
</data>
<data name="OleDb_InvalidRestrictionsSchemaGuids" xml:space="preserve">
<value>No restrictions are expected for the schema guid OleDbSchemaGuid.</value>
</data>
<data name="OleDb_NotSupportedSchemaTable" xml:space="preserve">
<value>The {0} OleDbSchemaGuid is not a supported schema by the '{1}' provider.</value>
</data>
<data name="OleDb_CommandParameterBadAccessor" xml:space="preserve">
<value>Command parameter[{0}] '{1}' is invalid.</value>
</data>
<data name="OleDb_CommandParameterCantConvertValue" xml:space="preserve">
<value>Command parameter[{0}] '{1}' data value could not be converted for reasons other than sign mismatch or data overflow.</value>
</data>
<data name="OleDb_CommandParameterSignMismatch" xml:space="preserve">
<value>Conversion failed for command parameter[{0}] '{1}' because the data value was signed and the type used by the provider was unsigned.</value>
</data>
<data name="OleDb_CommandParameterDataOverflow" xml:space="preserve">
<value>Conversion failed for command parameter[{0}] '{1}' because the data value overflowed the type used by the provider.</value>
</data>
<data name="OleDb_CommandParameterUnavailable" xml:space="preserve">
<value>Provider encountered an error while sending command parameter[{0}] '{1}' value and stopped processing.</value>
</data>
<data name="OleDb_CommandParameterDefault" xml:space="preserve">
<value>Parameter[{0}] '{1}' has no default value.</value>
</data>
<data name="OleDb_CommandParameterError" xml:space="preserve">
<value>Error occurred with parameter[{0}]: {1}.</value>
</data>
<data name="OleDb_BadStatus_ParamAcc" xml:space="preserve">
<value>System.Data.OleDb.OleDbDataAdapter internal error: invalid parameter accessor: {0} {1}.</value>
</data>
<data name="OleDb_UninitializedParameters" xml:space="preserve">
<value>Parameter[{0}]: the OleDbType property is uninitialized: OleDbType.{1}.</value>
</data>
<data name="OleDb_NoProviderSupportForParameters" xml:space="preserve">
<value>The ICommandWithParameters interface is not supported by the '{0}' provider. Command parameters are unsupported with the current provider.</value>
</data>
<data name="OleDb_NoProviderSupportForSProcResetParameters" xml:space="preserve">
<value>Retrieving procedure parameter information is not supported by the '{0}' provider.</value>
</data>
<data name="OleDb_Fill_NotADODB" xml:space="preserve">
<value>Object is not an ADODB.RecordSet or an ADODB.Record.</value>
</data>
<data name="OleDb_Fill_EmptyRecordSet" xml:space="preserve">
<value>Unable to retrieve the '{0}' interface from the ADODB.RecordSet object.</value>
</data>
<data name="OleDb_Fill_EmptyRecord" xml:space="preserve">
<value>Unable to retrieve the IRow interface from the ADODB.Record object.</value>
</data>
<data name="OleDb_ISourcesRowsetNotSupported" xml:space="preserve">
<value>Type does not support the OLEDB interface ISourcesRowset</value>
</data>
<data name="OleDb_IDBInfoNotSupported" xml:space="preserve">
<value>Cannot construct the ReservedWords schema collection because the provider does not support IDBInfo.</value>
</data>
<data name="OleDb_PropertyNotSupported" xml:space="preserve">
<value>The property's value was not set because the provider did not support the '{0}' property, or the consumer attempted to get or set values of properties not in the Initialization property group and the data source object is uninitialized.</value>
</data>
<data name="OleDb_PropertyBadValue" xml:space="preserve">
<value>Failed to initialize the '{0}' property for one of the following reasons:
The value data type was not the data type of the property or was not null. For example, the property was DBPROP_MEMORYUSAGE, which has a data type of Int32, and the data type was Int64.
The value was not a valid value. For example, the property was DBPROP_MEMORYUSAGE and the value was negative.
The value was a valid value for the property and the provider supports the property as a settable property, but the provider does not support the value specified. This includes the case where the value was added to the property in OLEDB after the provider was written.</value>
</data>
<data name="OleDb_PropertyBadOption" xml:space="preserve">
<value>The value of Options was invalid.</value>
</data>
<data name="OleDb_PropertyBadColumn" xml:space="preserve">
<value>The ColumnID element was invalid.</value>
</data>
<data name="OleDb_PropertyNotAllSettable" xml:space="preserve">
<value>A '{0}' property was specified to be applied to all columns but could not be applied to one or more of them.</value>
</data>
<data name="OleDb_PropertyNotSettable" xml:space="preserve">
<value>The '{0}' property was read-only, or the consumer attempted to set values of properties in the Initialization property group after the data source object was initialized. Consumers can set the value of a read-only property to its current value. This status is also returned if a settable column property could not be set for the particular column.</value>
</data>
<data name="OleDb_PropertyNotSet" xml:space="preserve">
<value>The optional '{0}' property's value was not set to the specified value and setting the property to the specified value was not possible.</value>
</data>
<data name="OleDb_PropertyConflicting" xml:space="preserve">
<value>The '{0}'property's value was not set because doing so would have conflicted with an existing property.</value>
</data>
<data name="OleDb_PropertyNotAvailable" xml:space="preserve">
<value>(Reserved).</value>
</data>
<data name="OleDb_PropertyStatusUnknown" xml:space="preserve">
<value>The provider returned an unknown DBPROPSTATUS_ value '{0}'.</value>
</data>
<data name="OleDb_BadAccessor" xml:space="preserve">
<value>Accessor validation was deferred and was performed while the method returned data. The binding was invalid for this column or parameter.</value>
</data>
<data name="OleDb_BadStatusRowAccessor" xml:space="preserve">
<value>OleDbDataAdapter internal error: invalid row set accessor: Ordinal={0} Status={1}.</value>
</data>
<data name="OleDb_CantConvertValue" xml:space="preserve">
<value>The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable.</value>
</data>
<data name="OleDb_CantCreate" xml:space="preserve">
<value>The provider could not allocate memory in which to return {0} data.</value>
</data>
<data name="OleDb_DataOverflow" xml:space="preserve">
<value>Conversion failed because the {0} data value overflowed the type specified for the {0} value part in the consumer's buffer.</value>
</data>
<data name="OleDb_GVtUnknown" xml:space="preserve">
<value>OleDbDataAdapter internal error: [get] Unknown OLEDB data type: 0x{0} ({1}).</value>
</data>
<data name="OleDb_SignMismatch" xml:space="preserve">
<value>Conversion failed because the {0} data value was signed and the type specified for the {0} value part in the consumer's buffer was unsigned.</value>
</data>
<data name="OleDb_SVtUnknown" xml:space="preserve">
<value>OleDbDataAdapter internal error: [set] Unknown OLEDB data type: 0x{0} ({1}).</value>
</data>
<data name="OleDb_Unavailable" xml:space="preserve">
<value>The provider could not determine the {0} value. For example, the row was just created, the default for the {0} column was not available, and the consumer had not yet set a new {0} value.</value>
</data>
<data name="OleDb_UnexpectedStatusValue" xml:space="preserve">
<value>OLEDB Provider returned an unexpected status value of {0}.</value>
</data>
<data name="OleDb_ThreadApartmentState" xml:space="preserve">
<value>The OleDbDataReader.Read must be used from the same thread on which is was created if that thread's ApartmentState was not ApartmentState.MTA.</value>
</data>
<data name="OleDb_NoErrorMessage" xml:space="preserve">
<value>Unspecified error: {0}</value>
</data>
<data name="OleDb_FailedGetDescription" xml:space="preserve">
<value>IErrorInfo.GetDescription failed with {0}.</value>
</data>
<data name="OleDb_FailedGetSource" xml:space="preserve">
<value>IErrorInfo.GetSource failed with {0}.</value>
</data>
<data name="OleDb_DBBindingGetVector" xml:space="preserve">
<value>DBTYPE_VECTOR data is not supported by the Data OLEDB Provider (System.Data.OleDb).</value>
</data>
<data name="SQL_InvalidDataLength" xml:space="preserve">
<value>Data length '{0}' is less than 0.</value>
</data>
<data name="PlatformNotSupported_OleDb" xml:space="preserve">
<value>System.Data.OleDb is not supported on this platform.</value>
</data>
<data name="PlatformNotSupported_GetIDispatchForObject" xml:space="preserve">
<value>Marshal.GetIDispatchForObject API not available on this plaTform</value>
</data>
<data name="ADP_EmptyString" xml:space="preserve">
<value>Expecting non-empty string for '{0}' parameter.</value>
</data>
<data name="ADP_UdlFileError" xml:space="preserve">
<value>Unable to load the UDL file.</value>
</data>
<data name="ADP_InvalidUDL" xml:space="preserve">
<value>Invalid UDL file.</value>
</data>
<data name="ADP_InvalidDataDirectory" xml:space="preserve">
<value>The DataDirectory substitute is not a string.</value>
</data>
<data name="ADP_InvalidKey" xml:space="preserve">
<value>Invalid keyword, contain one or more of 'no characters', 'control characters', 'leading or trailing whitespace' or 'leading semicolons'.</value>
</data>
<data name="ADP_InvalidValue" xml:space="preserve">
<value>The value contains embedded nulls (\\u0000).</value>
</data>
<data name="ADP_NoConnectionString" xml:space="preserve">
<value>The ConnectionString property has not been initialized.</value>
</data>
<data name="OleDb_ConfigUnableToLoadXmlMetaDataFile" xml:space="preserve">
<value>Unable to load the XML file specified in configuration setting '{0}'.</value>
</data>
<data name="OleDb_ConfigWrongNumberOfValues" xml:space="preserve">
<value>The '{0}' configuration setting has the wrong number of values.</value>
</data>
<data name="ADP_PooledOpenTimeout" xml:space="preserve">
<value>Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.</value>
</data>
<data name="ADP_NonPooledOpenTimeout" xml:space="preserve">
<value>Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded.</value>
</data>
<data name="ADP_TransactionConnectionMismatch" xml:space="preserve">
<value>The transaction is either not associated with the current connection or has been completed.</value>
</data>
<data name="ADP_TransactionRequired" xml:space="preserve">
<value>{0} requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.</value>
</data>
<data name="ADP_CommandTextRequired" xml:space="preserve">
<value>{0}: CommandText property has not been initialized</value>
</data>
<data name="ADP_ConnectionRequired" xml:space="preserve">
<value>{0}: Connection property has not been initialized.</value>
</data>
<data name="ADP_OpenConnectionRequired" xml:space="preserve">
<value>{0} requires an open and available Connection. {1}</value>
</data>
<data name="ADP_NoStoredProcedureExists" xml:space="preserve">
<value>The stored procedure '{0}' doesn't exist.</value>
</data>
<data name="ADP_OpenReaderExists" xml:space="preserve">
<value>There is already an open DataReader associated with this Command which must be closed first.</value>
</data>
<data name="ADP_TransactionCompleted" xml:space="preserve">
<value>The transaction assigned to this command must be the most nested pending local transaction.</value>
</data>
<data name="ADP_NonSeqByteAccess" xml:space="preserve">
<value>Invalid {2} attempt at dataIndex '{0}'. With CommandBehavior.SequentialAccess, you may only read from dataIndex '{1}' or greater.</value>
</data>
<data name="ADP_NumericToDecimalOverflow" xml:space="preserve">
<value>The numerical value is too large to fit into a 96 bit decimal.</value>
</data>
<data name="ADP_NonSequentialColumnAccess" xml:space="preserve">
<value>Invalid attempt to read from column ordinal '{0}'. With CommandBehavior.SequentialAccess, you may only read from column ordinal '{1}' or greater.</value>
</data>
<data name="ADP_FillRequiresSourceTableName" xml:space="preserve">
<value>Fill: expected a non-empty string for the SourceTable name.</value>
</data>
<data name="ADP_InvalidCommandTimeout" xml:space="preserve">
<value>Invalid CommandTimeout value {0}; the value must be >= 0.</value>
</data>
<data name="ADP_DeriveParametersNotSupported" xml:space="preserve">
<value>{0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType.{1}.</value>
</data>
<data name="ADP_UninitializedParameterSize" xml:space="preserve">
<value>{1}[{0}]: the Size property has an invalid size of 0.</value>
</data>
<data name="ADP_PrepareParameterType" xml:space="preserve">
<value>{0}.Prepare method requires all parameters to have an explicitly set type.</value>
</data>
<data name="ADP_PrepareParameterSize" xml:space="preserve">
<value>{0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size.</value>
</data>
<data name="ADP_PrepareParameterScale" xml:space="preserve">
<value>{0}.Prepare method requires parameters of type '{1}' have an explicitly set Precision and Scale.</value>
</data>
<data name="ADP_ClosedConnectionError" xml:space="preserve">
<value>Invalid operation. The connection is closed.</value>
</data>
<data name="ADP_ConnectionAlreadyOpen" xml:space="preserve">
<value>The connection was not closed. {0}</value>
</data>
<data name="ADP_TransactionPresent" xml:space="preserve">
<value>Connection currently has transaction enlisted. Finish current transaction and retry.</value>
</data>
<data name="ADP_LocalTransactionPresent" xml:space="preserve">
<value>Cannot enlist in the transaction because a local transaction is in progress on the connection. Finish local transaction and retry.</value>
</data>
<data name="ADP_OpenConnectionPropertySet" xml:space="preserve">
<value>Not allowed to change the '{0}' property. {1}</value>
</data>
<data name="ADP_EmptyDatabaseName" xml:space="preserve">
<value>Database cannot be null, the empty string, or string of only whitespace.</value>
</data>
<data name="ADP_InternalConnectionError" xml:space="preserve">
<value>Internal DbConnection Error: {0}</value>
</data>
<data name="ADP_InvalidConnectTimeoutValue" xml:space="preserve">
<value>Invalid 'Connect Timeout' value which must be an integer >= 0.</value>
</data>
<data name="ADP_DataReaderNoData" xml:space="preserve">
<value>No data exists for the row/column.</value>
</data>
<data name="ADP_InvalidDataType" xml:space="preserve">
<value>The parameter data type of {0} is invalid.</value>
</data>
<data name="ADP_DbTypeNotSupported" xml:space="preserve">
<value>No mapping exists from DbType {0} to a known {1}.</value>
</data>
<data name="ADP_UnknownDataTypeCode" xml:space="preserve">
<value>Unable to handle an unknown TypeCode {0} returned by Type {1}.</value>
</data>
<data name="ADP_InvalidOffsetValue" xml:space="preserve">
<value>Invalid parameter Offset value '{0}'. The value must be greater than or equal to 0.</value>
</data>
<data name="ADP_InvalidSizeValue" xml:space="preserve">
<value>Invalid parameter Size value '{0}'. The value must be greater than or equal to 0.</value>
</data>
<data name="ADP_ParameterConversionFailed" xml:space="preserve">
<value>Failed to convert parameter value from a {0} to a {1}.</value>
</data>
<data name="ADP_ParallelTransactionsNotSupported" xml:space="preserve">
<value>{0} does not support parallel transactions.</value>
</data>
<data name="ADP_TransactionZombied" xml:space="preserve">
<value>This {0} has completed; it is no longer usable.</value>
</data>
<data name="MDF_AmbigousCollectionName" xml:space="preserve">
<value>The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly.</value>
</data>
<data name="MDF_CollectionNameISNotUnique" xml:space="preserve">
<value>There are multiple collections named '{0}'.</value>
</data>
<data name="MDF_DataTableDoesNotExist" xml:space="preserve">
<value>The collection '{0}' is missing from the metadata XML.</value>
</data>
<data name="MDF_IncorrectNumberOfDataSourceInformationRows" xml:space="preserve">
<value>The DataSourceInformation table must contain exactly one row.</value>
</data>
<data name="MDF_InvalidRestrictionValue" xml:space="preserve">
<value>'{2}' is not a valid value for the '{1}' restriction of the '{0}' schema collection.</value>
</data>
<data name="MDF_InvalidXml" xml:space="preserve">
<value>The metadata XML is invalid.</value>
</data>
<data name="MDF_InvalidXmlMissingColumn" xml:space="preserve">
<value>The metadata XML is invalid. The {0} collection must contain a {1} column and it must be a string column.</value>
</data>
<data name="MDF_InvalidXmlInvalidValue" xml:space="preserve">
<value>The metadata XML is invalid. The {1} column of the {0} collection must contain a non-empty string.</value>
</data>
<data name="MDF_MissingDataSourceInformationColumn" xml:space="preserve">
<value>One of the required DataSourceInformation tables columns is missing.</value>
</data>
<data name="MDF_MissingRestrictionColumn" xml:space="preserve">
<value>One or more of the required columns of the restrictions collection is missing.</value>
</data>
<data name="MDF_MissingRestrictionRow" xml:space="preserve">
<value>A restriction exists for which there is no matching row in the restrictions collection.</value>
</data>
<data name="MDF_NoColumns" xml:space="preserve">
<value>The schema table contains no columns.</value>
</data>
<data name="MDF_QueryFailed" xml:space="preserve">
<value>Unable to build the '{0}' collection because execution of the SQL query failed. See the inner exception for details.</value>
</data>
<data name="MDF_TooManyRestrictions" xml:space="preserve">
<value>More restrictions were provided than the requested schema ('{0}') supports.</value>
</data>
<data name="MDF_UnableToBuildCollection" xml:space="preserve">
<value>Unable to build schema collection '{0}';</value>
</data>
<data name="MDF_UndefinedCollection" xml:space="preserve">
<value>The requested collection ({0}) is not defined.</value>
</data>
<data name="MDF_UndefinedPopulationMechanism" xml:space="preserve">
<value>The population mechanism '{0}' is not defined.</value>
</data>
<data name="MDF_UnsupportedVersion" xml:space="preserve">
<value>The requested collection ({0}) is not supported by this version of the provider.</value>
</data>
<data name="ADP_QuotePrefixNotSet" xml:space="preserve">
<value>{0} requires open connection when the quote prefix has not been set.</value>
</data>
<data name="Odbc_MDACWrongVersion" xml:space="preserve">
<value>The Odbc Data Provider requires Microsoft Data Access Components (MDAC) version 2.6 or later. Version {0} was found currently installed.</value>
</data>
<data name="OleDb_MDACWrongVersion" xml:space="preserve">
<value>The OLEDB Data Provider requires Microsoft Data Access Components (MDAC) version 2.6 or later. Version {0} was found currently installed.</value>
</data>
</root>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest401/Generated401.il
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated401 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public sequential sealed MyStruct451`2<T0, T1>
extends [mscorlib]System.ValueType
implements class IBase2`2<class BaseClass0,class BaseClass1>, class IBase2`2<!T1,!T1>
{
.pack 0
.size 1
.method public hidebysig virtual instance string Method7<M0>() cil managed noinlining {
ldstr "MyStruct451::Method7.3636<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<class BaseClass0,class BaseClass1>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<[1]>()
ldstr "MyStruct451::Method7.MI.3637<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<T1,T1>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<!T1,!T1>::Method7<[1]>()
ldstr "MyStruct451::Method7.MI.3639<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot instance string ClassMethod894() cil managed noinlining {
ldstr "MyStruct451::ClassMethod894.3640()"
ret
}
.method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret }
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated401 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.T.T<T0,T1,(valuetype MyStruct451`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.T.T<T0,T1,(valuetype MyStruct451`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<!!T0,!!T1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<!!T0,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.A.T<T1,(valuetype MyStruct451`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.A.T<T1,(valuetype MyStruct451`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.A.A<(valuetype MyStruct451`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.A.A<(valuetype MyStruct451`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.A.B<(valuetype MyStruct451`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.A.B<(valuetype MyStruct451`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.B.T<T1,(valuetype MyStruct451`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.B.T<T1,(valuetype MyStruct451`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.B.A<(valuetype MyStruct451`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.B.A<(valuetype MyStruct451`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.B.B<(valuetype MyStruct451`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.B.B<(valuetype MyStruct451`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_1)
ldloca V_1
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloca V_1
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ToString() pop
pop
ldloc V_1
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_2)
ldloca V_2
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloca V_2
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ToString() pop
pop
ldloc V_2
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_3)
ldloca V_3
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloca V_3
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ToString() pop
pop
ldloc V_3
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_4)
ldloca V_4
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloca V_4
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ToString() pop
pop
ldloc V_4
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_4
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_5)
ldloca V_5
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.A<valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_6)
ldloca V_6
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_7)
ldloca V_7
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV12
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV13
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV14
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV15
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV16
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.A<valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV17
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_8)
ldloca V_8
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV18
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV19
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV20
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV21
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV22
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV23
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_9)
ldloca V_9
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
.try { ldloc V_9
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_9
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_9
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.A<valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_10)
ldloca V_10
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
.try { ldloc V_10
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_10
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_10
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_11)
ldloca V_11
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
.try { ldloc V_11
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_11
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_11
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.A<valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_12)
ldloca V_12
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
.try { ldloc V_12
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_12
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_12
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_13)
ldloca V_13
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0> ldnull
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_14)
ldloca V_14
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1> ldnull
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_15)
ldloca V_15
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0> ldnull
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_16)
ldloca V_16
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1> ldnull
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated401::MethodCallingTest()
call void Generated401::ConstrainedCallsTest()
call void Generated401::StructConstrainedInterfaceCallsTest()
call void Generated401::CalliTest()
ldc.i4 100
ret
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated401 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public sequential sealed MyStruct451`2<T0, T1>
extends [mscorlib]System.ValueType
implements class IBase2`2<class BaseClass0,class BaseClass1>, class IBase2`2<!T1,!T1>
{
.pack 0
.size 1
.method public hidebysig virtual instance string Method7<M0>() cil managed noinlining {
ldstr "MyStruct451::Method7.3636<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<class BaseClass0,class BaseClass1>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<[1]>()
ldstr "MyStruct451::Method7.MI.3637<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<T1,T1>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<!T1,!T1>::Method7<[1]>()
ldstr "MyStruct451::Method7.MI.3639<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot instance string ClassMethod894() cil managed noinlining {
ldstr "MyStruct451::ClassMethod894.3640()"
ret
}
.method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret }
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated401 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.T.T<T0,T1,(valuetype MyStruct451`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.T.T<T0,T1,(valuetype MyStruct451`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<!!T0,!!T1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<!!T0,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.A.T<T1,(valuetype MyStruct451`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.A.T<T1,(valuetype MyStruct451`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.A.A<(valuetype MyStruct451`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.A.A<(valuetype MyStruct451`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.A.B<(valuetype MyStruct451`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.A.B<(valuetype MyStruct451`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.B.T<T1,(valuetype MyStruct451`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.B.T<T1,(valuetype MyStruct451`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.B.A<(valuetype MyStruct451`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.B.A<(valuetype MyStruct451`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct451.B.B<(valuetype MyStruct451`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct451.B.B<(valuetype MyStruct451`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_1)
ldloca V_1
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloca V_1
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ToString() pop
pop
ldloc V_1
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_2)
ldloca V_2
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloca V_2
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ToString() pop
pop
ldloc V_2
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_3)
ldloca V_3
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloca V_3
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ToString() pop
pop
ldloc V_3
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_4)
ldloca V_4
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloca V_4
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ClassMethod894()
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type MyStruct451"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ToString() pop
pop
ldloc V_4
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_4
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_5)
ldloca V_5
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_5
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.A<valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_6)
ldloca V_6
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_6
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_7)
ldloca V_7
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV12
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV13
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV14
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV15
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV16
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16:
.try { ldloc V_7
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.A.A<valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV17
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_8)
ldloca V_8
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV18
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV19
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#"
call void Generated401::M.IBase2.A.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV20
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV21
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV22
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22:
.try { ldloc V_8
ldstr "MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.IBase2.B.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV23
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_9)
ldloca V_9
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
.try { ldloc V_9
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_9
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_9
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.A<valuetype MyStruct451`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_10)
ldloca V_10
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
.try { ldloc V_10
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_10
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_10
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.A.B<valuetype MyStruct451`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_11)
ldloca V_11
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
.try { ldloc V_11
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_11
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.T<class BaseClass0,valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_11
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.A<valuetype MyStruct451`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_12)
ldloca V_12
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
.try { ldloc V_12
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_12
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.T<class BaseClass1,valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_12
ldstr "MyStruct451::Method7.MI.3637<System.Object>()#" +
"MyStruct451::Method7.MI.3639<System.Object>()#"
call void Generated401::M.MyStruct451.B.B<valuetype MyStruct451`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass0> V_13)
ldloca V_13
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0> ldnull
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct451`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct451`2<class BaseClass0,class BaseClass1> V_14)
ldloca V_14
initobj valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1> ldnull
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct451`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass0> V_15)
ldloca V_15
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0> ldnull
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct451`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct451`2<class BaseClass1,class BaseClass1> V_16)
ldloca V_16
initobj valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.3636<System.Object>()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ClassMethod894()
calli default string(object)
ldstr "MyStruct451::ClassMethod894.3640()"
ldstr "valuetype MyStruct451`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1> ldnull
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance bool valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16 box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string valuetype MyStruct451`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3637<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldloc V_16
box valuetype MyStruct451`2<class BaseClass1,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct451::Method7.MI.3639<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct451`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated401::MethodCallingTest()
call void Generated401::ConstrainedCallsTest()
call void Generated401::StructConstrainedInterfaceCallsTest()
call void Generated401::CalliTest()
ldc.i4 100
ret
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/native/corehost/apphost/apphost.windows.cpp
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "apphost.windows.h"
#include "error_codes.h"
#include "pal.h"
#include "trace.h"
#include "utils.h"
#include <shellapi.h>
namespace
{
pal::string_t g_buffered_errors;
void __cdecl buffering_trace_writer(const pal::char_t* message)
{
// Add to buffer for later use.
g_buffered_errors.append(message).append(_X("\n"));
// Also write to stderr immediately
pal::err_fputs(message);
}
// Determines if the current module (apphost executable) is marked as a Windows GUI application
bool is_gui_application()
{
HMODULE module = ::GetModuleHandleW(nullptr);
assert(module != nullptr);
// https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
BYTE *bytes = reinterpret_cast<BYTE *>(module);
UINT32 pe_header_offset = reinterpret_cast<IMAGE_DOS_HEADER *>(bytes)->e_lfanew;
UINT16 subsystem = reinterpret_cast<IMAGE_NT_HEADERS *>(bytes + pe_header_offset)->OptionalHeader.Subsystem;
return subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI;
}
void write_errors_to_event_log(const pal::char_t *executable_path, const pal::char_t *executable_name)
{
// Report errors to the Windows Event Log.
auto eventSource = ::RegisterEventSourceW(nullptr, _X(".NET Runtime"));
const DWORD traceErrorID = 1023; // Matches CoreCLR ERT_UnmanagedFailFast
pal::string_t message;
message.append(_X("Description: A .NET application failed.\n"));
message.append(_X("Application: ")).append(executable_name).append(_X("\n"));
message.append(_X("Path: ")).append(executable_path).append(_X("\n"));
message.append(_X("Message: ")).append(g_buffered_errors).append(_X("\n"));
LPCWSTR messages[] = {message.c_str()};
::ReportEventW(eventSource, EVENTLOG_ERROR_TYPE, 0, traceErrorID, nullptr, 1, 0, messages, nullptr);
::DeregisterEventSource(eventSource);
}
void show_error_dialog(const pal::char_t *executable_name, int error_code)
{
pal::string_t gui_errors_disabled;
if (pal::getenv(_X("DOTNET_DISABLE_GUI_ERRORS"), &gui_errors_disabled) && pal::xtoi(gui_errors_disabled.c_str()) == 1)
return;
pal::string_t dialogMsg;
pal::string_t url;
const pal::string_t url_prefix = _X(" - ") DOTNET_CORE_APPLAUNCH_URL _X("?");
if (error_code == StatusCode::CoreHostLibMissingFailure)
{
dialogMsg = pal::string_t(_X("To run this application, you must install .NET Desktop Runtime ")) + _STRINGIFY(COMMON_HOST_PKG_VER) + _X(" (") + get_arch() + _X(").\n\n");
pal::string_t line;
pal::stringstream_t ss(g_buffered_errors);
while (std::getline(ss, line, _X('\n'))) {
if (starts_with(line, url_prefix, true))
{
size_t offset = url_prefix.length() - pal::strlen(DOTNET_CORE_APPLAUNCH_URL) - 1;
url = line.substr(offset, line.length() - offset);
break;
}
}
}
else if (error_code == StatusCode::FrameworkMissingFailure)
{
// We don't have a great way of passing out different kinds of detailed error info across components, so
// just match the expected error string. See fx_resolver.messages.cpp.
dialogMsg = pal::string_t(_X("To run this application, you must install missing frameworks for .NET.\n\n"));
pal::string_t line;
pal::stringstream_t ss(g_buffered_errors);
while (std::getline(ss, line, _X('\n'))){
const pal::string_t prefix = _X("The framework '");
const pal::string_t suffix = _X("' was not found.");
const pal::string_t custom_prefix = _X(" _ ");
if (starts_with(line, prefix, true) && ends_with(line, suffix, true))
{
dialogMsg.append(line);
dialogMsg.append(_X("\n\n"));
}
else if (starts_with(line, custom_prefix, true))
{
dialogMsg.erase();
dialogMsg.append(line.substr(custom_prefix.length()));
dialogMsg.append(_X("\n\n"));
}
else if (starts_with(line, url_prefix, true))
{
size_t offset = url_prefix.length() - pal::strlen(DOTNET_CORE_APPLAUNCH_URL) - 1;
url = line.substr(offset, line.length() - offset);
break;
}
}
}
else if (error_code == StatusCode::BundleExtractionFailure)
{
pal::string_t line;
pal::stringstream_t ss(g_buffered_errors);
while (std::getline(ss, line, _X('\n'))) {
if (starts_with(line, _X("Bundle header version compatibility check failed."), true))
{
dialogMsg = pal::string_t(_X("To run this application, you must install .NET Desktop Runtime ")) + _STRINGIFY(COMMON_HOST_PKG_VER) + _X(" (") + get_arch() + _X(").\n\n");
url = get_download_url();
url.append(_X("&apphost_version="));
url.append(_STRINGIFY(COMMON_HOST_PKG_VER));
}
}
if (dialogMsg.empty())
return;
}
else
return;
dialogMsg.append(_X("Would you like to download it now?"));
assert(url.length() > 0);
assert(is_gui_application());
url.append(_X("&gui=true"));
trace::verbose(_X("Showing error dialog for application: '%s' - error code: 0x%x - url: '%s'"), executable_name, error_code, url.c_str());
if (::MessageBoxW(nullptr, dialogMsg.c_str(), executable_name, MB_ICONERROR | MB_YESNO) == IDYES)
{
// Open the URL in default browser
::ShellExecuteW(
nullptr,
_X("open"),
url.c_str(),
nullptr,
nullptr,
SW_SHOWNORMAL);
}
}
}
void apphost::buffer_errors()
{
trace::verbose(_X("Redirecting errors to custom writer."));
trace::set_error_writer(buffering_trace_writer);
}
void apphost::write_buffered_errors(int error_code)
{
if (g_buffered_errors.empty())
return;
pal::string_t executable_path;
pal::string_t executable_name;
if (pal::get_own_executable_path(&executable_path))
{
executable_name = get_filename(executable_path);
}
write_errors_to_event_log(executable_path.c_str(), executable_name.c_str());
if (is_gui_application())
show_error_dialog(executable_name.c_str(), error_code);
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "apphost.windows.h"
#include "error_codes.h"
#include "pal.h"
#include "trace.h"
#include "utils.h"
#include <shellapi.h>
namespace
{
pal::string_t g_buffered_errors;
void __cdecl buffering_trace_writer(const pal::char_t* message)
{
// Add to buffer for later use.
g_buffered_errors.append(message).append(_X("\n"));
// Also write to stderr immediately
pal::err_fputs(message);
}
// Determines if the current module (apphost executable) is marked as a Windows GUI application
bool is_gui_application()
{
HMODULE module = ::GetModuleHandleW(nullptr);
assert(module != nullptr);
// https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
BYTE *bytes = reinterpret_cast<BYTE *>(module);
UINT32 pe_header_offset = reinterpret_cast<IMAGE_DOS_HEADER *>(bytes)->e_lfanew;
UINT16 subsystem = reinterpret_cast<IMAGE_NT_HEADERS *>(bytes + pe_header_offset)->OptionalHeader.Subsystem;
return subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI;
}
void write_errors_to_event_log(const pal::char_t *executable_path, const pal::char_t *executable_name)
{
// Report errors to the Windows Event Log.
auto eventSource = ::RegisterEventSourceW(nullptr, _X(".NET Runtime"));
const DWORD traceErrorID = 1023; // Matches CoreCLR ERT_UnmanagedFailFast
pal::string_t message;
message.append(_X("Description: A .NET application failed.\n"));
message.append(_X("Application: ")).append(executable_name).append(_X("\n"));
message.append(_X("Path: ")).append(executable_path).append(_X("\n"));
message.append(_X("Message: ")).append(g_buffered_errors).append(_X("\n"));
LPCWSTR messages[] = {message.c_str()};
::ReportEventW(eventSource, EVENTLOG_ERROR_TYPE, 0, traceErrorID, nullptr, 1, 0, messages, nullptr);
::DeregisterEventSource(eventSource);
}
void show_error_dialog(const pal::char_t *executable_name, int error_code)
{
pal::string_t gui_errors_disabled;
if (pal::getenv(_X("DOTNET_DISABLE_GUI_ERRORS"), &gui_errors_disabled) && pal::xtoi(gui_errors_disabled.c_str()) == 1)
return;
pal::string_t dialogMsg;
pal::string_t url;
const pal::string_t url_prefix = _X(" - ") DOTNET_CORE_APPLAUNCH_URL _X("?");
if (error_code == StatusCode::CoreHostLibMissingFailure)
{
dialogMsg = pal::string_t(_X("To run this application, you must install .NET Desktop Runtime ")) + _STRINGIFY(COMMON_HOST_PKG_VER) + _X(" (") + get_arch() + _X(").\n\n");
pal::string_t line;
pal::stringstream_t ss(g_buffered_errors);
while (std::getline(ss, line, _X('\n'))) {
if (starts_with(line, url_prefix, true))
{
size_t offset = url_prefix.length() - pal::strlen(DOTNET_CORE_APPLAUNCH_URL) - 1;
url = line.substr(offset, line.length() - offset);
break;
}
}
}
else if (error_code == StatusCode::FrameworkMissingFailure)
{
// We don't have a great way of passing out different kinds of detailed error info across components, so
// just match the expected error string. See fx_resolver.messages.cpp.
dialogMsg = pal::string_t(_X("To run this application, you must install missing frameworks for .NET.\n\n"));
pal::string_t line;
pal::stringstream_t ss(g_buffered_errors);
while (std::getline(ss, line, _X('\n'))){
const pal::string_t prefix = _X("The framework '");
const pal::string_t suffix = _X("' was not found.");
const pal::string_t custom_prefix = _X(" _ ");
if (starts_with(line, prefix, true) && ends_with(line, suffix, true))
{
dialogMsg.append(line);
dialogMsg.append(_X("\n\n"));
}
else if (starts_with(line, custom_prefix, true))
{
dialogMsg.erase();
dialogMsg.append(line.substr(custom_prefix.length()));
dialogMsg.append(_X("\n\n"));
}
else if (starts_with(line, url_prefix, true))
{
size_t offset = url_prefix.length() - pal::strlen(DOTNET_CORE_APPLAUNCH_URL) - 1;
url = line.substr(offset, line.length() - offset);
break;
}
}
}
else if (error_code == StatusCode::BundleExtractionFailure)
{
pal::string_t line;
pal::stringstream_t ss(g_buffered_errors);
while (std::getline(ss, line, _X('\n'))) {
if (starts_with(line, _X("Bundle header version compatibility check failed."), true))
{
dialogMsg = pal::string_t(_X("To run this application, you must install .NET Desktop Runtime ")) + _STRINGIFY(COMMON_HOST_PKG_VER) + _X(" (") + get_arch() + _X(").\n\n");
url = get_download_url();
url.append(_X("&apphost_version="));
url.append(_STRINGIFY(COMMON_HOST_PKG_VER));
}
}
if (dialogMsg.empty())
return;
}
else
return;
dialogMsg.append(_X("Would you like to download it now?"));
assert(url.length() > 0);
assert(is_gui_application());
url.append(_X("&gui=true"));
trace::verbose(_X("Showing error dialog for application: '%s' - error code: 0x%x - url: '%s'"), executable_name, error_code, url.c_str());
if (::MessageBoxW(nullptr, dialogMsg.c_str(), executable_name, MB_ICONERROR | MB_YESNO) == IDYES)
{
// Open the URL in default browser
::ShellExecuteW(
nullptr,
_X("open"),
url.c_str(),
nullptr,
nullptr,
SW_SHOWNORMAL);
}
}
}
void apphost::buffer_errors()
{
trace::verbose(_X("Redirecting errors to custom writer."));
trace::set_error_writer(buffering_trace_writer);
}
void apphost::write_buffered_errors(int error_code)
{
if (g_buffered_errors.empty())
return;
pal::string_t executable_path;
pal::string_t executable_name;
if (pal::get_own_executable_path(&executable_path))
{
executable_name = get_filename(executable_path);
}
write_errors_to_event_log(executable_path.c_str(), executable_name.c_str());
if (is_gui_application())
show_error_dialog(executable_name.c_str(), error_code);
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/fft7b.xsl
|
<xsl:stylesheet version= '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
<xsl:template match="/">
<xsl:for-each select="//foo">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|
<xsl:stylesheet version= '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
<xsl:template match="/">
<xsl:for-each select="//foo">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/Microsoft.Win32.Registry/tests/RegistryKey/RegistryKey_Get_Name.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Xunit;
namespace Microsoft.Win32.RegistryTests
{
public class RegistryKey_Get_Name : RegistryTestsBase
{
private const string CurrentUserKeyName = "HKEY_CURRENT_USER";
[Fact]
public void NegativeTests()
{
Assert.Throws<ObjectDisposedException>(() =>
{
TestRegistryKey.Dispose();
return TestRegistryKey.Name;
});
}
[Fact]
public static void TestBaseKeyName()
{
Assert.Equal(CurrentUserKeyName, Registry.CurrentUser.Name);
}
[Fact]
public void TestSubKeyName()
{
string expectedName = string.Format("HKEY_CURRENT_USER\\{0}", TestRegistryKeyName);
Assert.Equal(expectedName, TestRegistryKey.Name);
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Xunit;
namespace Microsoft.Win32.RegistryTests
{
public class RegistryKey_Get_Name : RegistryTestsBase
{
private const string CurrentUserKeyName = "HKEY_CURRENT_USER";
[Fact]
public void NegativeTests()
{
Assert.Throws<ObjectDisposedException>(() =>
{
TestRegistryKey.Dispose();
return TestRegistryKey.Name;
});
}
[Fact]
public static void TestBaseKeyName()
{
Assert.Equal(CurrentUserKeyName, Registry.CurrentUser.Name);
}
[Fact]
public void TestSubKeyName()
{
string expectedName = string.Format("HKEY_CURRENT_USER\\{0}", TestRegistryKeyName);
Assert.Equal(expectedName, TestRegistryKey.Name);
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/native/external/rapidjson/allocators.h
|
// Tencent is pleased to support the open source community by making RapidJSON available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://opensource.org/licenses/MIT
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
#ifndef RAPIDJSON_ALLOCATORS_H_
#define RAPIDJSON_ALLOCATORS_H_
#include "rapidjson.h"
RAPIDJSON_NAMESPACE_BEGIN
///////////////////////////////////////////////////////////////////////////////
// Allocator
/*! \class rapidjson::Allocator
\brief Concept for allocating, resizing and freeing memory block.
Note that Malloc() and Realloc() are non-static but Free() is static.
So if an allocator need to support Free(), it needs to put its pointer in
the header of memory block.
\code
concept Allocator {
static const bool kNeedFree; //!< Whether this allocator needs to call Free().
// Allocate a memory block.
// \param size of the memory block in bytes.
// \returns pointer to the memory block.
void* Malloc(size_t size);
// Resize a memory block.
// \param originalPtr The pointer to current memory block. Null pointer is permitted.
// \param originalSize The current size in bytes. (Design issue: since some allocator may not book-keep this, explicitly pass to it can save memory.)
// \param newSize the new size in bytes.
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize);
// Free a memory block.
// \param pointer to the memory block. Null pointer is permitted.
static void Free(void *ptr);
};
\endcode
*/
/*! \def RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY
\ingroup RAPIDJSON_CONFIG
\brief User-defined kDefaultChunkCapacity definition.
User can define this as any \c size that is a power of 2.
*/
#ifndef RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY
#define RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY (64 * 1024)
#endif
///////////////////////////////////////////////////////////////////////////////
// CrtAllocator
//! C-runtime library allocator.
/*! This class is just wrapper for standard C library memory routines.
\note implements Allocator concept
*/
class CrtAllocator {
public:
static const bool kNeedFree = true;
void* Malloc(size_t size) {
if (size) // behavior of malloc(0) is implementation defined.
return std::malloc(size);
else
return NULL; // standardize to returning NULL.
}
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
(void)originalSize;
if (newSize == 0) {
std::free(originalPtr);
return NULL;
}
return std::realloc(originalPtr, newSize);
}
static void Free(void *ptr) { std::free(ptr); }
};
///////////////////////////////////////////////////////////////////////////////
// MemoryPoolAllocator
//! Default memory allocator used by the parser and DOM.
/*! This allocator allocate memory blocks from pre-allocated memory chunks.
It does not free memory blocks. And Realloc() only allocate new memory.
The memory chunks are allocated by BaseAllocator, which is CrtAllocator by default.
User may also supply a buffer as the first chunk.
If the user-buffer is full then additional chunks are allocated by BaseAllocator.
The user-buffer is not deallocated by this allocator.
\tparam BaseAllocator the allocator type for allocating memory chunks. Default is CrtAllocator.
\note implements Allocator concept
*/
template <typename BaseAllocator = CrtAllocator>
class MemoryPoolAllocator {
public:
static const bool kNeedFree = false; //!< Tell users that no need to call Free() with this allocator. (concept Allocator)
//! Constructor with chunkSize.
/*! \param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
\param baseAllocator The allocator for allocating memory chunks.
*/
MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) :
chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(0), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
{
}
//! Constructor with user-supplied buffer.
/*! The user buffer will be used firstly. When it is full, memory pool allocates new chunk with chunk size.
The user buffer will not be deallocated when this allocator is destructed.
\param buffer User supplied buffer.
\param size Size of the buffer in bytes. It must at least larger than sizeof(ChunkHeader).
\param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
\param baseAllocator The allocator for allocating memory chunks.
*/
MemoryPoolAllocator(void *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) :
chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(buffer), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
{
RAPIDJSON_ASSERT(buffer != 0);
RAPIDJSON_ASSERT(size > sizeof(ChunkHeader));
chunkHead_ = reinterpret_cast<ChunkHeader*>(buffer);
chunkHead_->capacity = size - sizeof(ChunkHeader);
chunkHead_->size = 0;
chunkHead_->next = 0;
}
//! Destructor.
/*! This deallocates all memory chunks, excluding the user-supplied buffer.
*/
~MemoryPoolAllocator() {
Clear();
RAPIDJSON_DELETE(ownBaseAllocator_);
}
//! Deallocates all memory chunks, excluding the user-supplied buffer.
void Clear() {
while (chunkHead_ && chunkHead_ != userBuffer_) {
ChunkHeader* next = chunkHead_->next;
baseAllocator_->Free(chunkHead_);
chunkHead_ = next;
}
if (chunkHead_ && chunkHead_ == userBuffer_)
chunkHead_->size = 0; // Clear user buffer
}
//! Computes the total capacity of allocated memory chunks.
/*! \return total capacity in bytes.
*/
size_t Capacity() const {
size_t capacity = 0;
for (ChunkHeader* c = chunkHead_; c != 0; c = c->next)
capacity += c->capacity;
return capacity;
}
//! Computes the memory blocks allocated.
/*! \return total used bytes.
*/
size_t Size() const {
size_t size = 0;
for (ChunkHeader* c = chunkHead_; c != 0; c = c->next)
size += c->size;
return size;
}
//! Allocates a memory block. (concept Allocator)
void* Malloc(size_t size) {
if (!size)
return NULL;
size = RAPIDJSON_ALIGN(size);
if (chunkHead_ == 0 || chunkHead_->size + size > chunkHead_->capacity)
if (!AddChunk(chunk_capacity_ > size ? chunk_capacity_ : size))
return NULL;
void *buffer = reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size;
chunkHead_->size += size;
return buffer;
}
//! Resizes a memory block (concept Allocator)
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
if (originalPtr == 0)
return Malloc(newSize);
if (newSize == 0)
return NULL;
originalSize = RAPIDJSON_ALIGN(originalSize);
newSize = RAPIDJSON_ALIGN(newSize);
// Do not shrink if new size is smaller than original
if (originalSize >= newSize)
return originalPtr;
// Simply expand it if it is the last allocation and there is sufficient space
if (originalPtr == reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size - originalSize) {
size_t increment = static_cast<size_t>(newSize - originalSize);
if (chunkHead_->size + increment <= chunkHead_->capacity) {
chunkHead_->size += increment;
return originalPtr;
}
}
// Realloc process: allocate and copy memory, do not free original buffer.
if (void* newBuffer = Malloc(newSize)) {
if (originalSize)
std::memcpy(newBuffer, originalPtr, originalSize);
return newBuffer;
}
else
return NULL;
}
//! Frees a memory block (concept Allocator)
static void Free(void *ptr) { (void)ptr; } // Do nothing
private:
//! Copy constructor is not permitted.
MemoryPoolAllocator(const MemoryPoolAllocator& rhs) /* = delete */;
//! Copy assignment operator is not permitted.
MemoryPoolAllocator& operator=(const MemoryPoolAllocator& rhs) /* = delete */;
//! Creates a new chunk.
/*! \param capacity Capacity of the chunk in bytes.
\return true if success.
*/
bool AddChunk(size_t capacity) {
if (!baseAllocator_)
ownBaseAllocator_ = baseAllocator_ = RAPIDJSON_NEW(BaseAllocator)();
if (ChunkHeader* chunk = reinterpret_cast<ChunkHeader*>(baseAllocator_->Malloc(RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + capacity))) {
chunk->capacity = capacity;
chunk->size = 0;
chunk->next = chunkHead_;
chunkHead_ = chunk;
return true;
}
else
return false;
}
static const int kDefaultChunkCapacity = RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY; //!< Default chunk capacity.
//! Chunk header for perpending to each chunk.
/*! Chunks are stored as a singly linked list.
*/
struct ChunkHeader {
size_t capacity; //!< Capacity of the chunk in bytes (excluding the header itself).
size_t size; //!< Current size of allocated memory in bytes.
ChunkHeader *next; //!< Next chunk in the linked list.
};
ChunkHeader *chunkHead_; //!< Head of the chunk linked-list. Only the head chunk serves allocation.
size_t chunk_capacity_; //!< The minimum capacity of chunk when they are allocated.
void *userBuffer_; //!< User supplied buffer.
BaseAllocator* baseAllocator_; //!< base allocator for allocating memory chunks.
BaseAllocator* ownBaseAllocator_; //!< base allocator created by this object.
};
RAPIDJSON_NAMESPACE_END
#endif // RAPIDJSON_ENCODINGS_H_
|
// Tencent is pleased to support the open source community by making RapidJSON available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://opensource.org/licenses/MIT
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
#ifndef RAPIDJSON_ALLOCATORS_H_
#define RAPIDJSON_ALLOCATORS_H_
#include "rapidjson.h"
RAPIDJSON_NAMESPACE_BEGIN
///////////////////////////////////////////////////////////////////////////////
// Allocator
/*! \class rapidjson::Allocator
\brief Concept for allocating, resizing and freeing memory block.
Note that Malloc() and Realloc() are non-static but Free() is static.
So if an allocator need to support Free(), it needs to put its pointer in
the header of memory block.
\code
concept Allocator {
static const bool kNeedFree; //!< Whether this allocator needs to call Free().
// Allocate a memory block.
// \param size of the memory block in bytes.
// \returns pointer to the memory block.
void* Malloc(size_t size);
// Resize a memory block.
// \param originalPtr The pointer to current memory block. Null pointer is permitted.
// \param originalSize The current size in bytes. (Design issue: since some allocator may not book-keep this, explicitly pass to it can save memory.)
// \param newSize the new size in bytes.
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize);
// Free a memory block.
// \param pointer to the memory block. Null pointer is permitted.
static void Free(void *ptr);
};
\endcode
*/
/*! \def RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY
\ingroup RAPIDJSON_CONFIG
\brief User-defined kDefaultChunkCapacity definition.
User can define this as any \c size that is a power of 2.
*/
#ifndef RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY
#define RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY (64 * 1024)
#endif
///////////////////////////////////////////////////////////////////////////////
// CrtAllocator
//! C-runtime library allocator.
/*! This class is just wrapper for standard C library memory routines.
\note implements Allocator concept
*/
class CrtAllocator {
public:
static const bool kNeedFree = true;
void* Malloc(size_t size) {
if (size) // behavior of malloc(0) is implementation defined.
return std::malloc(size);
else
return NULL; // standardize to returning NULL.
}
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
(void)originalSize;
if (newSize == 0) {
std::free(originalPtr);
return NULL;
}
return std::realloc(originalPtr, newSize);
}
static void Free(void *ptr) { std::free(ptr); }
};
///////////////////////////////////////////////////////////////////////////////
// MemoryPoolAllocator
//! Default memory allocator used by the parser and DOM.
/*! This allocator allocate memory blocks from pre-allocated memory chunks.
It does not free memory blocks. And Realloc() only allocate new memory.
The memory chunks are allocated by BaseAllocator, which is CrtAllocator by default.
User may also supply a buffer as the first chunk.
If the user-buffer is full then additional chunks are allocated by BaseAllocator.
The user-buffer is not deallocated by this allocator.
\tparam BaseAllocator the allocator type for allocating memory chunks. Default is CrtAllocator.
\note implements Allocator concept
*/
template <typename BaseAllocator = CrtAllocator>
class MemoryPoolAllocator {
public:
static const bool kNeedFree = false; //!< Tell users that no need to call Free() with this allocator. (concept Allocator)
//! Constructor with chunkSize.
/*! \param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
\param baseAllocator The allocator for allocating memory chunks.
*/
MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) :
chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(0), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
{
}
//! Constructor with user-supplied buffer.
/*! The user buffer will be used firstly. When it is full, memory pool allocates new chunk with chunk size.
The user buffer will not be deallocated when this allocator is destructed.
\param buffer User supplied buffer.
\param size Size of the buffer in bytes. It must at least larger than sizeof(ChunkHeader).
\param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
\param baseAllocator The allocator for allocating memory chunks.
*/
MemoryPoolAllocator(void *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) :
chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(buffer), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
{
RAPIDJSON_ASSERT(buffer != 0);
RAPIDJSON_ASSERT(size > sizeof(ChunkHeader));
chunkHead_ = reinterpret_cast<ChunkHeader*>(buffer);
chunkHead_->capacity = size - sizeof(ChunkHeader);
chunkHead_->size = 0;
chunkHead_->next = 0;
}
//! Destructor.
/*! This deallocates all memory chunks, excluding the user-supplied buffer.
*/
~MemoryPoolAllocator() {
Clear();
RAPIDJSON_DELETE(ownBaseAllocator_);
}
//! Deallocates all memory chunks, excluding the user-supplied buffer.
void Clear() {
while (chunkHead_ && chunkHead_ != userBuffer_) {
ChunkHeader* next = chunkHead_->next;
baseAllocator_->Free(chunkHead_);
chunkHead_ = next;
}
if (chunkHead_ && chunkHead_ == userBuffer_)
chunkHead_->size = 0; // Clear user buffer
}
//! Computes the total capacity of allocated memory chunks.
/*! \return total capacity in bytes.
*/
size_t Capacity() const {
size_t capacity = 0;
for (ChunkHeader* c = chunkHead_; c != 0; c = c->next)
capacity += c->capacity;
return capacity;
}
//! Computes the memory blocks allocated.
/*! \return total used bytes.
*/
size_t Size() const {
size_t size = 0;
for (ChunkHeader* c = chunkHead_; c != 0; c = c->next)
size += c->size;
return size;
}
//! Allocates a memory block. (concept Allocator)
void* Malloc(size_t size) {
if (!size)
return NULL;
size = RAPIDJSON_ALIGN(size);
if (chunkHead_ == 0 || chunkHead_->size + size > chunkHead_->capacity)
if (!AddChunk(chunk_capacity_ > size ? chunk_capacity_ : size))
return NULL;
void *buffer = reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size;
chunkHead_->size += size;
return buffer;
}
//! Resizes a memory block (concept Allocator)
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
if (originalPtr == 0)
return Malloc(newSize);
if (newSize == 0)
return NULL;
originalSize = RAPIDJSON_ALIGN(originalSize);
newSize = RAPIDJSON_ALIGN(newSize);
// Do not shrink if new size is smaller than original
if (originalSize >= newSize)
return originalPtr;
// Simply expand it if it is the last allocation and there is sufficient space
if (originalPtr == reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size - originalSize) {
size_t increment = static_cast<size_t>(newSize - originalSize);
if (chunkHead_->size + increment <= chunkHead_->capacity) {
chunkHead_->size += increment;
return originalPtr;
}
}
// Realloc process: allocate and copy memory, do not free original buffer.
if (void* newBuffer = Malloc(newSize)) {
if (originalSize)
std::memcpy(newBuffer, originalPtr, originalSize);
return newBuffer;
}
else
return NULL;
}
//! Frees a memory block (concept Allocator)
static void Free(void *ptr) { (void)ptr; } // Do nothing
private:
//! Copy constructor is not permitted.
MemoryPoolAllocator(const MemoryPoolAllocator& rhs) /* = delete */;
//! Copy assignment operator is not permitted.
MemoryPoolAllocator& operator=(const MemoryPoolAllocator& rhs) /* = delete */;
//! Creates a new chunk.
/*! \param capacity Capacity of the chunk in bytes.
\return true if success.
*/
bool AddChunk(size_t capacity) {
if (!baseAllocator_)
ownBaseAllocator_ = baseAllocator_ = RAPIDJSON_NEW(BaseAllocator)();
if (ChunkHeader* chunk = reinterpret_cast<ChunkHeader*>(baseAllocator_->Malloc(RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + capacity))) {
chunk->capacity = capacity;
chunk->size = 0;
chunk->next = chunkHead_;
chunkHead_ = chunk;
return true;
}
else
return false;
}
static const int kDefaultChunkCapacity = RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY; //!< Default chunk capacity.
//! Chunk header for perpending to each chunk.
/*! Chunks are stored as a singly linked list.
*/
struct ChunkHeader {
size_t capacity; //!< Capacity of the chunk in bytes (excluding the header itself).
size_t size; //!< Current size of allocated memory in bytes.
ChunkHeader *next; //!< Next chunk in the linked list.
};
ChunkHeader *chunkHead_; //!< Head of the chunk linked-list. Only the head chunk serves allocation.
size_t chunk_capacity_; //!< The minimum capacity of chunk when they are allocated.
void *userBuffer_; //!< User supplied buffer.
BaseAllocator* baseAllocator_; //!< base allocator for allocating memory chunks.
BaseAllocator* ownBaseAllocator_; //!< base allocator created by this object.
};
RAPIDJSON_NAMESPACE_END
#endif // RAPIDJSON_ENCODINGS_H_
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/nativeaot/System.Private.Reflection.Execution/src/System.Private.Reflection.Execution.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\..\System.Private.CoreLib\src\System.Private.CoreLib.csproj" />
<ProjectReference Include="..\..\System.Private.Reflection.Metadata\src\System.Private.Reflection.Metadata.csproj" />
<ProjectReference Include="..\..\System.Private.Interop\src\System.Private.Interop.csproj" />
<ProjectReference Include="..\..\System.Private.TypeLoader\src\System.Private.TypeLoader.csproj" />
<ProjectReference Include="..\..\System.Private.Reflection.Core\src\System.Private.Reflection.Core.csproj" />
</ItemGroup>
<PropertyGroup>
<NativeFormatCommonPath>$(CompilerCommonPath)\Internal\NativeFormat</NativeFormatCommonPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(NativeFormatCommonPath)\NativeFormat.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.Primitives.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.Metadata.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.String.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Internal\Reflection\Execution\NativeFormatEnumInfo.cs" />
<Compile Include="Internal\Reflection\Execution\TypeLoader\ConstraintValidator.cs" />
<Compile Include="Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs" />
<Compile Include="Internal\Reflection\Execution\TypeLoader\TypeCast.cs" />
<Compile Include="Internal\Reflection\Execution\ReflectionExecution.cs" />
<Compile Include="Internal\Reflection\Execution\ReflectionDomainSetupImplementation.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Interop.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MetadataTable.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.ManifestResources.cs" />
<Compile Include="Internal\Reflection\Execution\ReflectionExecutionDomainCallbacksImplementation.cs" />
<Compile Include="Internal\Reflection\Execution\MetadataReaderExtensions.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokeInfo.cs" />
<Compile Include="Internal\Reflection\Execution\RuntimeHandlesExtensions.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\InstanceFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\LiteralFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForInstanceFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForStaticFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\RegularStaticFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ReferenceTypeFieldAccessorForInstanceFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ReferenceTypeFieldAccessorForStaticFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\StaticFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ValueTypeFieldAccessorForInstanceFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ValueTypeFieldAccessorForStaticFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\WritableStaticFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\MethodInvokerWithMethodInvokeInfo.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\InstanceMethodInvoker.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\StaticMethodInvoker.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\VirtualMethodInvoker.cs" />
<Compile Include="Internal\Reflection\Execution\PayForPlayExperience\DiagnosticMappingTables.cs" />
<Compile Include="Internal\Reflection\Execution\PayForPlayExperience\MissingMetadataExceptionCreator.cs" />
<Compile Include="Internal\Reflection\Extensions\NonPortable\DelegateMethodInfoRetriever.cs" />
<Compile Include="Internal\Runtime\CompilerHelpers\LibraryInitializer.cs" />
<Compile Include="System\Reflection\MissingRuntimeArtifactException.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\MetadataBlob.cs" >
<Link>Internal\Runtime\MetadataBlob.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\System\NotImplemented.cs" >
<Link>System\NotImplemented.cs</Link>
</Compile>
<Compile Include="$(LibrariesProjectRoot)\System.Private.CoreLib\src\System\SR.cs" />
<Compile Include="$(AotCommonPath)\System\Collections\Generic\LowLevelList.cs" >
<Link>System\Collections\Generic\LowLevelList.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\System\Collections\Generic\LowLevelDictionary.cs" >
<Link>System\Collections\Generic\LowLevelDictionary.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\LowLevelLinq\LowLevelEnumerable.cs" >
<Link>Internal\LowLevelLinq\LowLevelEnumerable.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\LowLevelLinq\LowLevelEnumerable.ToArray.cs" >
<Link>Internal\LowLevelLinq\LowLevelEnumerable.ToArray.cs</Link>
</Compile>
<Compile Include="$(LibrariesProjectRoot)\System.Private.CoreLib\src\System\Collections\HashHelpers.cs" >
<Link>System\Collections\HashHelpers.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\System\Collections\Generic\Empty.cs" >
<Link>System\Collections\Generic\Empty.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\System\Runtime\CompilerServices\__BlockAllReflectionAttribute.cs">
<Link>System\Runtime\CompilerServices\__BlockAllReflectionAttribute.cs</Link>
</Compile>
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\..\System.Private.CoreLib\src\System.Private.CoreLib.csproj" />
<ProjectReference Include="..\..\System.Private.Reflection.Metadata\src\System.Private.Reflection.Metadata.csproj" />
<ProjectReference Include="..\..\System.Private.Interop\src\System.Private.Interop.csproj" />
<ProjectReference Include="..\..\System.Private.TypeLoader\src\System.Private.TypeLoader.csproj" />
<ProjectReference Include="..\..\System.Private.Reflection.Core\src\System.Private.Reflection.Core.csproj" />
</ItemGroup>
<PropertyGroup>
<NativeFormatCommonPath>$(CompilerCommonPath)\Internal\NativeFormat</NativeFormatCommonPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(NativeFormatCommonPath)\NativeFormat.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.Primitives.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.Metadata.cs" />
<Compile Include="$(NativeFormatCommonPath)\NativeFormatReader.String.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Internal\Reflection\Execution\NativeFormatEnumInfo.cs" />
<Compile Include="Internal\Reflection\Execution\TypeLoader\ConstraintValidator.cs" />
<Compile Include="Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs" />
<Compile Include="Internal\Reflection\Execution\TypeLoader\TypeCast.cs" />
<Compile Include="Internal\Reflection\Execution\ReflectionExecution.cs" />
<Compile Include="Internal\Reflection\Execution\ReflectionDomainSetupImplementation.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Interop.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MetadataTable.cs" />
<Compile Include="Internal\Reflection\Execution\ExecutionEnvironmentImplementation.ManifestResources.cs" />
<Compile Include="Internal\Reflection\Execution\ReflectionExecutionDomainCallbacksImplementation.cs" />
<Compile Include="Internal\Reflection\Execution\MetadataReaderExtensions.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokeInfo.cs" />
<Compile Include="Internal\Reflection\Execution\RuntimeHandlesExtensions.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\InstanceFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\LiteralFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForInstanceFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForStaticFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\RegularStaticFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ReferenceTypeFieldAccessorForInstanceFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ReferenceTypeFieldAccessorForStaticFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\StaticFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ValueTypeFieldAccessorForInstanceFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\ValueTypeFieldAccessorForStaticFields.cs" />
<Compile Include="Internal\Reflection\Execution\FieldAccessors\WritableStaticFieldAccessor.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\MethodInvokerWithMethodInvokeInfo.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\InstanceMethodInvoker.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\StaticMethodInvoker.cs" />
<Compile Include="Internal\Reflection\Execution\MethodInvokers\VirtualMethodInvoker.cs" />
<Compile Include="Internal\Reflection\Execution\PayForPlayExperience\DiagnosticMappingTables.cs" />
<Compile Include="Internal\Reflection\Execution\PayForPlayExperience\MissingMetadataExceptionCreator.cs" />
<Compile Include="Internal\Reflection\Extensions\NonPortable\DelegateMethodInfoRetriever.cs" />
<Compile Include="Internal\Runtime\CompilerHelpers\LibraryInitializer.cs" />
<Compile Include="System\Reflection\MissingRuntimeArtifactException.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\MetadataBlob.cs" >
<Link>Internal\Runtime\MetadataBlob.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\System\NotImplemented.cs" >
<Link>System\NotImplemented.cs</Link>
</Compile>
<Compile Include="$(LibrariesProjectRoot)\System.Private.CoreLib\src\System\SR.cs" />
<Compile Include="$(AotCommonPath)\System\Collections\Generic\LowLevelList.cs" >
<Link>System\Collections\Generic\LowLevelList.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\System\Collections\Generic\LowLevelDictionary.cs" >
<Link>System\Collections\Generic\LowLevelDictionary.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\LowLevelLinq\LowLevelEnumerable.cs" >
<Link>Internal\LowLevelLinq\LowLevelEnumerable.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\LowLevelLinq\LowLevelEnumerable.ToArray.cs" >
<Link>Internal\LowLevelLinq\LowLevelEnumerable.ToArray.cs</Link>
</Compile>
<Compile Include="$(LibrariesProjectRoot)\System.Private.CoreLib\src\System\Collections\HashHelpers.cs" >
<Link>System\Collections\HashHelpers.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\System\Collections\Generic\Empty.cs" >
<Link>System\Collections\Generic\Empty.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\System\Runtime\CompilerServices\__BlockAllReflectionAttribute.cs">
<Link>System\Runtime\CompilerServices\__BlockAllReflectionAttribute.cs</Link>
</Compile>
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.Xml/tests/XmlReaderLib/TCReadToDescendant.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using OLEDB.Test.ModuleCore;
namespace System.Xml.Tests
{
public partial class TCReadToDescendant : TCXMLReaderBaseGeneral
{
// Type is System.Xml.Tests.TCReadToDescendant
// Test Case
public override void AddChildren()
{
// for function v
{
this.AddChild(new CVariation(v) { Attribute = new Variation("Simple positive test") { Params = new object[] { "NNS" }, Pri = 0 } });
this.AddChild(new CVariation(v) { Attribute = new Variation("Simple positive test") { Params = new object[] { "NS" }, Pri = 0 } });
this.AddChild(new CVariation(v) { Attribute = new Variation("Simple positive test") { Params = new object[] { "DNS" }, Pri = 0 } });
}
// for function v2
{
this.AddChild(new CVariation(v2) { Attribute = new Variation("Read on a deep tree at least more than 4K boundary") { Pri = 2 } });
}
// for function v2_1
{
this.AddChild(new CVariation(v2_1) { Attribute = new Variation("Read on a deep tree at least more than 65535 boundary") { Pri = 2 } });
}
// for function v3
{
this.AddChild(new CVariation(v3) { Attribute = new Variation("Read on descendant with same names") { Params = new object[] { "DNS" }, Pri = 1 } });
this.AddChild(new CVariation(v3) { Attribute = new Variation("Read on descendant with same names") { Params = new object[] { "NS" }, Pri = 1 } });
this.AddChild(new CVariation(v3) { Attribute = new Variation("Read on descendant with same names") { Params = new object[] { "NNS" }, Pri = 1 } });
}
// for function v4
{
this.AddChild(new CVariation(v4) { Attribute = new Variation("If name not found, stop at end element of the subtree") { Pri = 1 } });
}
// for function v5
{
this.AddChild(new CVariation(v5) { Attribute = new Variation("Positioning on a level and try to find the name which is on a level higher") { Pri = 1 } });
}
// for function v6
{
this.AddChild(new CVariation(v6) { Attribute = new Variation("Read to Descendant on one level and again to level below it") { Pri = 1 } });
}
// for function v7
{
this.AddChild(new CVariation(v7) { Attribute = new Variation("Read to Descendant on one level and again to level below it, with namespace") { Pri = 1 } });
}
// for function v8
{
this.AddChild(new CVariation(v8) { Attribute = new Variation("Read to Descendant on one level and again to level below it, with prefix") { Pri = 1 } });
}
// for function v9
{
this.AddChild(new CVariation(v9) { Attribute = new Variation("Multiple Reads to children and then next siblings, NNS") { Pri = 2 } });
}
// for function v10
{
this.AddChild(new CVariation(v10) { Attribute = new Variation("Multiple Reads to children and then next siblings, DNS") { Pri = 2 } });
}
// for function v11
{
this.AddChild(new CVariation(v11) { Attribute = new Variation("Multiple Reads to children and then next siblings, NS") { Pri = 2 } });
}
// for function v12
{
this.AddChild(new CVariation(v12) { Attribute = new Variation("Call from different nodetypes") { Pri = 1 } });
}
// for function v13
{
this.AddChild(new CVariation(v13) { Attribute = new Variation("Interaction with MoveToContent") { Pri = 2 } });
}
// for function v14
{
this.AddChild(new CVariation(v14) { Attribute = new Variation("Only child has namespaces and read to it") { Pri = 2 } });
}
// for function v15
{
this.AddChild(new CVariation(v15) { Attribute = new Variation("Pass null to both arguments throws ArgumentException") { Pri = 2 } });
}
// for function v17
{
this.AddChild(new CVariation(v17) { Attribute = new Variation("Different names, same uri works correctly") { Pri = 2 } });
}
// for function v18
{
this.AddChild(new CVariation(v18) { Attribute = new Variation("On Root Node") { Params = new object[] { "DNS" }, Pri = 0 } });
this.AddChild(new CVariation(v18) { Attribute = new Variation("On Root Node") { Params = new object[] { "NNS" }, Pri = 0 } });
this.AddChild(new CVariation(v18) { Attribute = new Variation("On Root Node") { Params = new object[] { "NS" }, Pri = 0 } });
}
// for function v19
{
this.AddChild(new CVariation(v19) { Attribute = new Variation("427176 Assertion failed when call XmlReader.ReadToDescendant() for non-existing node") { Pri = 1 } });
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using OLEDB.Test.ModuleCore;
namespace System.Xml.Tests
{
public partial class TCReadToDescendant : TCXMLReaderBaseGeneral
{
// Type is System.Xml.Tests.TCReadToDescendant
// Test Case
public override void AddChildren()
{
// for function v
{
this.AddChild(new CVariation(v) { Attribute = new Variation("Simple positive test") { Params = new object[] { "NNS" }, Pri = 0 } });
this.AddChild(new CVariation(v) { Attribute = new Variation("Simple positive test") { Params = new object[] { "NS" }, Pri = 0 } });
this.AddChild(new CVariation(v) { Attribute = new Variation("Simple positive test") { Params = new object[] { "DNS" }, Pri = 0 } });
}
// for function v2
{
this.AddChild(new CVariation(v2) { Attribute = new Variation("Read on a deep tree at least more than 4K boundary") { Pri = 2 } });
}
// for function v2_1
{
this.AddChild(new CVariation(v2_1) { Attribute = new Variation("Read on a deep tree at least more than 65535 boundary") { Pri = 2 } });
}
// for function v3
{
this.AddChild(new CVariation(v3) { Attribute = new Variation("Read on descendant with same names") { Params = new object[] { "DNS" }, Pri = 1 } });
this.AddChild(new CVariation(v3) { Attribute = new Variation("Read on descendant with same names") { Params = new object[] { "NS" }, Pri = 1 } });
this.AddChild(new CVariation(v3) { Attribute = new Variation("Read on descendant with same names") { Params = new object[] { "NNS" }, Pri = 1 } });
}
// for function v4
{
this.AddChild(new CVariation(v4) { Attribute = new Variation("If name not found, stop at end element of the subtree") { Pri = 1 } });
}
// for function v5
{
this.AddChild(new CVariation(v5) { Attribute = new Variation("Positioning on a level and try to find the name which is on a level higher") { Pri = 1 } });
}
// for function v6
{
this.AddChild(new CVariation(v6) { Attribute = new Variation("Read to Descendant on one level and again to level below it") { Pri = 1 } });
}
// for function v7
{
this.AddChild(new CVariation(v7) { Attribute = new Variation("Read to Descendant on one level and again to level below it, with namespace") { Pri = 1 } });
}
// for function v8
{
this.AddChild(new CVariation(v8) { Attribute = new Variation("Read to Descendant on one level and again to level below it, with prefix") { Pri = 1 } });
}
// for function v9
{
this.AddChild(new CVariation(v9) { Attribute = new Variation("Multiple Reads to children and then next siblings, NNS") { Pri = 2 } });
}
// for function v10
{
this.AddChild(new CVariation(v10) { Attribute = new Variation("Multiple Reads to children and then next siblings, DNS") { Pri = 2 } });
}
// for function v11
{
this.AddChild(new CVariation(v11) { Attribute = new Variation("Multiple Reads to children and then next siblings, NS") { Pri = 2 } });
}
// for function v12
{
this.AddChild(new CVariation(v12) { Attribute = new Variation("Call from different nodetypes") { Pri = 1 } });
}
// for function v13
{
this.AddChild(new CVariation(v13) { Attribute = new Variation("Interaction with MoveToContent") { Pri = 2 } });
}
// for function v14
{
this.AddChild(new CVariation(v14) { Attribute = new Variation("Only child has namespaces and read to it") { Pri = 2 } });
}
// for function v15
{
this.AddChild(new CVariation(v15) { Attribute = new Variation("Pass null to both arguments throws ArgumentException") { Pri = 2 } });
}
// for function v17
{
this.AddChild(new CVariation(v17) { Attribute = new Variation("Different names, same uri works correctly") { Pri = 2 } });
}
// for function v18
{
this.AddChild(new CVariation(v18) { Attribute = new Variation("On Root Node") { Params = new object[] { "DNS" }, Pri = 0 } });
this.AddChild(new CVariation(v18) { Attribute = new Variation("On Root Node") { Params = new object[] { "NNS" }, Pri = 0 } });
this.AddChild(new CVariation(v18) { Attribute = new Variation("On Root Node") { Params = new object[] { "NS" }, Pri = 0 } });
}
// for function v19
{
this.AddChild(new CVariation(v19) { Attribute = new Variation("427176 Assertion failed when call XmlReader.ReadToDescendant() for non-existing node") { Pri = 1 } });
}
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/DescendantQuery.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Xml.XPath;
namespace MS.Internal.Xml.XPath
{
internal sealed class DescendantQuery : DescendantBaseQuery
{
private XPathNodeIterator? _nodeIterator;
internal DescendantQuery(Query qyParent, string Name, string Prefix, XPathNodeType Type, bool matchSelf, bool abbrAxis)
: base(qyParent, Name, Prefix, Type, matchSelf, abbrAxis)
{ }
public DescendantQuery(DescendantQuery other) : base(other)
{
_nodeIterator = Clone(other._nodeIterator);
}
public override void Reset()
{
_nodeIterator = null;
base.Reset();
}
public override XPathNavigator? Advance()
{
while (true)
{
if (_nodeIterator == null)
{
position = 0;
XPathNavigator? nav = qyInput.Advance();
if (nav == null)
{
return null;
}
if (NameTest)
{
if (TypeTest == XPathNodeType.ProcessingInstruction)
{
_nodeIterator = new IteratorFilter(nav.SelectDescendants(TypeTest, matchSelf), Name);
}
else
{
_nodeIterator = nav.SelectDescendants(Name, Namespace!, matchSelf);
}
}
else
{
_nodeIterator = nav.SelectDescendants(TypeTest, matchSelf);
}
}
if (_nodeIterator.MoveNext())
{
position++;
currentNode = _nodeIterator.Current;
return currentNode;
}
else
{
_nodeIterator = null;
}
}
}
public override XPathNodeIterator Clone() { return new DescendantQuery(this); }
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Xml.XPath;
namespace MS.Internal.Xml.XPath
{
internal sealed class DescendantQuery : DescendantBaseQuery
{
private XPathNodeIterator? _nodeIterator;
internal DescendantQuery(Query qyParent, string Name, string Prefix, XPathNodeType Type, bool matchSelf, bool abbrAxis)
: base(qyParent, Name, Prefix, Type, matchSelf, abbrAxis)
{ }
public DescendantQuery(DescendantQuery other) : base(other)
{
_nodeIterator = Clone(other._nodeIterator);
}
public override void Reset()
{
_nodeIterator = null;
base.Reset();
}
public override XPathNavigator? Advance()
{
while (true)
{
if (_nodeIterator == null)
{
position = 0;
XPathNavigator? nav = qyInput.Advance();
if (nav == null)
{
return null;
}
if (NameTest)
{
if (TypeTest == XPathNodeType.ProcessingInstruction)
{
_nodeIterator = new IteratorFilter(nav.SelectDescendants(TypeTest, matchSelf), Name);
}
else
{
_nodeIterator = nav.SelectDescendants(Name, Namespace!, matchSelf);
}
}
else
{
_nodeIterator = nav.SelectDescendants(TypeTest, matchSelf);
}
}
if (_nodeIterator.MoveNext())
{
position++;
currentNode = _nodeIterator.Current;
return currentNode;
}
else
{
_nodeIterator = null;
}
}
}
public override XPathNodeIterator Clone() { return new DescendantQuery(this); }
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/CodeGenBringUpTests/AsgSub1_d.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="AsgSub1.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="AsgSub1.cs" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/IDesignerEventService.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel.Design
{
/// <summary>
/// Provides global event notifications and the ability to create designers.
/// </summary>
public interface IDesignerEventService
{
/// <summary>
/// Gets the currently active designer.
/// </summary>
IDesignerHost? ActiveDesigner { get; }
/// <summary>
/// Gets or sets a collection of running design documents in the development environment.
/// </summary>
DesignerCollection Designers { get; }
/// <summary>
/// Adds an event that will be raised when the currently active designer changes.
/// </summary>
event ActiveDesignerEventHandler ActiveDesignerChanged;
/// <summary>
/// Adds an event that will be raised when a designer is created.
/// </summary>
event DesignerEventHandler DesignerCreated;
/// <summary>
/// Adds an event that will be raised when a designer is disposed.
/// </summary>
event DesignerEventHandler DesignerDisposed;
/// <summary>
/// Adds an event that will be raised when the global selection changes.
/// </summary>
event EventHandler SelectionChanged;
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel.Design
{
/// <summary>
/// Provides global event notifications and the ability to create designers.
/// </summary>
public interface IDesignerEventService
{
/// <summary>
/// Gets the currently active designer.
/// </summary>
IDesignerHost? ActiveDesigner { get; }
/// <summary>
/// Gets or sets a collection of running design documents in the development environment.
/// </summary>
DesignerCollection Designers { get; }
/// <summary>
/// Adds an event that will be raised when the currently active designer changes.
/// </summary>
event ActiveDesignerEventHandler ActiveDesignerChanged;
/// <summary>
/// Adds an event that will be raised when a designer is created.
/// </summary>
event DesignerEventHandler DesignerCreated;
/// <summary>
/// Adds an event that will be raised when a designer is disposed.
/// </summary>
event DesignerEventHandler DesignerDisposed;
/// <summary>
/// Adds an event that will be raised when the global selection changes.
/// </summary>
event EventHandler SelectionChanged;
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest147/Generated147.il
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated147 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public sequential sealed MyStruct197`1<T0>
extends [mscorlib]System.ValueType
implements class IBase2`2<!T0,class BaseClass0>, class IBase2`2<class BaseClass0,class BaseClass1>
{
.pack 0
.size 1
.method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining {
ldstr "MyStruct197::Method7.1557<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<T0,class BaseClass0>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<!T0,class BaseClass0>::Method7<[1]>()
ldstr "MyStruct197::Method7.MI.1558<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret }
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated147 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct197.T<T0,(valuetype MyStruct197`1<!!T0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct197.T<T0,(valuetype MyStruct197`1<!!T0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct197`1<!!T0>
callvirt instance string class IBase2`2<!!T0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct197`1<!!T0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct197.A<(valuetype MyStruct197`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct197.A<(valuetype MyStruct197`1<class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct197.B<(valuetype MyStruct197`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct197.B<(valuetype MyStruct197`1<class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_1)
ldloca V_1
initobj valuetype MyStruct197`1<class BaseClass0>
ldloca V_1
dup
call instance string valuetype MyStruct197`1<class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass0> on type MyStruct197"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct197`1<class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct197`1<class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct197`1<class BaseClass0>::ToString() pop
pop
ldloc V_1
box valuetype MyStruct197`1<class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct197`1<class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct197`1<class BaseClass1> V_2)
ldloca V_2
initobj valuetype MyStruct197`1<class BaseClass1>
ldloca V_2
dup
call instance string valuetype MyStruct197`1<class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass1> on type MyStruct197"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct197`1<class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct197`1<class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct197`1<class BaseClass1>::ToString() pop
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_3)
ldloca V_3
initobj valuetype MyStruct197`1<class BaseClass0>
.try { ldloc V_3
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct197`1<class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_3
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_3
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.A<valuetype MyStruct197`1<class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_3
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct197`1<class BaseClass0>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_3
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass0>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_3
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.B<valuetype MyStruct197`1<class BaseClass0>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct197`1<class BaseClass1> V_4)
ldloca V_4
initobj valuetype MyStruct197`1<class BaseClass1>
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.A<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.try { ldloc V_4
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_4
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_4
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.B<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV12
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV13
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.A<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV14
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV15
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV16
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.B<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV17
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_5)
ldloca V_5
initobj valuetype MyStruct197`1<class BaseClass0>
.try { ldloc V_5
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass0>>(!!1,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_5
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.A<valuetype MyStruct197`1<class BaseClass0>>(!!0,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.locals init (valuetype MyStruct197`1<class BaseClass1> V_6)
ldloca V_6
initobj valuetype MyStruct197`1<class BaseClass1>
.try { ldloc V_6
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_6
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.B<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_7)
ldloca V_7
initobj valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass0> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0> ldnull
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance bool valuetype MyStruct197`1<class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct197`1<class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass0>::ToString() calli default string(object) pop
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct197`1<class BaseClass1> V_8)
ldloca V_8
initobj valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1> ldnull
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance bool valuetype MyStruct197`1<class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct197`1<class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass1>::ToString() calli default string(object) pop
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated147::MethodCallingTest()
call void Generated147::ConstrainedCallsTest()
call void Generated147::StructConstrainedInterfaceCallsTest()
call void Generated147::CalliTest()
ldc.i4 100
ret
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated147 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public sequential sealed MyStruct197`1<T0>
extends [mscorlib]System.ValueType
implements class IBase2`2<!T0,class BaseClass0>, class IBase2`2<class BaseClass0,class BaseClass1>
{
.pack 0
.size 1
.method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining {
ldstr "MyStruct197::Method7.1557<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<T0,class BaseClass0>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<!T0,class BaseClass0>::Method7<[1]>()
ldstr "MyStruct197::Method7.MI.1558<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret }
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated147 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct197.T<T0,(valuetype MyStruct197`1<!!T0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct197.T<T0,(valuetype MyStruct197`1<!!T0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct197`1<!!T0>
callvirt instance string class IBase2`2<!!T0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct197`1<!!T0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct197.A<(valuetype MyStruct197`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct197.A<(valuetype MyStruct197`1<class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct197.B<(valuetype MyStruct197`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct197.B<(valuetype MyStruct197`1<class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct197`1<class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_1)
ldloca V_1
initobj valuetype MyStruct197`1<class BaseClass0>
ldloca V_1
dup
call instance string valuetype MyStruct197`1<class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass0> on type MyStruct197"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct197`1<class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct197`1<class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct197`1<class BaseClass0>::ToString() pop
pop
ldloc V_1
box valuetype MyStruct197`1<class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct197`1<class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct197`1<class BaseClass1> V_2)
ldloca V_2
initobj valuetype MyStruct197`1<class BaseClass1>
ldloca V_2
dup
call instance string valuetype MyStruct197`1<class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass1> on type MyStruct197"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct197`1<class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct197`1<class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct197`1<class BaseClass1>::ToString() pop
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct197`1<class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_3)
ldloca V_3
initobj valuetype MyStruct197`1<class BaseClass0>
.try { ldloc V_3
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct197`1<class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_3
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_3
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.A<valuetype MyStruct197`1<class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_3
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct197`1<class BaseClass0>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_3
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass0>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_3
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.B<valuetype MyStruct197`1<class BaseClass0>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct197`1<class BaseClass1> V_4)
ldloca V_4
initobj valuetype MyStruct197`1<class BaseClass1>
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.A<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.try { ldloc V_4
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_4
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_4
ldstr "MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.IBase2.A.B<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV12
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV13
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.A.A<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV14
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!2,string) leave.s LV15
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV16
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16:
.try { ldloc V_4
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#"
call void Generated147::M.IBase2.B.B<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV17
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_5)
ldloca V_5
initobj valuetype MyStruct197`1<class BaseClass0>
.try { ldloc V_5
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.T<class BaseClass0,valuetype MyStruct197`1<class BaseClass0>>(!!1,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_5
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.A<valuetype MyStruct197`1<class BaseClass0>>(!!0,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.locals init (valuetype MyStruct197`1<class BaseClass1> V_6)
ldloca V_6
initobj valuetype MyStruct197`1<class BaseClass1>
.try { ldloc V_6
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.T<class BaseClass1,valuetype MyStruct197`1<class BaseClass1>>(!!1,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_6
ldstr "MyStruct197::Method7.MI.1558<System.Object>()#" +
"MyStruct197::Method7.1557<System.Object>()#"
call void Generated147::M.MyStruct197.B<valuetype MyStruct197`1<class BaseClass1>>(!!0,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct197`1<class BaseClass0> V_7)
ldloca V_7
initobj valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass0> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0> ldnull
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance bool valuetype MyStruct197`1<class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct197`1<class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7 box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass0>::ToString() calli default string(object) pop
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldloc V_7
box valuetype MyStruct197`1<class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct197`1<class BaseClass1> V_8)
ldloca V_8
initobj valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "valuetype MyStruct197`1<class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1> ldnull
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance bool valuetype MyStruct197`1<class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct197`1<class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8 box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string valuetype MyStruct197`1<class BaseClass1>::ToString() calli default string(object) pop
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.1557<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldloc V_8
box valuetype MyStruct197`1<class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct197::Method7.MI.1558<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct197`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated147::MethodCallingTest()
call void Generated147::ConstrainedCallsTest()
call void Generated147::StructConstrainedInterfaceCallsTest()
call void Generated147::CalliTest()
ldc.i4 100
ret
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/HardwareIntrinsics/X86/Sse1/StoreAligned_r.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<DebugType>Embedded</DebugType>
<Optimize />
</PropertyGroup>
<ItemGroup>
<Compile Include="StoreAligned.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<DebugType>Embedded</DebugType>
<Optimize />
</PropertyGroup>
<ItemGroup>
<Compile Include="StoreAligned.cs" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/HardwareIntrinsics/General/Vector64/ConvertToUInt64.Double.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace JIT.HardwareIntrinsics.General
{
public static partial class Program
{
private static void ConvertToUInt64Double()
{
var test = new VectorUnaryOpTest__ConvertToUInt64Double();
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class VectorUnaryOpTest__ConvertToUInt64Double
{
private struct DataTable
{
private byte[] inArray1;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Double[] inArray1, UInt64[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt64>();
if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector64<Double> _fld1;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>());
return testStruct;
}
public void RunStructFldScenario(VectorUnaryOpTest__ConvertToUInt64Double testClass)
{
var result = Vector64.ConvertToUInt64(_fld1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 8;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<UInt64>>() / sizeof(UInt64);
private static Double[] _data1 = new Double[Op1ElementCount];
private static Vector64<Double> _clsVar1;
private Vector64<Double> _fld1;
private DataTable _dataTable;
static VectorUnaryOpTest__ConvertToUInt64Double()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>());
}
public VectorUnaryOpTest__ConvertToUInt64Double()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
_dataTable = new DataTable(_data1, new UInt64[RetElementCount], LargestVectorSize);
}
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Vector64.ConvertToUInt64(
Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var method = typeof(Vector64).GetMethod(nameof(Vector64.ConvertToUInt64), new Type[] {
typeof(Vector64<Double>)
});
if (method is null)
{
method = typeof(Vector64).GetMethod(nameof(Vector64.ConvertToUInt64), 1, new Type[] {
typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0))
});
}
if (method.IsGenericMethodDefinition)
{
method = method.MakeGenericMethod(typeof(UInt64));
}
var result = method.Invoke(null, new object[] {
Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Vector64.ConvertToUInt64(
_clsVar1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr);
var result = Vector64.ConvertToUInt64(op1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new VectorUnaryOpTest__ConvertToUInt64Double();
var result = Vector64.ConvertToUInt64(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Vector64.ConvertToUInt64(_fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Vector64.ConvertToUInt64(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
private void ValidateResult(Vector64<Double> op1, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt64>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Double>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt64>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(Double[] firstOp, UInt64[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (ulong)(firstOp[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (ulong)(firstOp[i]))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.{nameof(Vector64.ConvertToUInt64)}<UInt64>(Vector64<Double>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace JIT.HardwareIntrinsics.General
{
public static partial class Program
{
private static void ConvertToUInt64Double()
{
var test = new VectorUnaryOpTest__ConvertToUInt64Double();
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class VectorUnaryOpTest__ConvertToUInt64Double
{
private struct DataTable
{
private byte[] inArray1;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Double[] inArray1, UInt64[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt64>();
if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector64<Double> _fld1;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>());
return testStruct;
}
public void RunStructFldScenario(VectorUnaryOpTest__ConvertToUInt64Double testClass)
{
var result = Vector64.ConvertToUInt64(_fld1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 8;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<UInt64>>() / sizeof(UInt64);
private static Double[] _data1 = new Double[Op1ElementCount];
private static Vector64<Double> _clsVar1;
private Vector64<Double> _fld1;
private DataTable _dataTable;
static VectorUnaryOpTest__ConvertToUInt64Double()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>());
}
public VectorUnaryOpTest__ConvertToUInt64Double()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
_dataTable = new DataTable(_data1, new UInt64[RetElementCount], LargestVectorSize);
}
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Vector64.ConvertToUInt64(
Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var method = typeof(Vector64).GetMethod(nameof(Vector64.ConvertToUInt64), new Type[] {
typeof(Vector64<Double>)
});
if (method is null)
{
method = typeof(Vector64).GetMethod(nameof(Vector64.ConvertToUInt64), 1, new Type[] {
typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0))
});
}
if (method.IsGenericMethodDefinition)
{
method = method.MakeGenericMethod(typeof(UInt64));
}
var result = method.Invoke(null, new object[] {
Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Vector64.ConvertToUInt64(
_clsVar1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr);
var result = Vector64.ConvertToUInt64(op1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new VectorUnaryOpTest__ConvertToUInt64Double();
var result = Vector64.ConvertToUInt64(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Vector64.ConvertToUInt64(_fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Vector64.ConvertToUInt64(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
private void ValidateResult(Vector64<Double> op1, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt64>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Double>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt64>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(Double[] firstOp, UInt64[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (ulong)(firstOp[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (ulong)(firstOp[i]))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.{nameof(Vector64.ConvertToUInt64)}<UInt64>(Vector64<Double>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/nativeaot/Runtime/amd64/AsmMacros.inc
|
;;
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;;
include AsmOffsets.inc ; generated by the build from AsmOffsets.cpp
;;
;; MACROS
;;
;
; Define macros to build unwind data for prologues.
;
push_nonvol_reg macro Reg
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, <push_nonvol_reg cannot be used after save_reg_postrsp>
push Reg
.pushreg Reg
endm
push_vol_reg macro Reg
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, push_vol_reg cannot be used after save_reg_postrsp
push Reg
.allocstack 8
endm
push_imm macro imm
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, push_vol_reg cannot be used after save_reg_postrsp
push imm
.allocstack 8
endm
push_eflags macro
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, push_eflags cannot be used after save_reg_postrsp
pushfq
.allocstack 8
endm
alloc_stack macro Size
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, alloc_stack cannot be used after save_reg_postrsp
sub rsp, Size
.allocstack Size
endm
save_reg_frame macro Reg, FrameReg, Offset
.erre ___FRAME_REG_SET, save_reg_frame cannot be used before set_frame
mov Offset[FrameReg], Reg
.savereg Reg, Offset
endm
save_reg_postrsp macro Reg, Offset
.errnz ___FRAME_REG_SET, save_reg_postrsp cannot be used after set_frame
mov Offset[rsp], Reg
.savereg Reg, Offset
___STACK_ADJUSTMENT_FORBIDDEN = 1
endm
save_xmm128_frame macro Reg, FrameReg, Offset
.erre ___FRAME_REG_SET, save_xmm128_frame cannot be used before set_frame
movdqa Offset[FrameReg], Reg
.savexmm128 Reg, Offset
endm
save_xmm128_postrsp macro Reg, Offset
.errnz ___FRAME_REG_SET, save_reg_postrsp cannot be used after set_frame
movdqa Offset[rsp], Reg
.savexmm128 Reg, Offset
___STACK_ADJUSTMENT_FORBIDDEN = 1
endm
set_frame macro Reg, Offset
.errnz ___FRAME_REG_SET, set_frame cannot be used more than once
if Offset
lea Reg, Offset[rsp]
else
mov reg, rsp
endif
.setframe Reg, Offset
___FRAME_REG_SET = 1
endm
END_PROLOGUE macro
.endprolog
endm
;
; Define function entry/end macros.
;
LEAF_ENTRY macro Name, Section
Section segment para 'CODE'
align 16
public Name
Name proc
endm
LEAF_END macro Name, section
Name endp
Section ends
endm
LEAF_END_MARKED macro Name, section
public Name&_End
Name&_End label qword
; this nop is important to keep the label in
; the right place in the face of BBT
nop
Name endp
Section ends
endm
NESTED_ENTRY macro Name, Section, Handler
Section segment para 'CODE'
align 16
public Name
ifb <Handler>
Name proc frame
else
Name proc frame:Handler
endif
___FRAME_REG_SET = 0
___STACK_ADJUSTMENT_FORBIDDEN = 0
endm
NESTED_END macro Name, section
Name endp
Section ends
endm
NESTED_END_MARKED macro Name, section
public Name&_End
Name&_End label qword
Name endp
Section ends
endm
ALTERNATE_ENTRY macro Name
Name label proc
PUBLIC Name
endm
LABELED_RETURN_ADDRESS macro Name
Name label proc
PUBLIC Name
endm
EXPORT_POINTER_TO_ADDRESS macro Name
local AddressToExport
AddressToExport label proc
.const
align 8
Name dq offset AddressToExport
public Name
.code
endm
_tls_array equ 58h ;; offsetof(TEB, ThreadLocalStoragePointer)
;;
;; __declspec(thread) version
;;
INLINE_GETTHREAD macro destReg, trashReg
EXTERN _tls_index : DWORD
EXTERN tls_CurrentThread:DWORD
;;
;; construct 'eax' from 'rax' so that the register size and data size match
;;
;; BEWARE: currently only r10 is allowed as destReg from the r8-r15 set.
;;
ifidni <destReg>, <r10>
destRegDWORD EQU r10d
else
destRegDWORD TEXTEQU @CatStr( e, @SubStr( destReg, 2, 2 ) )
endif
mov destRegDWORD, [_tls_index]
mov trashReg, gs:[_tls_array]
mov trashReg, [trashReg + destReg * 8]
mov destRegDWORD, SECTIONREL tls_CurrentThread
add destReg, trashReg
endm
INLINE_THREAD_UNHIJACK macro threadReg, trashReg1, trashReg2
;;
;; Thread::Unhijack()
;;
mov trashReg1, [threadReg + OFFSETOF__Thread__m_pvHijackedReturnAddress]
cmp trashReg1, 0
je @F
mov trashReg2, [threadReg + OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation]
mov [trashReg2], trashReg1
mov qword ptr [threadReg + OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation], 0
mov qword ptr [threadReg + OFFSETOF__Thread__m_pvHijackedReturnAddress], 0
@@:
endm
DEFAULT_FRAME_SAVE_FLAGS equ PTFF_SAVE_ALL_PRESERVED + PTFF_SAVE_RSP
;;
;; Macro used from unmanaged helpers called from managed code where the helper does not transition immediately
;; into pre-emptive mode but may cause a GC and thus requires the stack is crawlable. This is typically the
;; case for helpers that meddle in GC state (e.g. allocation helpers) where the code must remain in
;; cooperative mode since it handles object references and internal GC state directly but a garbage collection
;; may be inevitable. In these cases we need to be able to transition to pre-meptive mode deep within the
;; unmanaged code but still be able to initialize the stack iterator at the first stack frame which may hold
;; interesting GC references. In all our helper cases this corresponds to the most recent managed frame (e.g.
;; the helper's caller).
;;
;; This macro builds a frame describing the current state of managed code.
;;
;; INVARIANTS
;; - The macro assumes it is called from a prolog, prior to a frame pointer being setup.
;; - All preserved registers remain unchanged from their values in managed code.
;;
PUSH_COOP_PINVOKE_FRAME macro trashReg
lea trashReg, [rsp + 8h]
push_vol_reg trashReg ; save caller's RSP
push_nonvol_reg r15 ; save preserved registers
push_nonvol_reg r14 ; ..
push_nonvol_reg r13 ; ..
push_nonvol_reg r12 ; ..
push_nonvol_reg rdi ; ..
push_nonvol_reg rsi ; ..
push_nonvol_reg rbx ; ..
push_imm DEFAULT_FRAME_SAVE_FLAGS ; save the register bitmask
push_vol_reg trashReg ; Thread * (unused by stackwalker)
push_nonvol_reg rbp ; save caller's RBP
mov trashReg, [rsp + 11*8] ; Find the return address
push_vol_reg trashReg ; save m_RIP
lea trashReg, [rsp + 0] ; trashReg == address of frame
;; allocate scratch space and any required alignment
alloc_stack 28h
endm
;;
;; Pop the frame and restore register state preserved by PUSH_COOP_PINVOKE_FRAME
;;
POP_COOP_PINVOKE_FRAME macro
add rsp, 30h
pop rbp ; restore RBP
pop r10 ; discard thread
pop r10 ; discard bitmask
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop r10 ; discard caller RSP
endm
; - TAILCALL_RAX: ("jmp rax") should be used for tailcalls, this emits an instruction
; sequence which is recognized by the unwinder as a valid epilogue terminator
TAILJMP_RAX TEXTEQU <DB 048h, 0FFh, 0E0h>
;;
;; CONSTANTS -- INTEGER
;;
TSF_Attached equ 01h
TSF_SuppressGcStress equ 08h
TSF_DoNotTriggerGc equ 10h
;;
;; Rename fields of nested structs
;;
OFFSETOF__Thread__m_alloc_context__alloc_ptr equ OFFSETOF__Thread__m_rgbAllocContextBuffer + OFFSETOF__gc_alloc_context__alloc_ptr
OFFSETOF__Thread__m_alloc_context__alloc_limit equ OFFSETOF__Thread__m_rgbAllocContextBuffer + OFFSETOF__gc_alloc_context__alloc_limit
;; GC type flags
GC_ALLOC_FINALIZE equ 1
;; Note: these must match the defs in PInvokeTransitionFrameFlags
PTFF_SAVE_RBX equ 00000001h
PTFF_SAVE_RSI equ 00000002h
PTFF_SAVE_RDI equ 00000004h
PTFF_SAVE_R12 equ 00000010h
PTFF_SAVE_R13 equ 00000020h
PTFF_SAVE_R14 equ 00000040h
PTFF_SAVE_R15 equ 00000080h
PTFF_SAVE_ALL_PRESERVED equ 000000F7h ;; NOTE: RBP is not included in this set!
PTFF_SAVE_RSP equ 00008000h
PTFF_SAVE_RAX equ 00000100h ;; RAX is saved if it contains a GC ref and we're in hijack handler
PTFF_SAVE_ALL_SCRATCH equ 00007F00h
PTFF_RAX_IS_GCREF equ 00010000h ;; iff PTFF_SAVE_RAX: set -> eax is Object, clear -> eax is scalar
PTFF_RAX_IS_BYREF equ 00020000h ;; iff PTFF_SAVE_RAX: set -> eax is ByRef, clear -> eax is Object or scalar
PTFF_THREAD_ABORT equ 00040000h ;; indicates that ThreadAbortException should be thrown when returning from the transition
;; These must match the TrapThreadsFlags enum
TrapThreadsFlags_None equ 0
TrapThreadsFlags_AbortInProgress equ 1
TrapThreadsFlags_TrapThreads equ 2
;; This must match HwExceptionCode.STATUS_REDHAWK_THREAD_ABORT
STATUS_REDHAWK_THREAD_ABORT equ 43h
;;
;; CONSTANTS -- SYMBOLS
;;
ifdef FEATURE_GC_STRESS
REDHAWKGCINTERFACE__STRESSGC equ ?StressGc@RedhawkGCInterface@@SAXXZ
THREAD__HIJACKFORGCSTRESS equ ?HijackForGcStress@Thread@@SAXPEAUPAL_LIMITED_CONTEXT@@@Z
endif ;; FEATURE_GC_STRESS
;;
;; IMPORTS
;;
EXTERN RhpGcAlloc : PROC
EXTERN RhpValidateExInfoPop : PROC
EXTERN RhDebugBreak : PROC
EXTERN RhpWaitForSuspend2 : PROC
EXTERN RhpWaitForGC2 : PROC
EXTERN RhpReversePInvokeAttachOrTrapThread2 : PROC
EXTERN RhExceptionHandling_FailedAllocation : PROC
EXTERN RhThrowHwEx : PROC
EXTERN RhThrowEx : PROC
EXTERN RhRethrow : PROC
EXTERN RhpGcPoll2 : PROC
ifdef FEATURE_GC_STRESS
EXTERN REDHAWKGCINTERFACE__STRESSGC : PROC
EXTERN THREAD__HIJACKFORGCSTRESS : PROC
endif ;; FEATURE_GC_STRESS
EXTERN g_lowest_address : QWORD
EXTERN g_highest_address : QWORD
EXTERN g_ephemeral_low : QWORD
EXTERN g_ephemeral_high : QWORD
EXTERN g_card_table : QWORD
EXTERN RhpTrapThreads : DWORD
|
;;
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;;
include AsmOffsets.inc ; generated by the build from AsmOffsets.cpp
;;
;; MACROS
;;
;
; Define macros to build unwind data for prologues.
;
push_nonvol_reg macro Reg
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, <push_nonvol_reg cannot be used after save_reg_postrsp>
push Reg
.pushreg Reg
endm
push_vol_reg macro Reg
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, push_vol_reg cannot be used after save_reg_postrsp
push Reg
.allocstack 8
endm
push_imm macro imm
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, push_vol_reg cannot be used after save_reg_postrsp
push imm
.allocstack 8
endm
push_eflags macro
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, push_eflags cannot be used after save_reg_postrsp
pushfq
.allocstack 8
endm
alloc_stack macro Size
.errnz ___STACK_ADJUSTMENT_FORBIDDEN, alloc_stack cannot be used after save_reg_postrsp
sub rsp, Size
.allocstack Size
endm
save_reg_frame macro Reg, FrameReg, Offset
.erre ___FRAME_REG_SET, save_reg_frame cannot be used before set_frame
mov Offset[FrameReg], Reg
.savereg Reg, Offset
endm
save_reg_postrsp macro Reg, Offset
.errnz ___FRAME_REG_SET, save_reg_postrsp cannot be used after set_frame
mov Offset[rsp], Reg
.savereg Reg, Offset
___STACK_ADJUSTMENT_FORBIDDEN = 1
endm
save_xmm128_frame macro Reg, FrameReg, Offset
.erre ___FRAME_REG_SET, save_xmm128_frame cannot be used before set_frame
movdqa Offset[FrameReg], Reg
.savexmm128 Reg, Offset
endm
save_xmm128_postrsp macro Reg, Offset
.errnz ___FRAME_REG_SET, save_reg_postrsp cannot be used after set_frame
movdqa Offset[rsp], Reg
.savexmm128 Reg, Offset
___STACK_ADJUSTMENT_FORBIDDEN = 1
endm
set_frame macro Reg, Offset
.errnz ___FRAME_REG_SET, set_frame cannot be used more than once
if Offset
lea Reg, Offset[rsp]
else
mov reg, rsp
endif
.setframe Reg, Offset
___FRAME_REG_SET = 1
endm
END_PROLOGUE macro
.endprolog
endm
;
; Define function entry/end macros.
;
LEAF_ENTRY macro Name, Section
Section segment para 'CODE'
align 16
public Name
Name proc
endm
LEAF_END macro Name, section
Name endp
Section ends
endm
LEAF_END_MARKED macro Name, section
public Name&_End
Name&_End label qword
; this nop is important to keep the label in
; the right place in the face of BBT
nop
Name endp
Section ends
endm
NESTED_ENTRY macro Name, Section, Handler
Section segment para 'CODE'
align 16
public Name
ifb <Handler>
Name proc frame
else
Name proc frame:Handler
endif
___FRAME_REG_SET = 0
___STACK_ADJUSTMENT_FORBIDDEN = 0
endm
NESTED_END macro Name, section
Name endp
Section ends
endm
NESTED_END_MARKED macro Name, section
public Name&_End
Name&_End label qword
Name endp
Section ends
endm
ALTERNATE_ENTRY macro Name
Name label proc
PUBLIC Name
endm
LABELED_RETURN_ADDRESS macro Name
Name label proc
PUBLIC Name
endm
EXPORT_POINTER_TO_ADDRESS macro Name
local AddressToExport
AddressToExport label proc
.const
align 8
Name dq offset AddressToExport
public Name
.code
endm
_tls_array equ 58h ;; offsetof(TEB, ThreadLocalStoragePointer)
;;
;; __declspec(thread) version
;;
INLINE_GETTHREAD macro destReg, trashReg
EXTERN _tls_index : DWORD
EXTERN tls_CurrentThread:DWORD
;;
;; construct 'eax' from 'rax' so that the register size and data size match
;;
;; BEWARE: currently only r10 is allowed as destReg from the r8-r15 set.
;;
ifidni <destReg>, <r10>
destRegDWORD EQU r10d
else
destRegDWORD TEXTEQU @CatStr( e, @SubStr( destReg, 2, 2 ) )
endif
mov destRegDWORD, [_tls_index]
mov trashReg, gs:[_tls_array]
mov trashReg, [trashReg + destReg * 8]
mov destRegDWORD, SECTIONREL tls_CurrentThread
add destReg, trashReg
endm
INLINE_THREAD_UNHIJACK macro threadReg, trashReg1, trashReg2
;;
;; Thread::Unhijack()
;;
mov trashReg1, [threadReg + OFFSETOF__Thread__m_pvHijackedReturnAddress]
cmp trashReg1, 0
je @F
mov trashReg2, [threadReg + OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation]
mov [trashReg2], trashReg1
mov qword ptr [threadReg + OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation], 0
mov qword ptr [threadReg + OFFSETOF__Thread__m_pvHijackedReturnAddress], 0
@@:
endm
DEFAULT_FRAME_SAVE_FLAGS equ PTFF_SAVE_ALL_PRESERVED + PTFF_SAVE_RSP
;;
;; Macro used from unmanaged helpers called from managed code where the helper does not transition immediately
;; into pre-emptive mode but may cause a GC and thus requires the stack is crawlable. This is typically the
;; case for helpers that meddle in GC state (e.g. allocation helpers) where the code must remain in
;; cooperative mode since it handles object references and internal GC state directly but a garbage collection
;; may be inevitable. In these cases we need to be able to transition to pre-meptive mode deep within the
;; unmanaged code but still be able to initialize the stack iterator at the first stack frame which may hold
;; interesting GC references. In all our helper cases this corresponds to the most recent managed frame (e.g.
;; the helper's caller).
;;
;; This macro builds a frame describing the current state of managed code.
;;
;; INVARIANTS
;; - The macro assumes it is called from a prolog, prior to a frame pointer being setup.
;; - All preserved registers remain unchanged from their values in managed code.
;;
PUSH_COOP_PINVOKE_FRAME macro trashReg
lea trashReg, [rsp + 8h]
push_vol_reg trashReg ; save caller's RSP
push_nonvol_reg r15 ; save preserved registers
push_nonvol_reg r14 ; ..
push_nonvol_reg r13 ; ..
push_nonvol_reg r12 ; ..
push_nonvol_reg rdi ; ..
push_nonvol_reg rsi ; ..
push_nonvol_reg rbx ; ..
push_imm DEFAULT_FRAME_SAVE_FLAGS ; save the register bitmask
push_vol_reg trashReg ; Thread * (unused by stackwalker)
push_nonvol_reg rbp ; save caller's RBP
mov trashReg, [rsp + 11*8] ; Find the return address
push_vol_reg trashReg ; save m_RIP
lea trashReg, [rsp + 0] ; trashReg == address of frame
;; allocate scratch space and any required alignment
alloc_stack 28h
endm
;;
;; Pop the frame and restore register state preserved by PUSH_COOP_PINVOKE_FRAME
;;
POP_COOP_PINVOKE_FRAME macro
add rsp, 30h
pop rbp ; restore RBP
pop r10 ; discard thread
pop r10 ; discard bitmask
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop r10 ; discard caller RSP
endm
; - TAILCALL_RAX: ("jmp rax") should be used for tailcalls, this emits an instruction
; sequence which is recognized by the unwinder as a valid epilogue terminator
TAILJMP_RAX TEXTEQU <DB 048h, 0FFh, 0E0h>
;;
;; CONSTANTS -- INTEGER
;;
TSF_Attached equ 01h
TSF_SuppressGcStress equ 08h
TSF_DoNotTriggerGc equ 10h
;;
;; Rename fields of nested structs
;;
OFFSETOF__Thread__m_alloc_context__alloc_ptr equ OFFSETOF__Thread__m_rgbAllocContextBuffer + OFFSETOF__gc_alloc_context__alloc_ptr
OFFSETOF__Thread__m_alloc_context__alloc_limit equ OFFSETOF__Thread__m_rgbAllocContextBuffer + OFFSETOF__gc_alloc_context__alloc_limit
;; GC type flags
GC_ALLOC_FINALIZE equ 1
;; Note: these must match the defs in PInvokeTransitionFrameFlags
PTFF_SAVE_RBX equ 00000001h
PTFF_SAVE_RSI equ 00000002h
PTFF_SAVE_RDI equ 00000004h
PTFF_SAVE_R12 equ 00000010h
PTFF_SAVE_R13 equ 00000020h
PTFF_SAVE_R14 equ 00000040h
PTFF_SAVE_R15 equ 00000080h
PTFF_SAVE_ALL_PRESERVED equ 000000F7h ;; NOTE: RBP is not included in this set!
PTFF_SAVE_RSP equ 00008000h
PTFF_SAVE_RAX equ 00000100h ;; RAX is saved if it contains a GC ref and we're in hijack handler
PTFF_SAVE_ALL_SCRATCH equ 00007F00h
PTFF_RAX_IS_GCREF equ 00010000h ;; iff PTFF_SAVE_RAX: set -> eax is Object, clear -> eax is scalar
PTFF_RAX_IS_BYREF equ 00020000h ;; iff PTFF_SAVE_RAX: set -> eax is ByRef, clear -> eax is Object or scalar
PTFF_THREAD_ABORT equ 00040000h ;; indicates that ThreadAbortException should be thrown when returning from the transition
;; These must match the TrapThreadsFlags enum
TrapThreadsFlags_None equ 0
TrapThreadsFlags_AbortInProgress equ 1
TrapThreadsFlags_TrapThreads equ 2
;; This must match HwExceptionCode.STATUS_REDHAWK_THREAD_ABORT
STATUS_REDHAWK_THREAD_ABORT equ 43h
;;
;; CONSTANTS -- SYMBOLS
;;
ifdef FEATURE_GC_STRESS
REDHAWKGCINTERFACE__STRESSGC equ ?StressGc@RedhawkGCInterface@@SAXXZ
THREAD__HIJACKFORGCSTRESS equ ?HijackForGcStress@Thread@@SAXPEAUPAL_LIMITED_CONTEXT@@@Z
endif ;; FEATURE_GC_STRESS
;;
;; IMPORTS
;;
EXTERN RhpGcAlloc : PROC
EXTERN RhpValidateExInfoPop : PROC
EXTERN RhDebugBreak : PROC
EXTERN RhpWaitForSuspend2 : PROC
EXTERN RhpWaitForGC2 : PROC
EXTERN RhpReversePInvokeAttachOrTrapThread2 : PROC
EXTERN RhExceptionHandling_FailedAllocation : PROC
EXTERN RhThrowHwEx : PROC
EXTERN RhThrowEx : PROC
EXTERN RhRethrow : PROC
EXTERN RhpGcPoll2 : PROC
ifdef FEATURE_GC_STRESS
EXTERN REDHAWKGCINTERFACE__STRESSGC : PROC
EXTERN THREAD__HIJACKFORGCSTRESS : PROC
endif ;; FEATURE_GC_STRESS
EXTERN g_lowest_address : QWORD
EXTERN g_highest_address : QWORD
EXTERN g_ephemeral_low : QWORD
EXTERN g_ephemeral_high : QWORD
EXTERN g_card_table : QWORD
EXTERN RhpTrapThreads : DWORD
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/Methodical/divrem/div/decimaldiv_cs_d.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="decimaldiv.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="decimaldiv.cs" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/vm/clrconfignative.cpp
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// File: clrconfiguration.cpp
//
#include "common.h"
#include "clrconfignative.h"
#include <configuration.h>
extern "C" BOOL QCALLTYPE ClrConfig_GetConfigBoolValue(LPCWSTR name, BOOL *exist)
{
QCALL_CONTRACT;
BOOL retValue = FALSE;
*exist = FALSE;
BEGIN_QCALL;
if (Configuration::GetKnobStringValue(name) != nullptr)
{
*exist = TRUE;
retValue = Configuration::GetKnobBooleanValue(name, FALSE);
}
END_QCALL;
return(retValue);
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// File: clrconfiguration.cpp
//
#include "common.h"
#include "clrconfignative.h"
#include <configuration.h>
extern "C" BOOL QCALLTYPE ClrConfig_GetConfigBoolValue(LPCWSTR name, BOOL *exist)
{
QCALL_CONTRACT;
BOOL retValue = FALSE;
*exist = FALSE;
BEGIN_QCALL;
if (Configuration::GetKnobStringValue(name) != nullptr)
{
*exist = TRUE;
retValue = Configuration::GetKnobBooleanValue(name, FALSE);
}
END_QCALL;
return(retValue);
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b59477/b59477.ilproj
|
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).il" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).il" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Net.Http/src/Resources/Strings.resx
|
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="net_securityprotocolnotsupported" xml:space="preserve">
<value>The requested security protocol is not supported.</value>
</data>
<data name="net_http_httpmethod_format_error" xml:space="preserve">
<value>The format of the HTTP method is invalid.</value>
</data>
<data name="net_http_reasonphrase_format_error" xml:space="preserve">
<value>The reason phrase must not contain new-line characters.</value>
</data>
<data name="net_http_copyto_array_too_small" xml:space="preserve">
<value>The number of elements is greater than the available space from arrayIndex to the end of the destination array.</value>
</data>
<data name="net_http_headers_not_found" xml:space="preserve">
<value>The given header was not found.</value>
</data>
<data name="net_http_headers_single_value_header" xml:space="preserve">
<value>Cannot add value because header '{0}' does not support multiple values.</value>
</data>
<data name="net_http_headers_invalid_header_name" xml:space="preserve">
<value>The header name '{0}' has an invalid format.</value>
</data>
<data name="net_http_headers_invalid_value" xml:space="preserve">
<value>The format of value '{0}' is invalid.</value>
</data>
<data name="net_http_headers_not_allowed_header_name" xml:space="preserve">
<value>Misused header name, '{0}'. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.</value>
</data>
<data name="net_http_headers_invalid_host_header" xml:space="preserve">
<value>The specified value is not a valid 'Host' header string.</value>
</data>
<data name="net_http_headers_invalid_etag_name" xml:space="preserve">
<value>The specified value is not a valid quoted string.</value>
</data>
<data name="net_http_headers_invalid_range" xml:space="preserve">
<value>Invalid range. At least one of the two parameters must not be null.</value>
</data>
<data name="net_http_headers_no_newlines" xml:space="preserve">
<value>New-line characters are not allowed in header values.</value>
</data>
<data name="net_http_content_buffersize_exceeded" xml:space="preserve">
<value>Cannot write more bytes to the buffer than the configured maximum buffer size: {0}.</value>
</data>
<data name="net_http_content_no_task_returned" xml:space="preserve">
<value>The async operation did not return a System.Threading.Tasks.Task object.</value>
</data>
<data name="net_http_content_stream_already_read" xml:space="preserve">
<value>The stream was already consumed. It cannot be read again.</value>
</data>
<data name="net_http_content_readonly_stream" xml:space="preserve">
<value>The stream does not support writing.</value>
</data>
<data name="net_http_content_invalid_charset" xml:space="preserve">
<value>The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.</value>
</data>
<data name="net_http_content_stream_copy_error" xml:space="preserve">
<value>Error while copying content to a stream.</value>
</data>
<data name="net_http_content_read_as_stream_has_task" xml:space="preserve">
<value>The content's stream has already been retrieved via async ReadAsStreamAsync and cannot be subsequently accessed synchronously.</value>
</data>
<data name="net_http_argument_empty_string" xml:space="preserve">
<value>The value cannot be null or empty.</value>
</data>
<data name="net_http_client_request_already_sent" xml:space="preserve">
<value>The request message was already sent. Cannot send the same request message multiple times.</value>
</data>
<data name="net_http_operation_started" xml:space="preserve">
<value>This instance has already started one or more requests. Properties can only be modified before sending the first request.</value>
</data>
<data name="net_http_client_execution_error" xml:space="preserve">
<value>An error occurred while sending the request.</value>
</data>
<data name="net_http_client_absolute_baseaddress_required" xml:space="preserve">
<value>The base address must be an absolute URI.</value>
</data>
<data name="net_http_client_invalid_requesturi" xml:space="preserve">
<value>An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.</value>
</data>
<data name="net_http_unsupported_requesturi_scheme" xml:space="preserve">
<value>The '{0}' scheme is not supported.</value>
</data>
<data name="net_http_parser_invalid_base64_string" xml:space="preserve">
<value>Value '{0}' is not a valid Base64 string. Error: {1}</value>
</data>
<data name="net_http_handler_noresponse" xml:space="preserve">
<value>Handler did not return a response message.</value>
</data>
<data name="net_http_handler_norequest" xml:space="preserve">
<value>A request message must be provided. It cannot be null.</value>
</data>
<data name="net_http_message_not_success_statuscode" xml:space="preserve">
<value>Response status code does not indicate success: {0} ({1}).</value>
</data>
<data name="net_http_content_field_too_long" xml:space="preserve">
<value>The field cannot be longer than {0} characters.</value>
</data>
<data name="net_http_log_headers_no_newlines" xml:space="preserve">
<value>Value for header '{0}' contains new-line characters. Value: '{1}'.</value>
</data>
<data name="net_http_log_headers_invalid_quality" xml:space="preserve">
<value>The 'q' value is invalid: '{0}'.</value>
</data>
<data name="net_http_handler_not_assigned" xml:space="preserve">
<value>The inner handler has not been assigned.</value>
</data>
<data name="net_http_invalid_enable_first" xml:space="preserve">
<value>The {0} property must be set to '{1}' to use this property.</value>
</data>
<data name="net_http_content_buffersize_limit" xml:space="preserve">
<value>Buffering more than {0} bytes is not supported.</value>
</data>
<data name="net_http_io_read" xml:space="preserve">
<value>The read operation failed, see inner exception.</value>
</data>
<data name="net_http_io_read_incomplete" xml:space="preserve">
<value>Unable to read data from the transport connection. The connection was closed before all data could be read. Expected {0} bytes, read {1} bytes.</value>
</data>
<data name="net_http_io_write" xml:space="preserve">
<value>The write operation failed, see inner exception.</value>
</data>
<data name="net_http_chunked_not_allowed_with_empty_content" xml:space="preserve">
<value>'Transfer-Encoding: chunked' header can not be used when content object is not specified.</value>
</data>
<data name="net_http_invalid_cookiecontainer" xml:space="preserve">
<value>When using CookieUsePolicy.UseSpecifiedCookieContainer, the CookieContainer property must not be null.</value>
</data>
<data name="net_http_invalid_proxyusepolicy" xml:space="preserve">
<value>When using a non-null Proxy, the WindowsProxyUsePolicy property must be set to WindowsProxyUsePolicy.UseCustomProxy.</value>
</data>
<data name="net_http_invalid_proxy" xml:space="preserve">
<value>When using WindowsProxyUsePolicy.UseCustomProxy, the Proxy property must not be null.</value>
</data>
<data name="net_http_value_must_be_greater_than" xml:space="preserve">
<value>The specified value must be greater than {0}.</value>
</data>
<data name="net_http_value_must_be_greater_than_or_equal" xml:space="preserve">
<value>The specified value '{0}' must be greater than or equal to '{1}'.</value>
</data>
<data name="net_cookie_attribute" xml:space="preserve">
<value>The '{0}'='{1}' part of the cookie is invalid.</value>
</data>
<data name="ArgumentOutOfRange_FileLengthTooBig" xml:space="preserve">
<value>Specified file length was too large for the file system.</value>
</data>
<data name="IO_FileExists_Name" xml:space="preserve">
<value>The file '{0}' already exists.</value>
</data>
<data name="IO_FileNotFound" xml:space="preserve">
<value>Unable to find the specified file.</value>
</data>
<data name="IO_FileNotFound_FileName" xml:space="preserve">
<value>Could not find file '{0}'.</value>
</data>
<data name="IO_PathNotFound_NoPathName" xml:space="preserve">
<value>Could not find a part of the path.</value>
</data>
<data name="IO_PathNotFound_Path" xml:space="preserve">
<value>Could not find a part of the path '{0}'.</value>
</data>
<data name="IO_PathTooLong" xml:space="preserve">
<value>The specified file name or path is too long, or a component of the specified path is too long.</value>
</data>
<data name="IO_SharingViolation_File" xml:space="preserve">
<value>The process cannot access the file '{0}' because it is being used by another process.</value>
</data>
<data name="IO_SharingViolation_NoFileName" xml:space="preserve">
<value>The process cannot access the file because it is being used by another process.</value>
</data>
<data name="UnauthorizedAccess_IODenied_NoPathName" xml:space="preserve">
<value>Access to the path is denied.</value>
</data>
<data name="UnauthorizedAccess_IODenied_Path" xml:space="preserve">
<value>Access to the path '{0}' is denied.</value>
</data>
<data name="net_http_username_empty_string" xml:space="preserve">
<value>The username for a credential object cannot be null or empty.</value>
</data>
<data name="net_http_no_concurrent_io_allowed" xml:space="preserve">
<value>The stream does not support concurrent I/O read or write operations.</value>
</data>
<data name="net_http_invalid_response" xml:space="preserve">
<value>The server returned an invalid or unrecognized response.</value>
</data>
<data name="net_http_request_content_length_mismatch" xml:space="preserve">
<value>Sent {0} request content bytes, but Content-Length promised {1}.</value>
</data>
<data name="net_http_invalid_response_premature_eof" xml:space="preserve">
<value>The response ended prematurely.</value>
</data>
<data name="net_http_invalid_response_missing_frame" xml:space="preserve">
<value>The response ended prematurely while waiting for the next frame from the server.</value>
</data>
<data name="net_http_invalid_response_premature_eof_bytecount" xml:space="preserve">
<value>The response ended prematurely, with at least {0} additional bytes expected.</value>
</data>
<data name="net_http_invalid_response_chunk_header_invalid" xml:space="preserve">
<value>Received chunk header length could not be parsed: '{0}'.</value>
</data>
<data name="net_http_invalid_response_chunk_extension_invalid" xml:space="preserve">
<value>Received an invalid chunk extension: '{0}'.</value>
</data>
<data name="net_http_invalid_response_chunk_terminator_invalid" xml:space="preserve">
<value>Received an invalid chunk terminator: '{0}'.</value>
</data>
<data name="net_http_invalid_response_status_line" xml:space="preserve">
<value>Received an invalid status line: '{0}'.</value>
</data>
<data name="net_http_invalid_response_status_code" xml:space="preserve">
<value>Received an invalid status code: '{0}'.</value>
</data>
<data name="net_http_invalid_response_status_reason" xml:space="preserve">
<value>Received status phrase could not be decoded with iso-8859-1: '{0}'.</value>
</data>
<data name="net_http_invalid_response_multiple_status_codes" xml:space="preserve">
<value>The response contained more than one status code.</value>
</data>
<data name="net_http_invalid_response_header_folder" xml:space="preserve">
<value>Received an invalid folded header.</value>
</data>
<data name="net_http_invalid_response_header_line" xml:space="preserve">
<value>Received an invalid header line: '{0}'.</value>
</data>
<data name="net_http_invalid_response_header_name" xml:space="preserve">
<value>Received an invalid header name: '{0}'.</value>
</data>
<data name="net_http_request_aborted" xml:space="preserve">
<value>The request was aborted.</value>
</data>
<data name="net_http_invalid_response_pseudo_header_in_trailer" xml:space="preserve">
<value>Received an HTTP/2 pseudo-header as a trailing header.</value>
</data>
<data name="net_http_buffer_insufficient_length" xml:space="preserve">
<value>The buffer was not long enough.</value>
</data>
<data name="net_http_response_headers_exceeded_length" xml:space="preserve">
<value>The HTTP response headers length exceeded the set limit of {0} bytes.</value>
</data>
<data name="ArgumentOutOfRange_NeedNonNegativeNum" xml:space="preserve">
<value>Non-negative number required.</value>
</data>
<data name="ArgumentOutOfRange_NeedPosNum" xml:space="preserve">
<value>Positive number required.</value>
</data>
<data name="NotSupported_UnreadableStream" xml:space="preserve">
<value>Stream does not support reading.</value>
</data>
<data name="NotSupported_UnwritableStream" xml:space="preserve">
<value>Stream does not support writing.</value>
</data>
<data name="ObjectDisposed_StreamClosed" xml:space="preserve">
<value>Cannot access a closed stream.</value>
</data>
<data name="net_http_invalid_proxy_scheme" xml:space="preserve">
<value>Only the 'http', 'socks4', 'socks4a' and 'socks5' schemes are allowed for proxies.</value>
</data>
<data name="net_http_request_invalid_char_encoding" xml:space="preserve">
<value>Request headers must contain only ASCII characters.</value>
</data>
<data name="net_http_ssl_connection_failed" xml:space="preserve">
<value>The SSL connection could not be established, see inner exception.</value>
</data>
<data name="net_http_unsupported_chunking" xml:space="preserve">
<value>HTTP 1.0 does not support chunking.</value>
</data>
<data name="net_http_unsupported_version" xml:space="preserve">
<value>Request HttpVersion 0.X is not supported. Use 1.0 or above.</value>
</data>
<data name="IO_SeekBeforeBegin" xml:space="preserve">
<value>An attempt was made to move the position before the beginning of the stream.</value>
</data>
<data name="net_ssl_app_protocols_invalid" xml:space="preserve">
<value>The application protocol list is invalid.</value>
</data>
<data name="net_ssl_http2_requires_tls12" xml:space="preserve">
<value>HTTP/2 requires TLS 1.2 or newer, but '{0}' was negotiated.</value>
</data>
<data name="IO_PathTooLong_Path" xml:space="preserve">
<value>The path '{0}' is too long, or a component of the specified path is too long.</value>
</data>
<data name="net_http_request_no_host" xml:space="preserve">
<value>CONNECT request must contain Host header.</value>
</data>
<data name="net_http_winhttp_error" xml:space="preserve">
<value>Error {0} calling {1}, '{2}'.</value>
</data>
<data name="net_http_http2_connection_error" xml:space="preserve">
<value>The HTTP/2 server sent invalid data on the connection. HTTP/2 error code '{0}' (0x{1}).</value>
</data>
<data name="net_http_http2_stream_error" xml:space="preserve">
<value>The HTTP/2 server reset the stream. HTTP/2 error code '{0}' (0x{1}).</value>
</data>
<data name="net_http_http2_connection_not_established" xml:space="preserve">
<value>An HTTP/2 connection could not be established because the server did not complete the HTTP/2 handshake.</value>
</data>
<data name="net_http_http2_invalidinitialstreamwindowsize" xml:space="preserve">
<value>The initial HTTP/2 stream window size must be between {0} and {1}.</value>
</data>
<data name="net_MethodNotImplementedException" xml:space="preserve">
<value>This method is not implemented by this class.</value>
</data>
<data name="event_OperationReturnedSomething" xml:space="preserve">
<value>{0} returned {1}.</value>
</data>
<data name="net_log_operation_failed_with_error" xml:space="preserve">
<value>{0} failed with error {1}.</value>
</data>
<data name="net_completed_result" xml:space="preserve">
<value>This operation cannot be performed on a completed asynchronous result object.</value>
</data>
<data name="net_invalid_enum" xml:space="preserve">
<value>The specified value is not valid in the '{0}' enumeration.</value>
</data>
<data name="net_auth_message_not_encrypted" xml:space="preserve">
<value>Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level.</value>
</data>
<data name="net_securitypackagesupport" xml:space="preserve">
<value>The requested security package is not supported.</value>
</data>
<data name="SSPIInvalidHandleType" xml:space="preserve">
<value>'{0}' is not a supported handle type.</value>
</data>
<data name="net_http_authconnectionfailure" xml:space="preserve">
<value>Authentication failed because the connection could not be reused.</value>
</data>
<data name="net_nego_server_not_supported" xml:space="preserve">
<value>Server implementation is not supported</value>
</data>
<data name="net_nego_protection_level_not_supported" xml:space="preserve">
<value>Requested protection level is not supported with the GSSAPI implementation currently installed.</value>
</data>
<data name="net_context_buffer_too_small" xml:space="preserve">
<value>Insufficient buffer space. Required: {0} Actual: {1}.</value>
</data>
<data name="net_gssapi_operation_failed_detailed" xml:space="preserve">
<value>GSSAPI operation failed with error - {0} ({1}).</value>
</data>
<data name="net_gssapi_operation_failed" xml:space="preserve">
<value>GSSAPI operation failed with status: {0} (Minor status: {1}).</value>
</data>
<data name="net_gssapi_operation_failed_detailed_majoronly" xml:space="preserve">
<value>GSSAPI operation failed with error - {0}.</value>
</data>
<data name="net_gssapi_operation_failed_majoronly" xml:space="preserve">
<value>GSSAPI operation failed with status: {0}.</value>
</data>
<data name="net_gssapi_ntlm_missing_plugin" xml:space="preserve">
<value>NTLM authentication requires the GSSAPI plugin 'gss-ntlmssp'.</value>
</data>
<data name="net_ntlm_not_possible_default_cred" xml:space="preserve">
<value>NTLM authentication is not possible with default credentials on this platform.</value>
</data>
<data name="net_nego_not_supported_empty_target_with_defaultcreds" xml:space="preserve">
<value>Target name should be non empty if default credentials are passed.</value>
</data>
<data name="net_http_hpack_huffman_decode_failed" xml:space="preserve">
<value>Huffman-coded literal string failed to decode.</value>
</data>
<data name="net_http_hpack_incomplete_header_block" xml:space="preserve">
<value>Incomplete header block received.</value>
</data>
<data name="net_http_hpack_late_dynamic_table_size_update" xml:space="preserve">
<value>Dynamic table size update received after beginning of header block.</value>
</data>
<data name="net_http_hpack_bad_integer" xml:space="preserve">
<value>HPACK integer exceeds limits or has an overlong encoding.</value>
</data>
<data name="net_http_disposed_while_in_use" xml:space="preserve">
<value>The object was disposed while operations were in progress.</value>
</data>
<data name="net_http_hpack_large_table_size_update" xml:space="preserve">
<value>Dynamic table size update to {0} bytes exceeds limit of {1} bytes.</value>
</data>
<data name="net_http_server_shutdown" xml:space="preserve">
<value>The server shut down the connection.</value>
</data>
<data name="net_http_hpack_invalid_index" xml:space="preserve">
<value>Invalid header index: {0} is outside of static table and no dynamic table entry found.</value>
</data>
<data name="net_http_hpack_unexpected_end" xml:space="preserve">
<value>End of headers reached with incomplete token.</value>
</data>
<data name="net_http_headers_exceeded_length" xml:space="preserve">
<value>The HTTP headers length exceeded the set limit of {0} bytes.</value>
</data>
<data name="net_http_invalid_header_name" xml:space="preserve">
<value>Received an invalid header name: '{0}'.</value>
</data>
<data name="net_http_http3_connection_error" xml:space="preserve">
<value>The HTTP/3 server sent invalid data on the connection. HTTP/3 error code '{0}' (0x{1}).</value>
</data>
<data name="net_http_retry_on_older_version" xml:space="preserve">
<value>The server is unable to process the request using the current HTTP version and indicates the request should be retried on an older HTTP version.</value>
</data>
<data name="net_http_content_write_larger_than_content_length" xml:space="preserve">
<value>Unable to write content to request stream; content would exceed Content-Length.</value>
</data>
<data name="net_http_qpack_no_dynamic_table" xml:space="preserve">
<value>The HTTP/3 server attempted to reference a dynamic table index that does not exist.</value>
</data>
<data name="net_http_request_timedout" xml:space="preserve">
<value>The request was canceled due to the configured HttpClient.Timeout of {0} seconds elapsing.</value>
</data>
<data name="net_http_connect_timedout" xml:space="preserve">
<value>A connection could not be established within the configured ConnectTimeout.</value>
</data>
<data name="net_quic_connectionaborted" xml:space="preserve">
<value>Connection aborted by peer ({0}).</value>
</data>
<data name="net_quic_operationaborted" xml:space="preserve">
<value>Operation aborted.</value>
</data>
<data name="net_quic_streamaborted" xml:space="preserve">
<value>Stream aborted by peer ({0}).</value>
</data>
<data name="net_http_missing_sync_implementation" xml:space="preserve">
<value>The synchronous method is not supported by '{0}'. If you're using a custom '{1}' and wish to use synchronous HTTP methods, you must override its '{2}' virtual method.</value>
</data>
<data name="net_http_http2_sync_not_supported" xml:space="preserve">
<value>The synchronous method is not supported by '{0}' for HTTP/2 or higher. Either use an asynchronous method or downgrade the request version to HTTP/1.1 or lower.</value>
</data>
<data name="net_http_upgrade_not_enabled_sync" xml:space="preserve">
<value>HTTP request version upgrade is not enabled for synchronous '{0}'. Do not use '{1}' version policy for synchronous HTTP methods.</value>
</data>
<data name="net_http_requested_version_cannot_establish" xml:space="preserve">
<value>Requesting HTTP version {0} with version policy {1} while unable to establish HTTP/{2} connection.</value>
</data>
<data name="net_http_requested_version_server_refused" xml:space="preserve">
<value>Requesting HTTP version {0} with version policy {1} while server offers only version fallback.</value>
</data>
<data name="net_http_exception_during_plaintext_filter" xml:space="preserve">
<value>An exception occurred while invoking the PlaintextStreamFilter.</value>
</data>
<data name="net_http_null_from_connect_callback" xml:space="preserve">
<value>The user-supplied ConnectCallback returned null.</value>
</data>
<data name="net_http_null_from_plaintext_filter" xml:space="preserve">
<value>The user-supplied PlaintextStreamFilter returned null.</value>
</data>
<data name="net_http_marshalling_response_promise_from_fetch" xml:space="preserve">
<value>Internal error marshalling the response Promise from `fetch`.</value>
</data>
<data name="net_http_synchronous_reads_not_supported" xml:space="preserve">
<value>Synchronous reads are not supported, use ReadAsync instead.</value>
</data>
<data name="net_socks_auth_failed" xml:space="preserve">
<value>Failed to authenticate with the SOCKS server.</value>
</data>
<data name="net_socks_bad_address_type" xml:space="preserve">
<value>SOCKS server returned an unknown address type.</value>
</data>
<data name="net_socks_connection_failed" xml:space="preserve">
<value>SOCKS server failed to connect to the destination.</value>
</data>
<data name="net_socks_ipv6_notsupported" xml:space="preserve">
<value>SOCKS4 does not support IPv6 addresses.</value>
</data>
<data name="net_socks_no_auth_method" xml:space="preserve">
<value>SOCKS server did not return a suitable authentication method.</value>
</data>
<data name="net_socks_no_ipv4_address" xml:space="preserve">
<value>Failed to resolve the destination host to an IPv4 address.</value>
</data>
<data name="net_socks_unexpected_version" xml:space="preserve">
<value>Unexpected SOCKS protocol version. Required {0}, got {1}.</value>
</data>
<data name="net_socks_string_too_long" xml:space="preserve">
<value>Encoding the {0} took more than the maximum of 255 bytes.</value>
</data>
<data name="net_socks_auth_required" xml:space="preserve">
<value>SOCKS server requested username & password authentication.</value>
</data>
<data name="net_http_proxy_tunnel_returned_failure_status_code" xml:space="preserve">
<value>The proxy tunnel request to proxy '{0}' failed with status code '{1}'."</value>
</data>
<data name="PlatformNotSupported_NetHttp" xml:space="preserve">
<value>System.Net.Http is not supported on this platform.</value>
</data>
</root>
|
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="net_securityprotocolnotsupported" xml:space="preserve">
<value>The requested security protocol is not supported.</value>
</data>
<data name="net_http_httpmethod_format_error" xml:space="preserve">
<value>The format of the HTTP method is invalid.</value>
</data>
<data name="net_http_reasonphrase_format_error" xml:space="preserve">
<value>The reason phrase must not contain new-line characters.</value>
</data>
<data name="net_http_copyto_array_too_small" xml:space="preserve">
<value>The number of elements is greater than the available space from arrayIndex to the end of the destination array.</value>
</data>
<data name="net_http_headers_not_found" xml:space="preserve">
<value>The given header was not found.</value>
</data>
<data name="net_http_headers_single_value_header" xml:space="preserve">
<value>Cannot add value because header '{0}' does not support multiple values.</value>
</data>
<data name="net_http_headers_invalid_header_name" xml:space="preserve">
<value>The header name '{0}' has an invalid format.</value>
</data>
<data name="net_http_headers_invalid_value" xml:space="preserve">
<value>The format of value '{0}' is invalid.</value>
</data>
<data name="net_http_headers_not_allowed_header_name" xml:space="preserve">
<value>Misused header name, '{0}'. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.</value>
</data>
<data name="net_http_headers_invalid_host_header" xml:space="preserve">
<value>The specified value is not a valid 'Host' header string.</value>
</data>
<data name="net_http_headers_invalid_etag_name" xml:space="preserve">
<value>The specified value is not a valid quoted string.</value>
</data>
<data name="net_http_headers_invalid_range" xml:space="preserve">
<value>Invalid range. At least one of the two parameters must not be null.</value>
</data>
<data name="net_http_headers_no_newlines" xml:space="preserve">
<value>New-line characters are not allowed in header values.</value>
</data>
<data name="net_http_content_buffersize_exceeded" xml:space="preserve">
<value>Cannot write more bytes to the buffer than the configured maximum buffer size: {0}.</value>
</data>
<data name="net_http_content_no_task_returned" xml:space="preserve">
<value>The async operation did not return a System.Threading.Tasks.Task object.</value>
</data>
<data name="net_http_content_stream_already_read" xml:space="preserve">
<value>The stream was already consumed. It cannot be read again.</value>
</data>
<data name="net_http_content_readonly_stream" xml:space="preserve">
<value>The stream does not support writing.</value>
</data>
<data name="net_http_content_invalid_charset" xml:space="preserve">
<value>The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.</value>
</data>
<data name="net_http_content_stream_copy_error" xml:space="preserve">
<value>Error while copying content to a stream.</value>
</data>
<data name="net_http_content_read_as_stream_has_task" xml:space="preserve">
<value>The content's stream has already been retrieved via async ReadAsStreamAsync and cannot be subsequently accessed synchronously.</value>
</data>
<data name="net_http_argument_empty_string" xml:space="preserve">
<value>The value cannot be null or empty.</value>
</data>
<data name="net_http_client_request_already_sent" xml:space="preserve">
<value>The request message was already sent. Cannot send the same request message multiple times.</value>
</data>
<data name="net_http_operation_started" xml:space="preserve">
<value>This instance has already started one or more requests. Properties can only be modified before sending the first request.</value>
</data>
<data name="net_http_client_execution_error" xml:space="preserve">
<value>An error occurred while sending the request.</value>
</data>
<data name="net_http_client_absolute_baseaddress_required" xml:space="preserve">
<value>The base address must be an absolute URI.</value>
</data>
<data name="net_http_client_invalid_requesturi" xml:space="preserve">
<value>An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.</value>
</data>
<data name="net_http_unsupported_requesturi_scheme" xml:space="preserve">
<value>The '{0}' scheme is not supported.</value>
</data>
<data name="net_http_parser_invalid_base64_string" xml:space="preserve">
<value>Value '{0}' is not a valid Base64 string. Error: {1}</value>
</data>
<data name="net_http_handler_noresponse" xml:space="preserve">
<value>Handler did not return a response message.</value>
</data>
<data name="net_http_handler_norequest" xml:space="preserve">
<value>A request message must be provided. It cannot be null.</value>
</data>
<data name="net_http_message_not_success_statuscode" xml:space="preserve">
<value>Response status code does not indicate success: {0} ({1}).</value>
</data>
<data name="net_http_content_field_too_long" xml:space="preserve">
<value>The field cannot be longer than {0} characters.</value>
</data>
<data name="net_http_log_headers_no_newlines" xml:space="preserve">
<value>Value for header '{0}' contains new-line characters. Value: '{1}'.</value>
</data>
<data name="net_http_log_headers_invalid_quality" xml:space="preserve">
<value>The 'q' value is invalid: '{0}'.</value>
</data>
<data name="net_http_handler_not_assigned" xml:space="preserve">
<value>The inner handler has not been assigned.</value>
</data>
<data name="net_http_invalid_enable_first" xml:space="preserve">
<value>The {0} property must be set to '{1}' to use this property.</value>
</data>
<data name="net_http_content_buffersize_limit" xml:space="preserve">
<value>Buffering more than {0} bytes is not supported.</value>
</data>
<data name="net_http_io_read" xml:space="preserve">
<value>The read operation failed, see inner exception.</value>
</data>
<data name="net_http_io_read_incomplete" xml:space="preserve">
<value>Unable to read data from the transport connection. The connection was closed before all data could be read. Expected {0} bytes, read {1} bytes.</value>
</data>
<data name="net_http_io_write" xml:space="preserve">
<value>The write operation failed, see inner exception.</value>
</data>
<data name="net_http_chunked_not_allowed_with_empty_content" xml:space="preserve">
<value>'Transfer-Encoding: chunked' header can not be used when content object is not specified.</value>
</data>
<data name="net_http_invalid_cookiecontainer" xml:space="preserve">
<value>When using CookieUsePolicy.UseSpecifiedCookieContainer, the CookieContainer property must not be null.</value>
</data>
<data name="net_http_invalid_proxyusepolicy" xml:space="preserve">
<value>When using a non-null Proxy, the WindowsProxyUsePolicy property must be set to WindowsProxyUsePolicy.UseCustomProxy.</value>
</data>
<data name="net_http_invalid_proxy" xml:space="preserve">
<value>When using WindowsProxyUsePolicy.UseCustomProxy, the Proxy property must not be null.</value>
</data>
<data name="net_http_value_must_be_greater_than" xml:space="preserve">
<value>The specified value must be greater than {0}.</value>
</data>
<data name="net_http_value_must_be_greater_than_or_equal" xml:space="preserve">
<value>The specified value '{0}' must be greater than or equal to '{1}'.</value>
</data>
<data name="net_cookie_attribute" xml:space="preserve">
<value>The '{0}'='{1}' part of the cookie is invalid.</value>
</data>
<data name="ArgumentOutOfRange_FileLengthTooBig" xml:space="preserve">
<value>Specified file length was too large for the file system.</value>
</data>
<data name="IO_FileExists_Name" xml:space="preserve">
<value>The file '{0}' already exists.</value>
</data>
<data name="IO_FileNotFound" xml:space="preserve">
<value>Unable to find the specified file.</value>
</data>
<data name="IO_FileNotFound_FileName" xml:space="preserve">
<value>Could not find file '{0}'.</value>
</data>
<data name="IO_PathNotFound_NoPathName" xml:space="preserve">
<value>Could not find a part of the path.</value>
</data>
<data name="IO_PathNotFound_Path" xml:space="preserve">
<value>Could not find a part of the path '{0}'.</value>
</data>
<data name="IO_PathTooLong" xml:space="preserve">
<value>The specified file name or path is too long, or a component of the specified path is too long.</value>
</data>
<data name="IO_SharingViolation_File" xml:space="preserve">
<value>The process cannot access the file '{0}' because it is being used by another process.</value>
</data>
<data name="IO_SharingViolation_NoFileName" xml:space="preserve">
<value>The process cannot access the file because it is being used by another process.</value>
</data>
<data name="UnauthorizedAccess_IODenied_NoPathName" xml:space="preserve">
<value>Access to the path is denied.</value>
</data>
<data name="UnauthorizedAccess_IODenied_Path" xml:space="preserve">
<value>Access to the path '{0}' is denied.</value>
</data>
<data name="net_http_username_empty_string" xml:space="preserve">
<value>The username for a credential object cannot be null or empty.</value>
</data>
<data name="net_http_no_concurrent_io_allowed" xml:space="preserve">
<value>The stream does not support concurrent I/O read or write operations.</value>
</data>
<data name="net_http_invalid_response" xml:space="preserve">
<value>The server returned an invalid or unrecognized response.</value>
</data>
<data name="net_http_request_content_length_mismatch" xml:space="preserve">
<value>Sent {0} request content bytes, but Content-Length promised {1}.</value>
</data>
<data name="net_http_invalid_response_premature_eof" xml:space="preserve">
<value>The response ended prematurely.</value>
</data>
<data name="net_http_invalid_response_missing_frame" xml:space="preserve">
<value>The response ended prematurely while waiting for the next frame from the server.</value>
</data>
<data name="net_http_invalid_response_premature_eof_bytecount" xml:space="preserve">
<value>The response ended prematurely, with at least {0} additional bytes expected.</value>
</data>
<data name="net_http_invalid_response_chunk_header_invalid" xml:space="preserve">
<value>Received chunk header length could not be parsed: '{0}'.</value>
</data>
<data name="net_http_invalid_response_chunk_extension_invalid" xml:space="preserve">
<value>Received an invalid chunk extension: '{0}'.</value>
</data>
<data name="net_http_invalid_response_chunk_terminator_invalid" xml:space="preserve">
<value>Received an invalid chunk terminator: '{0}'.</value>
</data>
<data name="net_http_invalid_response_status_line" xml:space="preserve">
<value>Received an invalid status line: '{0}'.</value>
</data>
<data name="net_http_invalid_response_status_code" xml:space="preserve">
<value>Received an invalid status code: '{0}'.</value>
</data>
<data name="net_http_invalid_response_status_reason" xml:space="preserve">
<value>Received status phrase could not be decoded with iso-8859-1: '{0}'.</value>
</data>
<data name="net_http_invalid_response_multiple_status_codes" xml:space="preserve">
<value>The response contained more than one status code.</value>
</data>
<data name="net_http_invalid_response_header_folder" xml:space="preserve">
<value>Received an invalid folded header.</value>
</data>
<data name="net_http_invalid_response_header_line" xml:space="preserve">
<value>Received an invalid header line: '{0}'.</value>
</data>
<data name="net_http_invalid_response_header_name" xml:space="preserve">
<value>Received an invalid header name: '{0}'.</value>
</data>
<data name="net_http_request_aborted" xml:space="preserve">
<value>The request was aborted.</value>
</data>
<data name="net_http_invalid_response_pseudo_header_in_trailer" xml:space="preserve">
<value>Received an HTTP/2 pseudo-header as a trailing header.</value>
</data>
<data name="net_http_buffer_insufficient_length" xml:space="preserve">
<value>The buffer was not long enough.</value>
</data>
<data name="net_http_response_headers_exceeded_length" xml:space="preserve">
<value>The HTTP response headers length exceeded the set limit of {0} bytes.</value>
</data>
<data name="ArgumentOutOfRange_NeedNonNegativeNum" xml:space="preserve">
<value>Non-negative number required.</value>
</data>
<data name="ArgumentOutOfRange_NeedPosNum" xml:space="preserve">
<value>Positive number required.</value>
</data>
<data name="NotSupported_UnreadableStream" xml:space="preserve">
<value>Stream does not support reading.</value>
</data>
<data name="NotSupported_UnwritableStream" xml:space="preserve">
<value>Stream does not support writing.</value>
</data>
<data name="ObjectDisposed_StreamClosed" xml:space="preserve">
<value>Cannot access a closed stream.</value>
</data>
<data name="net_http_invalid_proxy_scheme" xml:space="preserve">
<value>Only the 'http', 'socks4', 'socks4a' and 'socks5' schemes are allowed for proxies.</value>
</data>
<data name="net_http_request_invalid_char_encoding" xml:space="preserve">
<value>Request headers must contain only ASCII characters.</value>
</data>
<data name="net_http_ssl_connection_failed" xml:space="preserve">
<value>The SSL connection could not be established, see inner exception.</value>
</data>
<data name="net_http_unsupported_chunking" xml:space="preserve">
<value>HTTP 1.0 does not support chunking.</value>
</data>
<data name="net_http_unsupported_version" xml:space="preserve">
<value>Request HttpVersion 0.X is not supported. Use 1.0 or above.</value>
</data>
<data name="IO_SeekBeforeBegin" xml:space="preserve">
<value>An attempt was made to move the position before the beginning of the stream.</value>
</data>
<data name="net_ssl_app_protocols_invalid" xml:space="preserve">
<value>The application protocol list is invalid.</value>
</data>
<data name="net_ssl_http2_requires_tls12" xml:space="preserve">
<value>HTTP/2 requires TLS 1.2 or newer, but '{0}' was negotiated.</value>
</data>
<data name="IO_PathTooLong_Path" xml:space="preserve">
<value>The path '{0}' is too long, or a component of the specified path is too long.</value>
</data>
<data name="net_http_request_no_host" xml:space="preserve">
<value>CONNECT request must contain Host header.</value>
</data>
<data name="net_http_winhttp_error" xml:space="preserve">
<value>Error {0} calling {1}, '{2}'.</value>
</data>
<data name="net_http_http2_connection_error" xml:space="preserve">
<value>The HTTP/2 server sent invalid data on the connection. HTTP/2 error code '{0}' (0x{1}).</value>
</data>
<data name="net_http_http2_stream_error" xml:space="preserve">
<value>The HTTP/2 server reset the stream. HTTP/2 error code '{0}' (0x{1}).</value>
</data>
<data name="net_http_http2_connection_not_established" xml:space="preserve">
<value>An HTTP/2 connection could not be established because the server did not complete the HTTP/2 handshake.</value>
</data>
<data name="net_http_http2_invalidinitialstreamwindowsize" xml:space="preserve">
<value>The initial HTTP/2 stream window size must be between {0} and {1}.</value>
</data>
<data name="net_MethodNotImplementedException" xml:space="preserve">
<value>This method is not implemented by this class.</value>
</data>
<data name="event_OperationReturnedSomething" xml:space="preserve">
<value>{0} returned {1}.</value>
</data>
<data name="net_log_operation_failed_with_error" xml:space="preserve">
<value>{0} failed with error {1}.</value>
</data>
<data name="net_completed_result" xml:space="preserve">
<value>This operation cannot be performed on a completed asynchronous result object.</value>
</data>
<data name="net_invalid_enum" xml:space="preserve">
<value>The specified value is not valid in the '{0}' enumeration.</value>
</data>
<data name="net_auth_message_not_encrypted" xml:space="preserve">
<value>Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level.</value>
</data>
<data name="net_securitypackagesupport" xml:space="preserve">
<value>The requested security package is not supported.</value>
</data>
<data name="SSPIInvalidHandleType" xml:space="preserve">
<value>'{0}' is not a supported handle type.</value>
</data>
<data name="net_http_authconnectionfailure" xml:space="preserve">
<value>Authentication failed because the connection could not be reused.</value>
</data>
<data name="net_nego_server_not_supported" xml:space="preserve">
<value>Server implementation is not supported</value>
</data>
<data name="net_nego_protection_level_not_supported" xml:space="preserve">
<value>Requested protection level is not supported with the GSSAPI implementation currently installed.</value>
</data>
<data name="net_context_buffer_too_small" xml:space="preserve">
<value>Insufficient buffer space. Required: {0} Actual: {1}.</value>
</data>
<data name="net_gssapi_operation_failed_detailed" xml:space="preserve">
<value>GSSAPI operation failed with error - {0} ({1}).</value>
</data>
<data name="net_gssapi_operation_failed" xml:space="preserve">
<value>GSSAPI operation failed with status: {0} (Minor status: {1}).</value>
</data>
<data name="net_gssapi_operation_failed_detailed_majoronly" xml:space="preserve">
<value>GSSAPI operation failed with error - {0}.</value>
</data>
<data name="net_gssapi_operation_failed_majoronly" xml:space="preserve">
<value>GSSAPI operation failed with status: {0}.</value>
</data>
<data name="net_gssapi_ntlm_missing_plugin" xml:space="preserve">
<value>NTLM authentication requires the GSSAPI plugin 'gss-ntlmssp'.</value>
</data>
<data name="net_ntlm_not_possible_default_cred" xml:space="preserve">
<value>NTLM authentication is not possible with default credentials on this platform.</value>
</data>
<data name="net_nego_not_supported_empty_target_with_defaultcreds" xml:space="preserve">
<value>Target name should be non empty if default credentials are passed.</value>
</data>
<data name="net_http_hpack_huffman_decode_failed" xml:space="preserve">
<value>Huffman-coded literal string failed to decode.</value>
</data>
<data name="net_http_hpack_incomplete_header_block" xml:space="preserve">
<value>Incomplete header block received.</value>
</data>
<data name="net_http_hpack_late_dynamic_table_size_update" xml:space="preserve">
<value>Dynamic table size update received after beginning of header block.</value>
</data>
<data name="net_http_hpack_bad_integer" xml:space="preserve">
<value>HPACK integer exceeds limits or has an overlong encoding.</value>
</data>
<data name="net_http_disposed_while_in_use" xml:space="preserve">
<value>The object was disposed while operations were in progress.</value>
</data>
<data name="net_http_hpack_large_table_size_update" xml:space="preserve">
<value>Dynamic table size update to {0} bytes exceeds limit of {1} bytes.</value>
</data>
<data name="net_http_server_shutdown" xml:space="preserve">
<value>The server shut down the connection.</value>
</data>
<data name="net_http_hpack_invalid_index" xml:space="preserve">
<value>Invalid header index: {0} is outside of static table and no dynamic table entry found.</value>
</data>
<data name="net_http_hpack_unexpected_end" xml:space="preserve">
<value>End of headers reached with incomplete token.</value>
</data>
<data name="net_http_headers_exceeded_length" xml:space="preserve">
<value>The HTTP headers length exceeded the set limit of {0} bytes.</value>
</data>
<data name="net_http_invalid_header_name" xml:space="preserve">
<value>Received an invalid header name: '{0}'.</value>
</data>
<data name="net_http_http3_connection_error" xml:space="preserve">
<value>The HTTP/3 server sent invalid data on the connection. HTTP/3 error code '{0}' (0x{1}).</value>
</data>
<data name="net_http_retry_on_older_version" xml:space="preserve">
<value>The server is unable to process the request using the current HTTP version and indicates the request should be retried on an older HTTP version.</value>
</data>
<data name="net_http_content_write_larger_than_content_length" xml:space="preserve">
<value>Unable to write content to request stream; content would exceed Content-Length.</value>
</data>
<data name="net_http_qpack_no_dynamic_table" xml:space="preserve">
<value>The HTTP/3 server attempted to reference a dynamic table index that does not exist.</value>
</data>
<data name="net_http_request_timedout" xml:space="preserve">
<value>The request was canceled due to the configured HttpClient.Timeout of {0} seconds elapsing.</value>
</data>
<data name="net_http_connect_timedout" xml:space="preserve">
<value>A connection could not be established within the configured ConnectTimeout.</value>
</data>
<data name="net_quic_connectionaborted" xml:space="preserve">
<value>Connection aborted by peer ({0}).</value>
</data>
<data name="net_quic_operationaborted" xml:space="preserve">
<value>Operation aborted.</value>
</data>
<data name="net_quic_streamaborted" xml:space="preserve">
<value>Stream aborted by peer ({0}).</value>
</data>
<data name="net_http_missing_sync_implementation" xml:space="preserve">
<value>The synchronous method is not supported by '{0}'. If you're using a custom '{1}' and wish to use synchronous HTTP methods, you must override its '{2}' virtual method.</value>
</data>
<data name="net_http_http2_sync_not_supported" xml:space="preserve">
<value>The synchronous method is not supported by '{0}' for HTTP/2 or higher. Either use an asynchronous method or downgrade the request version to HTTP/1.1 or lower.</value>
</data>
<data name="net_http_upgrade_not_enabled_sync" xml:space="preserve">
<value>HTTP request version upgrade is not enabled for synchronous '{0}'. Do not use '{1}' version policy for synchronous HTTP methods.</value>
</data>
<data name="net_http_requested_version_cannot_establish" xml:space="preserve">
<value>Requesting HTTP version {0} with version policy {1} while unable to establish HTTP/{2} connection.</value>
</data>
<data name="net_http_requested_version_server_refused" xml:space="preserve">
<value>Requesting HTTP version {0} with version policy {1} while server offers only version fallback.</value>
</data>
<data name="net_http_exception_during_plaintext_filter" xml:space="preserve">
<value>An exception occurred while invoking the PlaintextStreamFilter.</value>
</data>
<data name="net_http_null_from_connect_callback" xml:space="preserve">
<value>The user-supplied ConnectCallback returned null.</value>
</data>
<data name="net_http_null_from_plaintext_filter" xml:space="preserve">
<value>The user-supplied PlaintextStreamFilter returned null.</value>
</data>
<data name="net_http_marshalling_response_promise_from_fetch" xml:space="preserve">
<value>Internal error marshalling the response Promise from `fetch`.</value>
</data>
<data name="net_http_synchronous_reads_not_supported" xml:space="preserve">
<value>Synchronous reads are not supported, use ReadAsync instead.</value>
</data>
<data name="net_socks_auth_failed" xml:space="preserve">
<value>Failed to authenticate with the SOCKS server.</value>
</data>
<data name="net_socks_bad_address_type" xml:space="preserve">
<value>SOCKS server returned an unknown address type.</value>
</data>
<data name="net_socks_connection_failed" xml:space="preserve">
<value>SOCKS server failed to connect to the destination.</value>
</data>
<data name="net_socks_ipv6_notsupported" xml:space="preserve">
<value>SOCKS4 does not support IPv6 addresses.</value>
</data>
<data name="net_socks_no_auth_method" xml:space="preserve">
<value>SOCKS server did not return a suitable authentication method.</value>
</data>
<data name="net_socks_no_ipv4_address" xml:space="preserve">
<value>Failed to resolve the destination host to an IPv4 address.</value>
</data>
<data name="net_socks_unexpected_version" xml:space="preserve">
<value>Unexpected SOCKS protocol version. Required {0}, got {1}.</value>
</data>
<data name="net_socks_string_too_long" xml:space="preserve">
<value>Encoding the {0} took more than the maximum of 255 bytes.</value>
</data>
<data name="net_socks_auth_required" xml:space="preserve">
<value>SOCKS server requested username & password authentication.</value>
</data>
<data name="net_http_proxy_tunnel_returned_failure_status_code" xml:space="preserve">
<value>The proxy tunnel request to proxy '{0}' failed with status code '{1}'."</value>
</data>
<data name="PlatformNotSupported_NetHttp" xml:space="preserve">
<value>System.Net.Http is not supported on this platform.</value>
</data>
</root>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/ilasm/portable_pdb.h
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef PORTABLE_PDB_H
#define PORTABLE_PDB_H
#include "ilasmpch.h"
#include "asmtemplates.h"
#include "portablepdbmdds.h"
#include "portablepdbmdi.h"
//*****************************************************************************
// Document
//*****************************************************************************
class Document
{
public:
Document();
~Document();
char* GetName();
void SetName(char* name);
mdDocument GetToken();
void SetToken(mdDocument token);
private:
char* m_name;
mdDocument m_token;
};
typedef FIFO<Document> DocumentList;
class BinStr;
class Method;
class Scope;
struct LinePC;
//*****************************************************************************
// PortablePdbWriter
//*****************************************************************************
class PortablePdbWriter
{
public:
PortablePdbWriter();
~PortablePdbWriter();
HRESULT Init(IMetaDataDispenserEx2* mdDispenser);
IMetaDataEmit3* GetEmitter();
GUID* GetGuid();
ULONG GetTimestamp();
Document* GetCurrentDocument();
HRESULT BuildPdbStream(IMetaDataEmit3* peEmitter, mdMethodDef entryPoint);
HRESULT DefineDocument(char* name, GUID* language);
HRESULT DefineSequencePoints(Method* method);
HRESULT DefineLocalScope(Method* method);
private:
BOOL VerifySequencePoint(LinePC* curr, LinePC* next);
void CompressUnsignedLong(ULONG srcData, BinStr* dstBuffer);
void CompressSignedLong(LONG srcData, BinStr* dstBuffer);
BOOL _DefineLocalScope(mdMethodDef methodDefToken, Scope* currScope);
private:
IMetaDataEmit3* m_pdbEmitter;
PORT_PDB_STREAM m_pdbStream;
DocumentList m_documentList;
Document* m_currentDocument;
};
#endif
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef PORTABLE_PDB_H
#define PORTABLE_PDB_H
#include "ilasmpch.h"
#include "asmtemplates.h"
#include "portablepdbmdds.h"
#include "portablepdbmdi.h"
//*****************************************************************************
// Document
//*****************************************************************************
class Document
{
public:
Document();
~Document();
char* GetName();
void SetName(char* name);
mdDocument GetToken();
void SetToken(mdDocument token);
private:
char* m_name;
mdDocument m_token;
};
typedef FIFO<Document> DocumentList;
class BinStr;
class Method;
class Scope;
struct LinePC;
//*****************************************************************************
// PortablePdbWriter
//*****************************************************************************
class PortablePdbWriter
{
public:
PortablePdbWriter();
~PortablePdbWriter();
HRESULT Init(IMetaDataDispenserEx2* mdDispenser);
IMetaDataEmit3* GetEmitter();
GUID* GetGuid();
ULONG GetTimestamp();
Document* GetCurrentDocument();
HRESULT BuildPdbStream(IMetaDataEmit3* peEmitter, mdMethodDef entryPoint);
HRESULT DefineDocument(char* name, GUID* language);
HRESULT DefineSequencePoints(Method* method);
HRESULT DefineLocalScope(Method* method);
private:
BOOL VerifySequencePoint(LinePC* curr, LinePC* next);
void CompressUnsignedLong(ULONG srcData, BinStr* dstBuffer);
void CompressSignedLong(LONG srcData, BinStr* dstBuffer);
BOOL _DefineLocalScope(mdMethodDef methodDefToken, Scope* currScope);
private:
IMetaDataEmit3* m_pdbEmitter;
PORT_PDB_STREAM m_pdbStream;
DocumentList m_documentList;
Document* m_currentDocument;
};
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.ServiceModel.Syndication/tests/Utils/XmlDiff.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.XPath;
namespace System.ServiceModel.Syndication.Tests
{
internal enum DiffType
{
None,
Success,
Element,
Whitespace,
Comment,
PI,
Text,
CData,
Attribute,
NS,
Prefix,
SourceExtra,
TargetExtra,
NodeType
}
public class XmlDiff
{
private XmlDiffDocument _sourceDoc;
private XmlDiffDocument _targetDoc;
private XmlTextWriter _writer; // Writer to write out the result
private StringBuilder _output;
public XmlDiff()
{
Option = XmlDiffOption.IgnoreEmptyElement |
XmlDiffOption.IgnoreWhitespace |
XmlDiffOption.IgnoreAttributeOrder |
XmlDiffOption.IgnoreNS |
XmlDiffOption.IgnorePrefix |
XmlDiffOption.IgnoreDTD |
XmlDiffOption.IgnoreChildOrder;
}
public XmlDiffOption Option { get; set; } = XmlDiffOption.None;
internal bool IgnoreEmptyElement => (Option & XmlDiffOption.IgnoreEmptyElement) != 0;
internal bool IgnoreComments => (Option & XmlDiffOption.IgnoreComments) != 0;
internal bool IgnoreAttributeOrder => (Option & XmlDiffOption.IgnoreAttributeOrder) != 0;
internal bool IgnoreWhitespace => (Option & XmlDiffOption.IgnoreWhitespace) != 0;
internal bool IgnoreNS => (Option & XmlDiffOption.IgnoreNS) != 0;
internal bool IgnorePrefix => (Option & XmlDiffOption.IgnorePrefix) != 0;
internal bool IgnoreDTD => (Option & XmlDiffOption.IgnoreDTD) != 0;
internal bool IgnoreChildOrder => (Option & XmlDiffOption.IgnoreChildOrder) != 0;
internal bool ConcatenateAdjacentTextNodes => (Option & XmlDiffOption.ConcatenateAdjacentTextNodes) != 0;
internal bool TreatWhitespaceTextAsWSNode => (Option & XmlDiffOption.TreatWhitespaceTextAsWSNode) != 0;
internal bool ParseAttributeValuesAsQName => (Option & XmlDiffOption.ParseAttributeValuesAsQName) != 0;
internal bool DontWriteMatchingNodesToOutput => (Option & XmlDiffOption.DontWriteMatchingNodesToOutput) != 0;
internal bool DontWriteAnythingToOutput => (Option & XmlDiffOption.DontWriteAnythingToOutput) != 0;
private void InitFiles()
{
_sourceDoc = new XmlDiffDocument { Option = Option };
_targetDoc = new XmlDiffDocument { Option = Option };
_output = new StringBuilder(string.Empty);
}
public bool Compare(string source, string target)
{
InitFiles();
_sourceDoc.Load(source);
_targetDoc.Load(target);
return Diff();
}
public bool Compare(XmlReader source, XmlReader target)
{
InitFiles();
_sourceDoc.Load(source);
_targetDoc.Load(target);
return Diff();
}
public bool Compare(XmlReader source, XmlReader target, XmlDiffAdvancedOptions advOptions)
{
InitFiles();
_sourceDoc.Load(source);
_targetDoc.Load(target);
XPathNavigator nav = _sourceDoc.CreateNavigator();
if (!string.IsNullOrEmpty(advOptions.IgnoreChildOrderExpr))
{
XPathExpression expr = GenerateXPathExpression(
advOptions.IgnoreChildOrderExpr,
advOptions,
nav);
_sourceDoc.SortChildren(expr);
_targetDoc.SortChildren(expr);
}
if (advOptions.IgnoreNodesExpr != null && advOptions.IgnoreNodesExpr != "")
{
XPathExpression expr = GenerateXPathExpression(
advOptions.IgnoreNodesExpr,
advOptions,
nav);
_sourceDoc.IgnoreNodes(expr);
_targetDoc.IgnoreNodes(expr);
}
if (advOptions.IgnoreValuesExpr != null && advOptions.IgnoreValuesExpr != "")
{
XPathExpression expr = GenerateXPathExpression(
advOptions.IgnoreValuesExpr,
advOptions,
nav);
_sourceDoc.IgnoreValues(expr);
_targetDoc.IgnoreValues(expr);
}
return Diff();
}
private static XPathExpression GenerateXPathExpression(string expression, XmlDiffAdvancedOptions advOptions, XPathNavigator nav)
{
XPathExpression expr = nav.Compile(expression);
if (advOptions.HadAddedNamespace())
{
XmlNamespaceManager xnm = new XmlNamespaceManager(nav.NameTable);
foreach (KeyValuePair<string, string> each in advOptions.AddedNamespaces)
{
xnm.AddNamespace(each.Key, each.Value);
}
expr.SetContext(xnm);
}
return expr;
}
private bool Diff()
{
bool flag = false;
_writer = new XmlTextWriter(new StringWriter(_output));
_writer.WriteStartElement(string.Empty, "Root", string.Empty);
flag = CompareChildren(_sourceDoc, _targetDoc);
_writer.WriteEndElement();
_writer.Close();
return flag;
}
// This function is being called recursively to compare the children of a certain node.
// When calling this function the navigator should be pointing at the parent node whose children
// we wants to compare and return the navigator back to the same node before exiting from it.
private bool CompareChildren(XmlDiffNode sourceNode, XmlDiffNode targetNode)
{
XmlDiffNode sourceChild = sourceNode.FirstChild;
XmlDiffNode targetChild = targetNode.FirstChild;
bool flag = true;
bool tempFlag = true;
DiffType result;
// Loop to compare all the child elements of the parent node
while (sourceChild != null || targetChild != null)
{
//Console.WriteLine( (sourceChild!=null)?(sourceChild.NodeType.ToString()):"null" );
//Console.WriteLine( (targetChild!=null)?(targetChild.NodeType.ToString()):"null" );
if (sourceChild != null)
{
if (targetChild != null)
{
// Both Source and Target Read successful
if ((result = CompareNodes(sourceChild, targetChild)) == DiffType.Success)
{
// Child nodes compared successfully, write out the result
WriteResult(sourceChild, targetChild, DiffType.Success);
// Check whether this Node has Children, if it does call CompareChildren recursively
if (sourceChild.FirstChild != null)
{
tempFlag = CompareChildren(sourceChild, targetChild);
}
else if (targetChild.FirstChild != null)
{
WriteResult(null, targetChild, DiffType.TargetExtra);
tempFlag = false;
}
// set the compare flag
flag = (flag && tempFlag);
// Writing out End Element to the result
if (sourceChild.NodeType == XmlDiffNodeType.Element && !(sourceChild is XmlDiffEmptyElement))
{
XmlDiffElement sourceElem = sourceChild as XmlDiffElement;
XmlDiffElement targetElem = targetChild as XmlDiffElement;
Debug.Assert(sourceElem != null);
Debug.Assert(targetElem != null);
if (!DontWriteMatchingNodesToOutput && !DontWriteAnythingToOutput)
{
_writer.WriteStartElement(string.Empty, "Node", string.Empty);
_writer.WriteAttributeString(string.Empty, "SourceLineNum", string.Empty, sourceElem.EndLineNumber.ToString());
_writer.WriteAttributeString(string.Empty, "SourceLinePos", string.Empty, sourceElem.EndLinePosition.ToString());
_writer.WriteAttributeString(string.Empty, "TargetLineNum", string.Empty, targetElem.EndLineNumber.ToString());
_writer.WriteAttributeString(string.Empty, "TargetLinePos", string.Empty, targetElem.EndLinePosition.ToString());
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
_writer.WriteCData("</" + sourceElem.Name + ">");
_writer.WriteEndElement();
_writer.WriteEndElement();
}
}
// Move to Next child
sourceChild = sourceChild.NextSibling;
targetChild = targetChild.NextSibling;
}
else
{
// Child nodes not matched, start the recovery process
bool recoveryFlag = false;
// Try to match the source node with the target nodes at the same level
XmlDiffNode backupTargetChild = targetChild.NextSibling;
while (!recoveryFlag && backupTargetChild != null)
{
if (CompareNodes(sourceChild, backupTargetChild) == DiffType.Success)
{
recoveryFlag = true;
do
{
WriteResult(null, targetChild, DiffType.TargetExtra);
targetChild = targetChild.NextSibling;
} while (targetChild != backupTargetChild);
break;
}
backupTargetChild = backupTargetChild.NextSibling;
}
// If not recovered, try to match the target node with the source nodes at the same level
if (!recoveryFlag)
{
XmlDiffNode backupSourceChild = sourceChild.NextSibling;
while (!recoveryFlag && backupSourceChild != null)
{
if (CompareNodes(backupSourceChild, targetChild) == DiffType.Success)
{
recoveryFlag = true;
do
{
WriteResult(sourceChild, null, DiffType.SourceExtra);
sourceChild = sourceChild.NextSibling;
} while (sourceChild != backupSourceChild);
break;
}
backupSourceChild = backupSourceChild.NextSibling;
}
}
// If still not recovered, write both of them as different nodes and move on
if (!recoveryFlag)
{
WriteResult(sourceChild, targetChild, result);
// Check whether this Node has Children, if it does call CompareChildren recursively
if (sourceChild.FirstChild != null)
{
tempFlag = CompareChildren(sourceChild, targetChild);
}
else if (targetChild.FirstChild != null)
{
WriteResult(null, targetChild, DiffType.TargetExtra);
tempFlag = false;
}
// Writing out End Element to the result
bool bSourceNonEmpElemEnd = (sourceChild.NodeType == XmlDiffNodeType.Element && !(sourceChild is XmlDiffEmptyElement));
bool bTargetNonEmpElemEnd = (targetChild.NodeType == XmlDiffNodeType.Element && !(targetChild is XmlDiffEmptyElement));
if (bSourceNonEmpElemEnd || bTargetNonEmpElemEnd)
{
XmlDiffElement sourceElem = sourceChild as XmlDiffElement;
XmlDiffElement targetElem = targetChild as XmlDiffElement;
if (!DontWriteAnythingToOutput)
{
_writer.WriteStartElement(string.Empty, "Node", string.Empty);
_writer.WriteAttributeString(string.Empty, "SourceLineNum", string.Empty, (sourceElem != null) ? sourceElem.EndLineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "SourceLinePos", string.Empty, (sourceElem != null) ? sourceElem.EndLinePosition.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLineNum", string.Empty, (targetElem != null) ? targetElem.EndLineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLinePos", string.Empty, (targetElem != null) ? targetElem.EndLineNumber.ToString() : "-1");
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteAttributeString(string.Empty, "DiffType", string.Empty, GetDiffType(result));
if (bSourceNonEmpElemEnd)
{
_writer.WriteStartElement(string.Empty, "File1", string.Empty);
_writer.WriteCData("</" + sourceElem.Name + ">");
_writer.WriteEndElement();
}
if (bTargetNonEmpElemEnd)
{
_writer.WriteStartElement(string.Empty, "File2", string.Empty);
_writer.WriteCData("</" + targetElem.Name + ">");
_writer.WriteEndElement();
}
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
_writer.WriteEndElement();
_writer.WriteEndElement();
}
}
sourceChild = sourceChild.NextSibling;
targetChild = targetChild.NextSibling;
}
flag = false;
}
}
else
{
// SourceRead NOT NULL targetRead is NULL
WriteResult(sourceChild, null, DiffType.SourceExtra);
flag = false;
sourceChild = sourceChild.NextSibling;
}
}
else if (targetChild != null)
{
// SourceRead is NULL and targetRead is NOT NULL
WriteResult(null, targetChild, DiffType.TargetExtra);
flag = false;
targetChild = targetChild.NextSibling;
}
else
{
//Both SourceRead and TargetRead is NULL
Debug.Assert(false, "Impossible Situation for comparison");
}
}
return flag;
}
/// <summary>
/// Combines multiple adjacent text nodes into a single node.
/// Sometimes the binary reader/writer will break text nodes in multiple
/// nodes; i.e., if the user calls
/// <code>writer.WriteString("foo"); writer.WriteString("bar")</code>
/// on the writer and then iterate calling reader.Read() on the document, the binary
/// reader will report two text nodes ("foo", "bar"), while the
/// other readers will report a single text node ("foobar") - notice that
/// this is not a problem; calling ReadString, or Read[Element]ContentAsString in
/// all readers will return "foobar".
/// </summary>
/// <param name="node">the node to be normalized. Any siblings of
/// type XmlDiffCharacterData will be removed, with their values appended
/// to the value of this node</param>
private void DoConcatenateAdjacentTextNodes(XmlDiffCharacterData node)
{
if (node.NextSibling == null) return;
if (!(node.NextSibling is XmlDiffCharacterData)) return;
StringBuilder sb = new StringBuilder();
sb.Append(node.Value);
XmlDiffCharacterData nextNode = (node.NextSibling as XmlDiffCharacterData);
while (nextNode != null)
{
sb.Append(nextNode.Value);
XmlDiffCharacterData curNextNode = nextNode;
nextNode = (nextNode.NextSibling as XmlDiffCharacterData);
curNextNode.ParentNode.DeleteChild(curNextNode);
}
node.Value = sb.ToString();
}
// This function compares the two nodes passed to it, depending upon the options set by the user.
private DiffType CompareNodes(XmlDiffNode sourceNode, XmlDiffNode targetNode)
{
if (sourceNode.NodeType != targetNode.NodeType)
{
return DiffType.NodeType;
}
switch (sourceNode.NodeType)
{
case XmlDiffNodeType.Element:
XmlDiffElement sourceElem = sourceNode as XmlDiffElement;
XmlDiffElement targetElem = targetNode as XmlDiffElement;
Debug.Assert(sourceElem != null);
Debug.Assert(targetElem != null);
if (!IgnoreNS)
{
if (sourceElem.NamespaceURI != targetElem.NamespaceURI)
{
return DiffType.NS;
}
}
if (!IgnorePrefix)
{
if (sourceElem.Prefix != targetElem.Prefix)
{
return DiffType.Prefix;
}
}
if (sourceElem.LocalName != targetElem.LocalName)
{
return DiffType.Element;
}
if (!IgnoreEmptyElement)
{
if ((sourceElem is XmlDiffEmptyElement) != (targetElem is XmlDiffEmptyElement))
{
return DiffType.Element;
}
}
if (!CompareAttributes(sourceElem, targetElem))
{
return DiffType.Attribute;
}
break;
case XmlDiffNodeType.Text:
case XmlDiffNodeType.Comment:
case XmlDiffNodeType.WS:
XmlDiffCharacterData sourceText = sourceNode as XmlDiffCharacterData;
XmlDiffCharacterData targetText = targetNode as XmlDiffCharacterData;
Debug.Assert(sourceText != null);
Debug.Assert(targetText != null);
if (ConcatenateAdjacentTextNodes)
{
DoConcatenateAdjacentTextNodes(sourceText);
DoConcatenateAdjacentTextNodes(targetText);
}
if (IgnoreWhitespace)
{
if (sourceText.Value.Trim() == targetText.Value.Trim())
{
return DiffType.Success;
}
}
else
{
if (sourceText.Value == targetText.Value)
{
return DiffType.Success;
}
}
if (sourceText.NodeType == XmlDiffNodeType.Text || sourceText.NodeType == XmlDiffNodeType.WS) //should ws nodes also as text nodes???
{
return DiffType.Text;
}
else if (sourceText.NodeType == XmlDiffNodeType.Comment)
{
return DiffType.Comment;
}
else if (sourceText.NodeType == XmlDiffNodeType.CData)
{
return DiffType.CData;
}
else
{
return DiffType.None;
}
case XmlDiffNodeType.PI:
XmlDiffProcessingInstruction sourcePI = sourceNode as XmlDiffProcessingInstruction;
XmlDiffProcessingInstruction targetPI = targetNode as XmlDiffProcessingInstruction;
Debug.Assert(sourcePI != null);
Debug.Assert(targetPI != null);
if (sourcePI.Name != targetPI.Name || sourcePI.Value != targetPI.Value)
{
return DiffType.PI;
}
break;
default:
break;
}
return DiffType.Success;
}
// This function writes the result in XML format so that it can be used by other applications to display the diff
private void WriteResult(XmlDiffNode sourceNode, XmlDiffNode targetNode, DiffType result)
{
if (DontWriteAnythingToOutput) return;
if (result != DiffType.Success || !DontWriteMatchingNodesToOutput)
{
_writer.WriteStartElement(string.Empty, "Node", string.Empty);
_writer.WriteAttributeString(string.Empty, "SourceLineNum", string.Empty, (sourceNode != null) ? sourceNode.LineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "SourceLinePos", string.Empty, (sourceNode != null) ? sourceNode.LinePosition.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLineNum", string.Empty, (targetNode != null) ? targetNode.LineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLinePos", string.Empty, (targetNode != null) ? targetNode.LinePosition.ToString() : "-1");
}
if (result == DiffType.Success)
{
if (!DontWriteMatchingNodesToOutput)
{
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
if (sourceNode.NodeType == XmlDiffNodeType.CData)
{
_writer.WriteString("<![CDATA[");
_writer.WriteCData(GetNodeText(sourceNode, result));
_writer.WriteString("]]>");
}
else
{
_writer.WriteCData(GetNodeText(sourceNode, result));
}
_writer.WriteEndElement();
}
}
else
{
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteAttributeString(string.Empty, "DiffType", string.Empty, GetDiffType(result));
if (sourceNode != null)
{
_writer.WriteStartElement(string.Empty, "File1", string.Empty);
if (sourceNode.NodeType == XmlDiffNodeType.CData)
{
_writer.WriteString("<![CDATA[");
_writer.WriteCData(GetNodeText(sourceNode, result));
_writer.WriteString("]]>");
}
else
{
_writer.WriteString(GetNodeText(sourceNode, result));
}
_writer.WriteEndElement();
}
if (targetNode != null)
{
_writer.WriteStartElement(string.Empty, "File2", string.Empty);
if (targetNode.NodeType == XmlDiffNodeType.CData)
{
_writer.WriteString("<![CDATA[");
_writer.WriteCData(GetNodeText(targetNode, result));
_writer.WriteString("]]>");
}
else
{
_writer.WriteString(GetNodeText(targetNode, result));
}
_writer.WriteEndElement();
}
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
_writer.WriteEndElement();
}
if (result != DiffType.Success || !DontWriteMatchingNodesToOutput)
{
_writer.WriteEndElement();
}
}
// This is a helper function for WriteResult. It gets the Xml representation of the different node we wants
// to write out and all it's children.
private string GetNodeText(XmlDiffNode diffNode, DiffType result)
{
string text = string.Empty;
switch (diffNode.NodeType)
{
case XmlDiffNodeType.Element:
if (result == DiffType.SourceExtra || result == DiffType.TargetExtra)
return diffNode.OuterXml;
StringWriter str = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(str);
XmlDiffElement diffElem = diffNode as XmlDiffElement;
Debug.Assert(diffNode != null);
writer.WriteStartElement(diffElem.Prefix, diffElem.LocalName, diffElem.NamespaceURI);
XmlDiffAttribute diffAttr = diffElem.FirstAttribute;
while (diffAttr != null)
{
writer.WriteAttributeString(diffAttr.Prefix, diffAttr.LocalName, diffAttr.NamespaceURI, diffAttr.Value);
diffAttr = (XmlDiffAttribute)diffAttr.NextSibling;
}
if (diffElem is XmlDiffEmptyElement)
{
writer.WriteEndElement();
text = str.ToString();
}
else
{
text = str.ToString();
text += ">";
}
writer.Close();
break;
case XmlDiffNodeType.CData:
text = ((XmlDiffCharacterData)diffNode).Value;
break;
default:
text = diffNode.OuterXml;
break;
}
return text;
}
// This function is used to compare the attributes of an element node according to the options set by the user.
private bool CompareAttributes(XmlDiffElement sourceElem, XmlDiffElement targetElem)
{
Debug.Assert(sourceElem != null);
Debug.Assert(targetElem != null);
if (sourceElem.AttributeCount != targetElem.AttributeCount)
return false;
if (sourceElem.AttributeCount == 0)
return true;
XmlDiffAttribute sourceAttr = sourceElem.FirstAttribute;
XmlDiffAttribute targetAttr = targetElem.FirstAttribute;
const string xmlnsNamespace = "http://www.w3.org/2000/xmlns/";
if (!IgnoreAttributeOrder)
{
while (sourceAttr != null && targetAttr != null)
{
if (!IgnoreNS)
{
if (sourceAttr.NamespaceURI != targetAttr.NamespaceURI)
{
return false;
}
}
if (!IgnorePrefix)
{
if (sourceAttr.Prefix != targetAttr.Prefix)
{
return false;
}
}
if (sourceAttr.NamespaceURI == xmlnsNamespace && targetAttr.NamespaceURI == xmlnsNamespace)
{
if (!IgnorePrefix && (sourceAttr.LocalName != targetAttr.LocalName))
{
return false;
}
if (!IgnoreNS && (sourceAttr.Value != targetAttr.Value))
{
return false;
}
}
else
{
if (sourceAttr.LocalName != targetAttr.LocalName)
{
return false;
}
if (sourceAttr.Value != targetAttr.Value)
{
if (ParseAttributeValuesAsQName)
{
if (sourceAttr.ValueAsQName != null)
{
if (!sourceAttr.ValueAsQName.Equals(targetAttr.ValueAsQName)) return false;
}
else
{
if (targetAttr.ValueAsQName != null) return false;
}
}
else
{
return false;
}
}
}
sourceAttr = (XmlDiffAttribute)(sourceAttr.NextSibling);
targetAttr = (XmlDiffAttribute)(targetAttr.NextSibling);
}
}
else
{
Hashtable sourceAttributeMap = new Hashtable();
Hashtable targetAttributeMap = new Hashtable();
while (sourceAttr != null && targetAttr != null)
{
if (IgnorePrefix && sourceAttr.NamespaceURI == xmlnsNamespace)
{
// do nothing
}
else
{
string localNameAndNamespace = sourceAttr.LocalName + "<&&>" + sourceAttr.NamespaceURI;
sourceAttributeMap.Add(localNameAndNamespace, sourceAttr);
}
if (IgnorePrefix && targetAttr.NamespaceURI == xmlnsNamespace)
{
// do nothing
}
else
{
string localNameAndNamespace = targetAttr.LocalName + "<&&>" + targetAttr.NamespaceURI;
targetAttributeMap.Add(localNameAndNamespace, targetAttr);
}
sourceAttr = (XmlDiffAttribute)(sourceAttr.NextSibling);
targetAttr = (XmlDiffAttribute)(targetAttr.NextSibling);
}
if (sourceAttributeMap.Count != targetAttributeMap.Count)
{
return false;
}
foreach (string sourceKey in sourceAttributeMap.Keys)
{
if (!targetAttributeMap.ContainsKey(sourceKey))
{
return false;
}
sourceAttr = (XmlDiffAttribute)sourceAttributeMap[sourceKey];
targetAttr = (XmlDiffAttribute)targetAttributeMap[sourceKey];
if (!IgnorePrefix)
{
if (sourceAttr.Prefix != targetAttr.Prefix)
{
return false;
}
}
if (sourceAttr.Value != targetAttr.Value)
{
if (ParseAttributeValuesAsQName)
{
if (sourceAttr.ValueAsQName != null)
{
if (!sourceAttr.ValueAsQName.Equals(targetAttr.ValueAsQName))
{
return false;
}
}
else if (targetAttr.ValueAsQName != null)
{
return false;
}
}
else
{
return false;
}
}
}
}
return true;
}
public string ToXml()
{
if (_output != null)
return _output.ToString();
return string.Empty;
}
public void ToXml(string fileName)
{
FileStream file;
file = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
StreamWriter writer = new StreamWriter(file);
writer.Write("<?xml-stylesheet type='text/xsl' href='diff.xsl'?>");
writer.Write(ToXml());
writer.Close();
file.Close();
}
public void ToXml(Stream stream)
{
StreamWriter writer = new StreamWriter(stream);
writer.Write("<?xml-stylesheet type='text/xsl' href='diff.xsl'?>");
writer.Write(ToXml());
writer.Close();
}
private string GetDiffType(DiffType type)
{
switch (type)
{
case DiffType.None:
return string.Empty;
case DiffType.Element:
return "1";
case DiffType.Whitespace:
return "2";
case DiffType.Comment:
return "3";
case DiffType.PI:
return "4";
case DiffType.Text:
return "5";
case DiffType.Attribute:
return "6";
case DiffType.NS:
return "7";
case DiffType.Prefix:
return "8";
case DiffType.SourceExtra:
return "9";
case DiffType.TargetExtra:
return "10";
case DiffType.NodeType:
return "11";
case DiffType.CData:
return "12";
default:
return string.Empty;
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.XPath;
namespace System.ServiceModel.Syndication.Tests
{
internal enum DiffType
{
None,
Success,
Element,
Whitespace,
Comment,
PI,
Text,
CData,
Attribute,
NS,
Prefix,
SourceExtra,
TargetExtra,
NodeType
}
public class XmlDiff
{
private XmlDiffDocument _sourceDoc;
private XmlDiffDocument _targetDoc;
private XmlTextWriter _writer; // Writer to write out the result
private StringBuilder _output;
public XmlDiff()
{
Option = XmlDiffOption.IgnoreEmptyElement |
XmlDiffOption.IgnoreWhitespace |
XmlDiffOption.IgnoreAttributeOrder |
XmlDiffOption.IgnoreNS |
XmlDiffOption.IgnorePrefix |
XmlDiffOption.IgnoreDTD |
XmlDiffOption.IgnoreChildOrder;
}
public XmlDiffOption Option { get; set; } = XmlDiffOption.None;
internal bool IgnoreEmptyElement => (Option & XmlDiffOption.IgnoreEmptyElement) != 0;
internal bool IgnoreComments => (Option & XmlDiffOption.IgnoreComments) != 0;
internal bool IgnoreAttributeOrder => (Option & XmlDiffOption.IgnoreAttributeOrder) != 0;
internal bool IgnoreWhitespace => (Option & XmlDiffOption.IgnoreWhitespace) != 0;
internal bool IgnoreNS => (Option & XmlDiffOption.IgnoreNS) != 0;
internal bool IgnorePrefix => (Option & XmlDiffOption.IgnorePrefix) != 0;
internal bool IgnoreDTD => (Option & XmlDiffOption.IgnoreDTD) != 0;
internal bool IgnoreChildOrder => (Option & XmlDiffOption.IgnoreChildOrder) != 0;
internal bool ConcatenateAdjacentTextNodes => (Option & XmlDiffOption.ConcatenateAdjacentTextNodes) != 0;
internal bool TreatWhitespaceTextAsWSNode => (Option & XmlDiffOption.TreatWhitespaceTextAsWSNode) != 0;
internal bool ParseAttributeValuesAsQName => (Option & XmlDiffOption.ParseAttributeValuesAsQName) != 0;
internal bool DontWriteMatchingNodesToOutput => (Option & XmlDiffOption.DontWriteMatchingNodesToOutput) != 0;
internal bool DontWriteAnythingToOutput => (Option & XmlDiffOption.DontWriteAnythingToOutput) != 0;
private void InitFiles()
{
_sourceDoc = new XmlDiffDocument { Option = Option };
_targetDoc = new XmlDiffDocument { Option = Option };
_output = new StringBuilder(string.Empty);
}
public bool Compare(string source, string target)
{
InitFiles();
_sourceDoc.Load(source);
_targetDoc.Load(target);
return Diff();
}
public bool Compare(XmlReader source, XmlReader target)
{
InitFiles();
_sourceDoc.Load(source);
_targetDoc.Load(target);
return Diff();
}
public bool Compare(XmlReader source, XmlReader target, XmlDiffAdvancedOptions advOptions)
{
InitFiles();
_sourceDoc.Load(source);
_targetDoc.Load(target);
XPathNavigator nav = _sourceDoc.CreateNavigator();
if (!string.IsNullOrEmpty(advOptions.IgnoreChildOrderExpr))
{
XPathExpression expr = GenerateXPathExpression(
advOptions.IgnoreChildOrderExpr,
advOptions,
nav);
_sourceDoc.SortChildren(expr);
_targetDoc.SortChildren(expr);
}
if (advOptions.IgnoreNodesExpr != null && advOptions.IgnoreNodesExpr != "")
{
XPathExpression expr = GenerateXPathExpression(
advOptions.IgnoreNodesExpr,
advOptions,
nav);
_sourceDoc.IgnoreNodes(expr);
_targetDoc.IgnoreNodes(expr);
}
if (advOptions.IgnoreValuesExpr != null && advOptions.IgnoreValuesExpr != "")
{
XPathExpression expr = GenerateXPathExpression(
advOptions.IgnoreValuesExpr,
advOptions,
nav);
_sourceDoc.IgnoreValues(expr);
_targetDoc.IgnoreValues(expr);
}
return Diff();
}
private static XPathExpression GenerateXPathExpression(string expression, XmlDiffAdvancedOptions advOptions, XPathNavigator nav)
{
XPathExpression expr = nav.Compile(expression);
if (advOptions.HadAddedNamespace())
{
XmlNamespaceManager xnm = new XmlNamespaceManager(nav.NameTable);
foreach (KeyValuePair<string, string> each in advOptions.AddedNamespaces)
{
xnm.AddNamespace(each.Key, each.Value);
}
expr.SetContext(xnm);
}
return expr;
}
private bool Diff()
{
bool flag = false;
_writer = new XmlTextWriter(new StringWriter(_output));
_writer.WriteStartElement(string.Empty, "Root", string.Empty);
flag = CompareChildren(_sourceDoc, _targetDoc);
_writer.WriteEndElement();
_writer.Close();
return flag;
}
// This function is being called recursively to compare the children of a certain node.
// When calling this function the navigator should be pointing at the parent node whose children
// we wants to compare and return the navigator back to the same node before exiting from it.
private bool CompareChildren(XmlDiffNode sourceNode, XmlDiffNode targetNode)
{
XmlDiffNode sourceChild = sourceNode.FirstChild;
XmlDiffNode targetChild = targetNode.FirstChild;
bool flag = true;
bool tempFlag = true;
DiffType result;
// Loop to compare all the child elements of the parent node
while (sourceChild != null || targetChild != null)
{
//Console.WriteLine( (sourceChild!=null)?(sourceChild.NodeType.ToString()):"null" );
//Console.WriteLine( (targetChild!=null)?(targetChild.NodeType.ToString()):"null" );
if (sourceChild != null)
{
if (targetChild != null)
{
// Both Source and Target Read successful
if ((result = CompareNodes(sourceChild, targetChild)) == DiffType.Success)
{
// Child nodes compared successfully, write out the result
WriteResult(sourceChild, targetChild, DiffType.Success);
// Check whether this Node has Children, if it does call CompareChildren recursively
if (sourceChild.FirstChild != null)
{
tempFlag = CompareChildren(sourceChild, targetChild);
}
else if (targetChild.FirstChild != null)
{
WriteResult(null, targetChild, DiffType.TargetExtra);
tempFlag = false;
}
// set the compare flag
flag = (flag && tempFlag);
// Writing out End Element to the result
if (sourceChild.NodeType == XmlDiffNodeType.Element && !(sourceChild is XmlDiffEmptyElement))
{
XmlDiffElement sourceElem = sourceChild as XmlDiffElement;
XmlDiffElement targetElem = targetChild as XmlDiffElement;
Debug.Assert(sourceElem != null);
Debug.Assert(targetElem != null);
if (!DontWriteMatchingNodesToOutput && !DontWriteAnythingToOutput)
{
_writer.WriteStartElement(string.Empty, "Node", string.Empty);
_writer.WriteAttributeString(string.Empty, "SourceLineNum", string.Empty, sourceElem.EndLineNumber.ToString());
_writer.WriteAttributeString(string.Empty, "SourceLinePos", string.Empty, sourceElem.EndLinePosition.ToString());
_writer.WriteAttributeString(string.Empty, "TargetLineNum", string.Empty, targetElem.EndLineNumber.ToString());
_writer.WriteAttributeString(string.Empty, "TargetLinePos", string.Empty, targetElem.EndLinePosition.ToString());
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
_writer.WriteCData("</" + sourceElem.Name + ">");
_writer.WriteEndElement();
_writer.WriteEndElement();
}
}
// Move to Next child
sourceChild = sourceChild.NextSibling;
targetChild = targetChild.NextSibling;
}
else
{
// Child nodes not matched, start the recovery process
bool recoveryFlag = false;
// Try to match the source node with the target nodes at the same level
XmlDiffNode backupTargetChild = targetChild.NextSibling;
while (!recoveryFlag && backupTargetChild != null)
{
if (CompareNodes(sourceChild, backupTargetChild) == DiffType.Success)
{
recoveryFlag = true;
do
{
WriteResult(null, targetChild, DiffType.TargetExtra);
targetChild = targetChild.NextSibling;
} while (targetChild != backupTargetChild);
break;
}
backupTargetChild = backupTargetChild.NextSibling;
}
// If not recovered, try to match the target node with the source nodes at the same level
if (!recoveryFlag)
{
XmlDiffNode backupSourceChild = sourceChild.NextSibling;
while (!recoveryFlag && backupSourceChild != null)
{
if (CompareNodes(backupSourceChild, targetChild) == DiffType.Success)
{
recoveryFlag = true;
do
{
WriteResult(sourceChild, null, DiffType.SourceExtra);
sourceChild = sourceChild.NextSibling;
} while (sourceChild != backupSourceChild);
break;
}
backupSourceChild = backupSourceChild.NextSibling;
}
}
// If still not recovered, write both of them as different nodes and move on
if (!recoveryFlag)
{
WriteResult(sourceChild, targetChild, result);
// Check whether this Node has Children, if it does call CompareChildren recursively
if (sourceChild.FirstChild != null)
{
tempFlag = CompareChildren(sourceChild, targetChild);
}
else if (targetChild.FirstChild != null)
{
WriteResult(null, targetChild, DiffType.TargetExtra);
tempFlag = false;
}
// Writing out End Element to the result
bool bSourceNonEmpElemEnd = (sourceChild.NodeType == XmlDiffNodeType.Element && !(sourceChild is XmlDiffEmptyElement));
bool bTargetNonEmpElemEnd = (targetChild.NodeType == XmlDiffNodeType.Element && !(targetChild is XmlDiffEmptyElement));
if (bSourceNonEmpElemEnd || bTargetNonEmpElemEnd)
{
XmlDiffElement sourceElem = sourceChild as XmlDiffElement;
XmlDiffElement targetElem = targetChild as XmlDiffElement;
if (!DontWriteAnythingToOutput)
{
_writer.WriteStartElement(string.Empty, "Node", string.Empty);
_writer.WriteAttributeString(string.Empty, "SourceLineNum", string.Empty, (sourceElem != null) ? sourceElem.EndLineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "SourceLinePos", string.Empty, (sourceElem != null) ? sourceElem.EndLinePosition.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLineNum", string.Empty, (targetElem != null) ? targetElem.EndLineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLinePos", string.Empty, (targetElem != null) ? targetElem.EndLineNumber.ToString() : "-1");
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteAttributeString(string.Empty, "DiffType", string.Empty, GetDiffType(result));
if (bSourceNonEmpElemEnd)
{
_writer.WriteStartElement(string.Empty, "File1", string.Empty);
_writer.WriteCData("</" + sourceElem.Name + ">");
_writer.WriteEndElement();
}
if (bTargetNonEmpElemEnd)
{
_writer.WriteStartElement(string.Empty, "File2", string.Empty);
_writer.WriteCData("</" + targetElem.Name + ">");
_writer.WriteEndElement();
}
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
_writer.WriteEndElement();
_writer.WriteEndElement();
}
}
sourceChild = sourceChild.NextSibling;
targetChild = targetChild.NextSibling;
}
flag = false;
}
}
else
{
// SourceRead NOT NULL targetRead is NULL
WriteResult(sourceChild, null, DiffType.SourceExtra);
flag = false;
sourceChild = sourceChild.NextSibling;
}
}
else if (targetChild != null)
{
// SourceRead is NULL and targetRead is NOT NULL
WriteResult(null, targetChild, DiffType.TargetExtra);
flag = false;
targetChild = targetChild.NextSibling;
}
else
{
//Both SourceRead and TargetRead is NULL
Debug.Assert(false, "Impossible Situation for comparison");
}
}
return flag;
}
/// <summary>
/// Combines multiple adjacent text nodes into a single node.
/// Sometimes the binary reader/writer will break text nodes in multiple
/// nodes; i.e., if the user calls
/// <code>writer.WriteString("foo"); writer.WriteString("bar")</code>
/// on the writer and then iterate calling reader.Read() on the document, the binary
/// reader will report two text nodes ("foo", "bar"), while the
/// other readers will report a single text node ("foobar") - notice that
/// this is not a problem; calling ReadString, or Read[Element]ContentAsString in
/// all readers will return "foobar".
/// </summary>
/// <param name="node">the node to be normalized. Any siblings of
/// type XmlDiffCharacterData will be removed, with their values appended
/// to the value of this node</param>
private void DoConcatenateAdjacentTextNodes(XmlDiffCharacterData node)
{
if (node.NextSibling == null) return;
if (!(node.NextSibling is XmlDiffCharacterData)) return;
StringBuilder sb = new StringBuilder();
sb.Append(node.Value);
XmlDiffCharacterData nextNode = (node.NextSibling as XmlDiffCharacterData);
while (nextNode != null)
{
sb.Append(nextNode.Value);
XmlDiffCharacterData curNextNode = nextNode;
nextNode = (nextNode.NextSibling as XmlDiffCharacterData);
curNextNode.ParentNode.DeleteChild(curNextNode);
}
node.Value = sb.ToString();
}
// This function compares the two nodes passed to it, depending upon the options set by the user.
private DiffType CompareNodes(XmlDiffNode sourceNode, XmlDiffNode targetNode)
{
if (sourceNode.NodeType != targetNode.NodeType)
{
return DiffType.NodeType;
}
switch (sourceNode.NodeType)
{
case XmlDiffNodeType.Element:
XmlDiffElement sourceElem = sourceNode as XmlDiffElement;
XmlDiffElement targetElem = targetNode as XmlDiffElement;
Debug.Assert(sourceElem != null);
Debug.Assert(targetElem != null);
if (!IgnoreNS)
{
if (sourceElem.NamespaceURI != targetElem.NamespaceURI)
{
return DiffType.NS;
}
}
if (!IgnorePrefix)
{
if (sourceElem.Prefix != targetElem.Prefix)
{
return DiffType.Prefix;
}
}
if (sourceElem.LocalName != targetElem.LocalName)
{
return DiffType.Element;
}
if (!IgnoreEmptyElement)
{
if ((sourceElem is XmlDiffEmptyElement) != (targetElem is XmlDiffEmptyElement))
{
return DiffType.Element;
}
}
if (!CompareAttributes(sourceElem, targetElem))
{
return DiffType.Attribute;
}
break;
case XmlDiffNodeType.Text:
case XmlDiffNodeType.Comment:
case XmlDiffNodeType.WS:
XmlDiffCharacterData sourceText = sourceNode as XmlDiffCharacterData;
XmlDiffCharacterData targetText = targetNode as XmlDiffCharacterData;
Debug.Assert(sourceText != null);
Debug.Assert(targetText != null);
if (ConcatenateAdjacentTextNodes)
{
DoConcatenateAdjacentTextNodes(sourceText);
DoConcatenateAdjacentTextNodes(targetText);
}
if (IgnoreWhitespace)
{
if (sourceText.Value.Trim() == targetText.Value.Trim())
{
return DiffType.Success;
}
}
else
{
if (sourceText.Value == targetText.Value)
{
return DiffType.Success;
}
}
if (sourceText.NodeType == XmlDiffNodeType.Text || sourceText.NodeType == XmlDiffNodeType.WS) //should ws nodes also as text nodes???
{
return DiffType.Text;
}
else if (sourceText.NodeType == XmlDiffNodeType.Comment)
{
return DiffType.Comment;
}
else if (sourceText.NodeType == XmlDiffNodeType.CData)
{
return DiffType.CData;
}
else
{
return DiffType.None;
}
case XmlDiffNodeType.PI:
XmlDiffProcessingInstruction sourcePI = sourceNode as XmlDiffProcessingInstruction;
XmlDiffProcessingInstruction targetPI = targetNode as XmlDiffProcessingInstruction;
Debug.Assert(sourcePI != null);
Debug.Assert(targetPI != null);
if (sourcePI.Name != targetPI.Name || sourcePI.Value != targetPI.Value)
{
return DiffType.PI;
}
break;
default:
break;
}
return DiffType.Success;
}
// This function writes the result in XML format so that it can be used by other applications to display the diff
private void WriteResult(XmlDiffNode sourceNode, XmlDiffNode targetNode, DiffType result)
{
if (DontWriteAnythingToOutput) return;
if (result != DiffType.Success || !DontWriteMatchingNodesToOutput)
{
_writer.WriteStartElement(string.Empty, "Node", string.Empty);
_writer.WriteAttributeString(string.Empty, "SourceLineNum", string.Empty, (sourceNode != null) ? sourceNode.LineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "SourceLinePos", string.Empty, (sourceNode != null) ? sourceNode.LinePosition.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLineNum", string.Empty, (targetNode != null) ? targetNode.LineNumber.ToString() : "-1");
_writer.WriteAttributeString(string.Empty, "TargetLinePos", string.Empty, (targetNode != null) ? targetNode.LinePosition.ToString() : "-1");
}
if (result == DiffType.Success)
{
if (!DontWriteMatchingNodesToOutput)
{
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
if (sourceNode.NodeType == XmlDiffNodeType.CData)
{
_writer.WriteString("<![CDATA[");
_writer.WriteCData(GetNodeText(sourceNode, result));
_writer.WriteString("]]>");
}
else
{
_writer.WriteCData(GetNodeText(sourceNode, result));
}
_writer.WriteEndElement();
}
}
else
{
_writer.WriteStartElement(string.Empty, "Diff", string.Empty);
_writer.WriteAttributeString(string.Empty, "DiffType", string.Empty, GetDiffType(result));
if (sourceNode != null)
{
_writer.WriteStartElement(string.Empty, "File1", string.Empty);
if (sourceNode.NodeType == XmlDiffNodeType.CData)
{
_writer.WriteString("<![CDATA[");
_writer.WriteCData(GetNodeText(sourceNode, result));
_writer.WriteString("]]>");
}
else
{
_writer.WriteString(GetNodeText(sourceNode, result));
}
_writer.WriteEndElement();
}
if (targetNode != null)
{
_writer.WriteStartElement(string.Empty, "File2", string.Empty);
if (targetNode.NodeType == XmlDiffNodeType.CData)
{
_writer.WriteString("<![CDATA[");
_writer.WriteCData(GetNodeText(targetNode, result));
_writer.WriteString("]]>");
}
else
{
_writer.WriteString(GetNodeText(targetNode, result));
}
_writer.WriteEndElement();
}
_writer.WriteEndElement();
_writer.WriteStartElement(string.Empty, "Lexical-equal", string.Empty);
_writer.WriteEndElement();
}
if (result != DiffType.Success || !DontWriteMatchingNodesToOutput)
{
_writer.WriteEndElement();
}
}
// This is a helper function for WriteResult. It gets the Xml representation of the different node we wants
// to write out and all it's children.
private string GetNodeText(XmlDiffNode diffNode, DiffType result)
{
string text = string.Empty;
switch (diffNode.NodeType)
{
case XmlDiffNodeType.Element:
if (result == DiffType.SourceExtra || result == DiffType.TargetExtra)
return diffNode.OuterXml;
StringWriter str = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(str);
XmlDiffElement diffElem = diffNode as XmlDiffElement;
Debug.Assert(diffNode != null);
writer.WriteStartElement(diffElem.Prefix, diffElem.LocalName, diffElem.NamespaceURI);
XmlDiffAttribute diffAttr = diffElem.FirstAttribute;
while (diffAttr != null)
{
writer.WriteAttributeString(diffAttr.Prefix, diffAttr.LocalName, diffAttr.NamespaceURI, diffAttr.Value);
diffAttr = (XmlDiffAttribute)diffAttr.NextSibling;
}
if (diffElem is XmlDiffEmptyElement)
{
writer.WriteEndElement();
text = str.ToString();
}
else
{
text = str.ToString();
text += ">";
}
writer.Close();
break;
case XmlDiffNodeType.CData:
text = ((XmlDiffCharacterData)diffNode).Value;
break;
default:
text = diffNode.OuterXml;
break;
}
return text;
}
// This function is used to compare the attributes of an element node according to the options set by the user.
private bool CompareAttributes(XmlDiffElement sourceElem, XmlDiffElement targetElem)
{
Debug.Assert(sourceElem != null);
Debug.Assert(targetElem != null);
if (sourceElem.AttributeCount != targetElem.AttributeCount)
return false;
if (sourceElem.AttributeCount == 0)
return true;
XmlDiffAttribute sourceAttr = sourceElem.FirstAttribute;
XmlDiffAttribute targetAttr = targetElem.FirstAttribute;
const string xmlnsNamespace = "http://www.w3.org/2000/xmlns/";
if (!IgnoreAttributeOrder)
{
while (sourceAttr != null && targetAttr != null)
{
if (!IgnoreNS)
{
if (sourceAttr.NamespaceURI != targetAttr.NamespaceURI)
{
return false;
}
}
if (!IgnorePrefix)
{
if (sourceAttr.Prefix != targetAttr.Prefix)
{
return false;
}
}
if (sourceAttr.NamespaceURI == xmlnsNamespace && targetAttr.NamespaceURI == xmlnsNamespace)
{
if (!IgnorePrefix && (sourceAttr.LocalName != targetAttr.LocalName))
{
return false;
}
if (!IgnoreNS && (sourceAttr.Value != targetAttr.Value))
{
return false;
}
}
else
{
if (sourceAttr.LocalName != targetAttr.LocalName)
{
return false;
}
if (sourceAttr.Value != targetAttr.Value)
{
if (ParseAttributeValuesAsQName)
{
if (sourceAttr.ValueAsQName != null)
{
if (!sourceAttr.ValueAsQName.Equals(targetAttr.ValueAsQName)) return false;
}
else
{
if (targetAttr.ValueAsQName != null) return false;
}
}
else
{
return false;
}
}
}
sourceAttr = (XmlDiffAttribute)(sourceAttr.NextSibling);
targetAttr = (XmlDiffAttribute)(targetAttr.NextSibling);
}
}
else
{
Hashtable sourceAttributeMap = new Hashtable();
Hashtable targetAttributeMap = new Hashtable();
while (sourceAttr != null && targetAttr != null)
{
if (IgnorePrefix && sourceAttr.NamespaceURI == xmlnsNamespace)
{
// do nothing
}
else
{
string localNameAndNamespace = sourceAttr.LocalName + "<&&>" + sourceAttr.NamespaceURI;
sourceAttributeMap.Add(localNameAndNamespace, sourceAttr);
}
if (IgnorePrefix && targetAttr.NamespaceURI == xmlnsNamespace)
{
// do nothing
}
else
{
string localNameAndNamespace = targetAttr.LocalName + "<&&>" + targetAttr.NamespaceURI;
targetAttributeMap.Add(localNameAndNamespace, targetAttr);
}
sourceAttr = (XmlDiffAttribute)(sourceAttr.NextSibling);
targetAttr = (XmlDiffAttribute)(targetAttr.NextSibling);
}
if (sourceAttributeMap.Count != targetAttributeMap.Count)
{
return false;
}
foreach (string sourceKey in sourceAttributeMap.Keys)
{
if (!targetAttributeMap.ContainsKey(sourceKey))
{
return false;
}
sourceAttr = (XmlDiffAttribute)sourceAttributeMap[sourceKey];
targetAttr = (XmlDiffAttribute)targetAttributeMap[sourceKey];
if (!IgnorePrefix)
{
if (sourceAttr.Prefix != targetAttr.Prefix)
{
return false;
}
}
if (sourceAttr.Value != targetAttr.Value)
{
if (ParseAttributeValuesAsQName)
{
if (sourceAttr.ValueAsQName != null)
{
if (!sourceAttr.ValueAsQName.Equals(targetAttr.ValueAsQName))
{
return false;
}
}
else if (targetAttr.ValueAsQName != null)
{
return false;
}
}
else
{
return false;
}
}
}
}
return true;
}
public string ToXml()
{
if (_output != null)
return _output.ToString();
return string.Empty;
}
public void ToXml(string fileName)
{
FileStream file;
file = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
StreamWriter writer = new StreamWriter(file);
writer.Write("<?xml-stylesheet type='text/xsl' href='diff.xsl'?>");
writer.Write(ToXml());
writer.Close();
file.Close();
}
public void ToXml(Stream stream)
{
StreamWriter writer = new StreamWriter(stream);
writer.Write("<?xml-stylesheet type='text/xsl' href='diff.xsl'?>");
writer.Write(ToXml());
writer.Close();
}
private string GetDiffType(DiffType type)
{
switch (type)
{
case DiffType.None:
return string.Empty;
case DiffType.Element:
return "1";
case DiffType.Whitespace:
return "2";
case DiffType.Comment:
return "3";
case DiffType.PI:
return "4";
case DiffType.Text:
return "5";
case DiffType.Attribute:
return "6";
case DiffType.NS:
return "7";
case DiffType.Prefix:
return "8";
case DiffType.SourceExtra:
return "9";
case DiffType.TargetExtra:
return "10";
case DiffType.NodeType:
return "11";
case DiffType.CData:
return "12";
default:
return string.Empty;
}
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/Regression/JitBlue/GitHub_18582/GitHub_18582.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<JitOptimizationSensitive>True</JitOptimizationSensitive>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<JitOptimizationSensitive>True</JitOptimizationSensitive>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/Common/tests/Tests/System/Net/aspnetcore/Http2/HuffmanDecodingTests.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.HPack;
using System.Text;
using Xunit;
namespace System.Net.Http.Unit.Tests.HPack
{
public class HuffmanDecodingTests
{
// Encoded values are 30 bits at most, so are stored in the table in a uint.
// Convert to ulong here and put the encoded value in the most significant bits.
// This makes the encoding logic below simpler.
private static (ulong code, int bitLength) GetEncodedValue(byte b)
{
(uint code, int bitLength) = Huffman.Encode(b);
return (((ulong)code) << 32, bitLength);
}
private static int Encode(byte[] source, byte[] destination, bool injectEOS)
{
ulong currentBits = 0; // We can have 7 bits of rollover plus 30 bits for the next encoded value, so use a ulong
int currentBitCount = 0;
int dstOffset = 0;
for (int i = 0; i < source.Length; i++)
{
(ulong code, int bitLength) = GetEncodedValue(source[i]);
// inject EOS if instructed to
if (injectEOS)
{
code |= (ulong)0b11111111_11111111_11111111_11111100 << (32 - bitLength);
bitLength += 30;
injectEOS = false;
}
currentBits |= code >> currentBitCount;
currentBitCount += bitLength;
while (currentBitCount >= 8)
{
destination[dstOffset++] = (byte)(currentBits >> 56);
currentBits = currentBits << 8;
currentBitCount -= 8;
}
}
// Fill any trailing bits with ones, per RFC
if (currentBitCount > 0)
{
currentBits |= 0xFFFFFFFFFFFFFFFF >> currentBitCount;
destination[dstOffset++] = (byte)(currentBits >> 56);
}
return dstOffset;
}
[Fact]
public void HuffmanDecoding_ValidEncoding_Succeeds()
{
foreach (byte[] input in TestData())
{
// Worst case encoding is 30 bits per input byte, so make the encoded buffer 4 times as big
byte[] encoded = new byte[input.Length * 4];
int encodedByteCount = Encode(input, encoded, false);
// Worst case decoding is an output byte per 5 input bits, so make the decoded buffer 2 times as big
byte[] decoded = new byte[encoded.Length * 2];
int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded);
Assert.Equal(input.Length, decodedByteCount);
Assert.Equal(input, decoded.Take(decodedByteCount));
}
}
[Fact]
public void HuffmanDecoding_InvalidEncoding_Throws()
{
foreach (byte[] encoded in InvalidEncodingData())
{
// Worst case decoding is an output byte per 5 input bits, so make the decoded buffer 2 times as big
byte[] decoded = new byte[encoded.Length * 2];
Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(encoded, ref decoded));
}
}
// This input sequence will encode to 17 bits, thus offsetting the next character to encode
// by exactly one bit. We use this below to generate a prefix that encodes all of the possible starting
// bit offsets for a character, from 0 to 7.
private static readonly byte[] s_offsetByOneBit = new byte[] { (byte)'c', (byte)'l', (byte)'r' };
public static IEnumerable<byte[]> TestData()
{
// Single byte data
for (int i = 0; i < 256; i++)
{
yield return new byte[] { (byte)i };
}
// Ensure that decoding every possible value leaves the decoder in a correct state so that
// a subsequent value can be decoded (here, 'a')
for (int i = 0; i < 256; i++)
{
yield return new byte[] { (byte)i, (byte)'a' };
}
// Ensure that every possible bit starting position for every value is encoded properly
// s_offsetByOneBit encodes to exactly 17 bits, leaving 1 bit for the next byte
// So by repeating this sequence, we can generate any starting bit position we want.
byte[] currentPrefix = new byte[0];
for (int prefixBits = 1; prefixBits <= 8; prefixBits++)
{
currentPrefix = currentPrefix.Concat(s_offsetByOneBit).ToArray();
// Make sure we're actually getting the correct number of prefix bits
int encodedBits = currentPrefix.Select(b => Huffman.Encode(b).bitLength).Sum();
Assert.Equal(prefixBits % 8, encodedBits % 8);
for (int i = 0; i < 256; i++)
{
yield return currentPrefix.Concat(new byte[] { (byte)i }.Concat(currentPrefix)).ToArray();
}
}
// Finally, one really big chunk of randomly generated data.
byte[] data = new byte[1024 * 1024];
new Random(42).NextBytes(data);
yield return data;
}
private static IEnumerable<byte[]> InvalidEncodingData()
{
// For encodings greater than 8 bits, truncate one or more bytes to generate an invalid encoding
byte[] source = new byte[1];
byte[] destination = new byte[10];
for (int i = 0; i < 256; i++)
{
source[0] = (byte)i;
int encodedByteCount = Encode(source, destination, false);
if (encodedByteCount > 1)
{
yield return destination.Take(encodedByteCount - 1).ToArray();
if (encodedByteCount > 2)
{
yield return destination.Take(encodedByteCount - 2).ToArray();
if (encodedByteCount > 3)
{
yield return destination.Take(encodedByteCount - 3).ToArray();
}
}
}
}
// Pad encodings with invalid trailing one bits. This is disallowed.
byte[] pad1 = new byte[] { 0xFF };
byte[] pad2 = new byte[] { 0xFF, 0xFF, };
byte[] pad3 = new byte[] { 0xFF, 0xFF, 0xFF };
byte[] pad4 = new byte[] { 0xFF, 0xFF, 0xFF, 0xFF };
for (int i = 0; i < 256; i++)
{
source[0] = (byte)i;
int encodedByteCount = Encode(source, destination, false);
yield return destination.Take(encodedByteCount).Concat(pad1).ToArray();
yield return destination.Take(encodedByteCount).Concat(pad2).ToArray();
yield return destination.Take(encodedByteCount).Concat(pad3).ToArray();
yield return destination.Take(encodedByteCount).Concat(pad4).ToArray();
}
// send single EOS
yield return new byte[] { 0b11111111, 0b11111111, 0b11111111, 0b11111100 };
// send combinations with EOS in the middle
source = new byte[2];
destination = new byte[24];
for (int i = 0; i < 256; i++)
{
source[0] = source[1] = (byte)i;
int encodedByteCount = Encode(source, destination, true);
yield return destination.Take(encodedByteCount).ToArray();
}
}
public static readonly TheoryData<byte[], byte[]> _validData = new TheoryData<byte[], byte[]>
{
// Single 5-bit symbol
{ new byte[] { 0x07 }, Encoding.ASCII.GetBytes("0") },
// Single 6-bit symbol
{ new byte[] { 0x57 }, Encoding.ASCII.GetBytes("%") },
// Single 7-bit symbol
{ new byte[] { 0xb9 }, Encoding.ASCII.GetBytes(":") },
// Single 8-bit symbol
{ new byte[] { 0xf8 }, Encoding.ASCII.GetBytes("&") },
// Single 10-bit symbol
{ new byte[] { 0xfe, 0x3f }, Encoding.ASCII.GetBytes("!") },
// Single 11-bit symbol
{ new byte[] { 0xff, 0x7f }, Encoding.ASCII.GetBytes("+") },
// Single 12-bit symbol
{ new byte[] { 0xff, 0xaf }, Encoding.ASCII.GetBytes("#") },
// Single 13-bit symbol
{ new byte[] { 0xff, 0xcf }, Encoding.ASCII.GetBytes("$") },
// Single 14-bit symbol
{ new byte[] { 0xff, 0xf3 }, Encoding.ASCII.GetBytes("^") },
// Single 15-bit symbol
{ new byte[] { 0xff, 0xf9 }, Encoding.ASCII.GetBytes("<") },
// Single 19-bit symbol
{ new byte[] { 0xff, 0xfe, 0x1f }, Encoding.ASCII.GetBytes("\\") },
// Single 20-bit symbol
{ new byte[] { 0xff, 0xfe, 0x6f }, new byte[] { 0x80 } },
// Single 21-bit symbol
{ new byte[] { 0xff, 0xfe, 0xe7 }, new byte[] { 0x99 } },
// Single 22-bit symbol
{ new byte[] { 0xff, 0xff, 0x4b }, new byte[] { 0x81 } },
// Single 23-bit symbol
{ new byte[] { 0xff, 0xff, 0xb1 }, new byte[] { 0x01 } },
// Single 24-bit symbol
{ new byte[] { 0xff, 0xff, 0xea }, new byte[] { 0x09 } },
// Single 25-bit symbol
{ new byte[] { 0xff, 0xff, 0xf6, 0x7f }, new byte[] { 0xc7 } },
// Single 26-bit symbol
{ new byte[] { 0xff, 0xff, 0xf8, 0x3f }, new byte[] { 0xc0 } },
// Single 27-bit symbol
{ new byte[] { 0xff, 0xff, 0xfb, 0xdf }, new byte[] { 0xcb } },
// Single 28-bit symbol
{ new byte[] { 0xff, 0xff, 0xfe, 0x2f }, new byte[] { 0x02 } },
// Single 30-bit symbol
{ new byte[] { 0xff, 0xff, 0xff, 0xf3 }, new byte[] { 0x0a } },
// h e l l o *
{ new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1111 }, Encoding.ASCII.GetBytes("hello") },
// Sequences that uncovered errors
{ new byte[] { 0xb6, 0xb9, 0xac, 0x1c, 0x85, 0x58, 0xd5, 0x20, 0xa4, 0xb6, 0xc2, 0xad, 0x61, 0x7b, 0x5a, 0x54, 0x25, 0x1f }, Encoding.ASCII.GetBytes("upgrade-insecure-requests") },
{ new byte[] { 0xfe, 0x53 }, Encoding.ASCII.GetBytes("\"t") },
{ new byte[] { 0xff, 0xff, 0xf6, 0xff, 0xff, 0xfd, 0x68 }, new byte[] { 0xcf, 0xf0, 0x73 } },
{ new byte[] { 0xff, 0xff, 0xf9, 0xff, 0xff, 0xfd, 0x86 }, new byte[] { 0xd5, 0xc7, 0x69 } },
};
[Theory]
[MemberData(nameof(_validData))]
public void HuffmanDecodeArray(byte[] encoded, byte[] expected)
{
byte[] dst = new byte[expected.Length];
Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(expected, dst);
}
public static readonly TheoryData<byte[]> _longPaddingData = new TheoryData<byte[]>
{
// h e l l o *
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1111, 0b11111111 },
// '&' (8 bits) + 8 bit padding
new byte[] { 0xf8, 0xff },
// ':' (7 bits) + 9 bit padding
new byte[] { 0xb9, 0xff }
};
[Theory]
[MemberData(nameof(_longPaddingData))]
public void ThrowsOnPaddingLongerThanSevenBits(byte[] encoded)
{
byte[] dst = new byte[encoded.Length * 2];
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
}
public static readonly TheoryData<byte[]> _eosData = new TheoryData<byte[]>
{
// EOS
new byte[] { 0xff, 0xff, 0xff, 0xff },
// '&' + EOS + '0'
new byte[] { 0xf8, 0xff, 0xff, 0xff, 0xfc, 0x1f }
};
[Theory]
[MemberData(nameof(_eosData))]
public void ThrowsOnEOS(byte[] encoded)
{
byte[] dst = new byte[encoded.Length * 2];
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
}
[Fact]
public void ResizesOnDestinationBufferTooSmall()
{
// h e l l o *
byte[] encoded = new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1111 };
byte[] originalDestination = new byte[encoded.Length];
byte[] actualDestination = originalDestination;
int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination);
Assert.Equal(5, decodedCount);
Assert.NotSame(originalDestination, actualDestination);
}
public static readonly TheoryData<byte[]> _incompleteSymbolData = new TheoryData<byte[]>
{
// h e l l o (incomplete)
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0 },
// Non-zero padding will be seen as incomplete symbol
// h e l l o *
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0000 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0001 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0010 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0011 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0100 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0101 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0110 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0111 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1000 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1001 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1010 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1011 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1100 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1101 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1110 }
};
[Theory]
[MemberData(nameof(_incompleteSymbolData))]
public void ThrowsOnIncompleteSymbol(byte[] encoded)
{
byte[] dst = new byte[encoded.Length * 2];
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
}
[Fact]
public void DecodeCharactersThatSpans5Octets()
{
int expectedLength = 2;
byte[] decodedBytes = new byte[expectedLength];
// B LF EOS
byte[] encoded = new byte[] { 0b1011101_1, 0b11111111, 0b11111111, 0b11111111, 0b11100_111 };
int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
Assert.Equal(expectedLength, decodedLength);
Assert.Equal(new byte[] { (byte)'B', (byte)'\n' }, decodedBytes);
}
[Theory]
[MemberData(nameof(HuffmanData))]
public void HuffmanEncode(int code, uint expectedEncoded, int expectedBitLength)
{
(uint encoded, int bitLength) = Huffman.Encode(code);
Assert.Equal(expectedEncoded, encoded);
Assert.Equal(expectedBitLength, bitLength);
}
public static TheoryData<int, uint, int> HuffmanData
{
get
{
TheoryData<int, uint, int> data = new TheoryData<int, uint, int>();
data.Add(0, 0b11111111_11000000_00000000_00000000, 13);
data.Add(1, 0b11111111_11111111_10110000_00000000, 23);
data.Add(2, 0b11111111_11111111_11111110_00100000, 28);
data.Add(3, 0b11111111_11111111_11111110_00110000, 28);
data.Add(4, 0b11111111_11111111_11111110_01000000, 28);
data.Add(5, 0b11111111_11111111_11111110_01010000, 28);
data.Add(6, 0b11111111_11111111_11111110_01100000, 28);
data.Add(7, 0b11111111_11111111_11111110_01110000, 28);
data.Add(8, 0b11111111_11111111_11111110_10000000, 28);
data.Add(9, 0b11111111_11111111_11101010_00000000, 24);
data.Add(10, 0b11111111_11111111_11111111_11110000, 30);
data.Add(11, 0b11111111_11111111_11111110_10010000, 28);
data.Add(12, 0b11111111_11111111_11111110_10100000, 28);
data.Add(13, 0b11111111_11111111_11111111_11110100, 30);
data.Add(14, 0b11111111_11111111_11111110_10110000, 28);
data.Add(15, 0b11111111_11111111_11111110_11000000, 28);
data.Add(16, 0b11111111_11111111_11111110_11010000, 28);
data.Add(17, 0b11111111_11111111_11111110_11100000, 28);
data.Add(18, 0b11111111_11111111_11111110_11110000, 28);
data.Add(19, 0b11111111_11111111_11111111_00000000, 28);
data.Add(20, 0b11111111_11111111_11111111_00010000, 28);
data.Add(21, 0b11111111_11111111_11111111_00100000, 28);
data.Add(22, 0b11111111_11111111_11111111_11111000, 30);
data.Add(23, 0b11111111_11111111_11111111_00110000, 28);
data.Add(24, 0b11111111_11111111_11111111_01000000, 28);
data.Add(25, 0b11111111_11111111_11111111_01010000, 28);
data.Add(26, 0b11111111_11111111_11111111_01100000, 28);
data.Add(27, 0b11111111_11111111_11111111_01110000, 28);
data.Add(28, 0b11111111_11111111_11111111_10000000, 28);
data.Add(29, 0b11111111_11111111_11111111_10010000, 28);
data.Add(30, 0b11111111_11111111_11111111_10100000, 28);
data.Add(31, 0b11111111_11111111_11111111_10110000, 28);
data.Add(32, 0b01010000_00000000_00000000_00000000, 6);
data.Add(33, 0b11111110_00000000_00000000_00000000, 10);
data.Add(34, 0b11111110_01000000_00000000_00000000, 10);
data.Add(35, 0b11111111_10100000_00000000_00000000, 12);
data.Add(36, 0b11111111_11001000_00000000_00000000, 13);
data.Add(37, 0b01010100_00000000_00000000_00000000, 6);
data.Add(38, 0b11111000_00000000_00000000_00000000, 8);
data.Add(39, 0b11111111_01000000_00000000_00000000, 11);
data.Add(40, 0b11111110_10000000_00000000_00000000, 10);
data.Add(41, 0b11111110_11000000_00000000_00000000, 10);
data.Add(42, 0b11111001_00000000_00000000_00000000, 8);
data.Add(43, 0b11111111_01100000_00000000_00000000, 11);
data.Add(44, 0b11111010_00000000_00000000_00000000, 8);
data.Add(45, 0b01011000_00000000_00000000_00000000, 6);
data.Add(46, 0b01011100_00000000_00000000_00000000, 6);
data.Add(47, 0b01100000_00000000_00000000_00000000, 6);
data.Add(48, 0b00000000_00000000_00000000_00000000, 5);
data.Add(49, 0b00001000_00000000_00000000_00000000, 5);
data.Add(50, 0b00010000_00000000_00000000_00000000, 5);
data.Add(51, 0b01100100_00000000_00000000_00000000, 6);
data.Add(52, 0b01101000_00000000_00000000_00000000, 6);
data.Add(53, 0b01101100_00000000_00000000_00000000, 6);
data.Add(54, 0b01110000_00000000_00000000_00000000, 6);
data.Add(55, 0b01110100_00000000_00000000_00000000, 6);
data.Add(56, 0b01111000_00000000_00000000_00000000, 6);
data.Add(57, 0b01111100_00000000_00000000_00000000, 6);
data.Add(58, 0b10111000_00000000_00000000_00000000, 7);
data.Add(59, 0b11111011_00000000_00000000_00000000, 8);
data.Add(60, 0b11111111_11111000_00000000_00000000, 15);
data.Add(61, 0b10000000_00000000_00000000_00000000, 6);
data.Add(62, 0b11111111_10110000_00000000_00000000, 12);
data.Add(63, 0b11111111_00000000_00000000_00000000, 10);
data.Add(64, 0b11111111_11010000_00000000_00000000, 13);
data.Add(65, 0b10000100_00000000_00000000_00000000, 6);
data.Add(66, 0b10111010_00000000_00000000_00000000, 7);
data.Add(67, 0b10111100_00000000_00000000_00000000, 7);
data.Add(68, 0b10111110_00000000_00000000_00000000, 7);
data.Add(69, 0b11000000_00000000_00000000_00000000, 7);
data.Add(70, 0b11000010_00000000_00000000_00000000, 7);
data.Add(71, 0b11000100_00000000_00000000_00000000, 7);
data.Add(72, 0b11000110_00000000_00000000_00000000, 7);
data.Add(73, 0b11001000_00000000_00000000_00000000, 7);
data.Add(74, 0b11001010_00000000_00000000_00000000, 7);
data.Add(75, 0b11001100_00000000_00000000_00000000, 7);
data.Add(76, 0b11001110_00000000_00000000_00000000, 7);
data.Add(77, 0b11010000_00000000_00000000_00000000, 7);
data.Add(78, 0b11010010_00000000_00000000_00000000, 7);
data.Add(79, 0b11010100_00000000_00000000_00000000, 7);
data.Add(80, 0b11010110_00000000_00000000_00000000, 7);
data.Add(81, 0b11011000_00000000_00000000_00000000, 7);
data.Add(82, 0b11011010_00000000_00000000_00000000, 7);
data.Add(83, 0b11011100_00000000_00000000_00000000, 7);
data.Add(84, 0b11011110_00000000_00000000_00000000, 7);
data.Add(85, 0b11100000_00000000_00000000_00000000, 7);
data.Add(86, 0b11100010_00000000_00000000_00000000, 7);
data.Add(87, 0b11100100_00000000_00000000_00000000, 7);
data.Add(88, 0b11111100_00000000_00000000_00000000, 8);
data.Add(89, 0b11100110_00000000_00000000_00000000, 7);
data.Add(90, 0b11111101_00000000_00000000_00000000, 8);
data.Add(91, 0b11111111_11011000_00000000_00000000, 13);
data.Add(92, 0b11111111_11111110_00000000_00000000, 19);
data.Add(93, 0b11111111_11100000_00000000_00000000, 13);
data.Add(94, 0b11111111_11110000_00000000_00000000, 14);
data.Add(95, 0b10001000_00000000_00000000_00000000, 6);
data.Add(96, 0b11111111_11111010_00000000_00000000, 15);
data.Add(97, 0b00011000_00000000_00000000_00000000, 5);
data.Add(98, 0b10001100_00000000_00000000_00000000, 6);
data.Add(99, 0b00100000_00000000_00000000_00000000, 5);
data.Add(100, 0b10010000_00000000_00000000_00000000, 6);
data.Add(101, 0b00101000_00000000_00000000_00000000, 5);
data.Add(102, 0b10010100_00000000_00000000_00000000, 6);
data.Add(103, 0b10011000_00000000_00000000_00000000, 6);
data.Add(104, 0b10011100_00000000_00000000_00000000, 6);
data.Add(105, 0b00110000_00000000_00000000_00000000, 5);
data.Add(106, 0b11101000_00000000_00000000_00000000, 7);
data.Add(107, 0b11101010_00000000_00000000_00000000, 7);
data.Add(108, 0b10100000_00000000_00000000_00000000, 6);
data.Add(109, 0b10100100_00000000_00000000_00000000, 6);
data.Add(110, 0b10101000_00000000_00000000_00000000, 6);
data.Add(111, 0b00111000_00000000_00000000_00000000, 5);
data.Add(112, 0b10101100_00000000_00000000_00000000, 6);
data.Add(113, 0b11101100_00000000_00000000_00000000, 7);
data.Add(114, 0b10110000_00000000_00000000_00000000, 6);
data.Add(115, 0b01000000_00000000_00000000_00000000, 5);
data.Add(116, 0b01001000_00000000_00000000_00000000, 5);
data.Add(117, 0b10110100_00000000_00000000_00000000, 6);
data.Add(118, 0b11101110_00000000_00000000_00000000, 7);
data.Add(119, 0b11110000_00000000_00000000_00000000, 7);
data.Add(120, 0b11110010_00000000_00000000_00000000, 7);
data.Add(121, 0b11110100_00000000_00000000_00000000, 7);
data.Add(122, 0b11110110_00000000_00000000_00000000, 7);
data.Add(123, 0b11111111_11111100_00000000_00000000, 15);
data.Add(124, 0b11111111_10000000_00000000_00000000, 11);
data.Add(125, 0b11111111_11110100_00000000_00000000, 14);
data.Add(126, 0b11111111_11101000_00000000_00000000, 13);
data.Add(127, 0b11111111_11111111_11111111_11000000, 28);
data.Add(128, 0b11111111_11111110_01100000_00000000, 20);
data.Add(129, 0b11111111_11111111_01001000_00000000, 22);
data.Add(130, 0b11111111_11111110_01110000_00000000, 20);
data.Add(131, 0b11111111_11111110_10000000_00000000, 20);
data.Add(132, 0b11111111_11111111_01001100_00000000, 22);
data.Add(133, 0b11111111_11111111_01010000_00000000, 22);
data.Add(134, 0b11111111_11111111_01010100_00000000, 22);
data.Add(135, 0b11111111_11111111_10110010_00000000, 23);
data.Add(136, 0b11111111_11111111_01011000_00000000, 22);
data.Add(137, 0b11111111_11111111_10110100_00000000, 23);
data.Add(138, 0b11111111_11111111_10110110_00000000, 23);
data.Add(139, 0b11111111_11111111_10111000_00000000, 23);
data.Add(140, 0b11111111_11111111_10111010_00000000, 23);
data.Add(141, 0b11111111_11111111_10111100_00000000, 23);
data.Add(142, 0b11111111_11111111_11101011_00000000, 24);
data.Add(143, 0b11111111_11111111_10111110_00000000, 23);
data.Add(144, 0b11111111_11111111_11101100_00000000, 24);
data.Add(145, 0b11111111_11111111_11101101_00000000, 24);
data.Add(146, 0b11111111_11111111_01011100_00000000, 22);
data.Add(147, 0b11111111_11111111_11000000_00000000, 23);
data.Add(148, 0b11111111_11111111_11101110_00000000, 24);
data.Add(149, 0b11111111_11111111_11000010_00000000, 23);
data.Add(150, 0b11111111_11111111_11000100_00000000, 23);
data.Add(151, 0b11111111_11111111_11000110_00000000, 23);
data.Add(152, 0b11111111_11111111_11001000_00000000, 23);
data.Add(153, 0b11111111_11111110_11100000_00000000, 21);
data.Add(154, 0b11111111_11111111_01100000_00000000, 22);
data.Add(155, 0b11111111_11111111_11001010_00000000, 23);
data.Add(156, 0b11111111_11111111_01100100_00000000, 22);
data.Add(157, 0b11111111_11111111_11001100_00000000, 23);
data.Add(158, 0b11111111_11111111_11001110_00000000, 23);
data.Add(159, 0b11111111_11111111_11101111_00000000, 24);
data.Add(160, 0b11111111_11111111_01101000_00000000, 22);
data.Add(161, 0b11111111_11111110_11101000_00000000, 21);
data.Add(162, 0b11111111_11111110_10010000_00000000, 20);
data.Add(163, 0b11111111_11111111_01101100_00000000, 22);
data.Add(164, 0b11111111_11111111_01110000_00000000, 22);
data.Add(165, 0b11111111_11111111_11010000_00000000, 23);
data.Add(166, 0b11111111_11111111_11010010_00000000, 23);
data.Add(167, 0b11111111_11111110_11110000_00000000, 21);
data.Add(168, 0b11111111_11111111_11010100_00000000, 23);
data.Add(169, 0b11111111_11111111_01110100_00000000, 22);
data.Add(170, 0b11111111_11111111_01111000_00000000, 22);
data.Add(171, 0b11111111_11111111_11110000_00000000, 24);
data.Add(172, 0b11111111_11111110_11111000_00000000, 21);
data.Add(173, 0b11111111_11111111_01111100_00000000, 22);
data.Add(174, 0b11111111_11111111_11010110_00000000, 23);
data.Add(175, 0b11111111_11111111_11011000_00000000, 23);
data.Add(176, 0b11111111_11111111_00000000_00000000, 21);
data.Add(177, 0b11111111_11111111_00001000_00000000, 21);
data.Add(178, 0b11111111_11111111_10000000_00000000, 22);
data.Add(179, 0b11111111_11111111_00010000_00000000, 21);
data.Add(180, 0b11111111_11111111_11011010_00000000, 23);
data.Add(181, 0b11111111_11111111_10000100_00000000, 22);
data.Add(182, 0b11111111_11111111_11011100_00000000, 23);
data.Add(183, 0b11111111_11111111_11011110_00000000, 23);
data.Add(184, 0b11111111_11111110_10100000_00000000, 20);
data.Add(185, 0b11111111_11111111_10001000_00000000, 22);
data.Add(186, 0b11111111_11111111_10001100_00000000, 22);
data.Add(187, 0b11111111_11111111_10010000_00000000, 22);
data.Add(188, 0b11111111_11111111_11100000_00000000, 23);
data.Add(189, 0b11111111_11111111_10010100_00000000, 22);
data.Add(190, 0b11111111_11111111_10011000_00000000, 22);
data.Add(191, 0b11111111_11111111_11100010_00000000, 23);
data.Add(192, 0b11111111_11111111_11111000_00000000, 26);
data.Add(193, 0b11111111_11111111_11111000_01000000, 26);
data.Add(194, 0b11111111_11111110_10110000_00000000, 20);
data.Add(195, 0b11111111_11111110_00100000_00000000, 19);
data.Add(196, 0b11111111_11111111_10011100_00000000, 22);
data.Add(197, 0b11111111_11111111_11100100_00000000, 23);
data.Add(198, 0b11111111_11111111_10100000_00000000, 22);
data.Add(199, 0b11111111_11111111_11110110_00000000, 25);
data.Add(200, 0b11111111_11111111_11111000_10000000, 26);
data.Add(201, 0b11111111_11111111_11111000_11000000, 26);
data.Add(202, 0b11111111_11111111_11111001_00000000, 26);
data.Add(203, 0b11111111_11111111_11111011_11000000, 27);
data.Add(204, 0b11111111_11111111_11111011_11100000, 27);
data.Add(205, 0b11111111_11111111_11111001_01000000, 26);
data.Add(206, 0b11111111_11111111_11110001_00000000, 24);
data.Add(207, 0b11111111_11111111_11110110_10000000, 25);
data.Add(208, 0b11111111_11111110_01000000_00000000, 19);
data.Add(209, 0b11111111_11111111_00011000_00000000, 21);
data.Add(210, 0b11111111_11111111_11111001_10000000, 26);
data.Add(211, 0b11111111_11111111_11111100_00000000, 27);
data.Add(212, 0b11111111_11111111_11111100_00100000, 27);
data.Add(213, 0b11111111_11111111_11111001_11000000, 26);
data.Add(214, 0b11111111_11111111_11111100_01000000, 27);
data.Add(215, 0b11111111_11111111_11110010_00000000, 24);
data.Add(216, 0b11111111_11111111_00100000_00000000, 21);
data.Add(217, 0b11111111_11111111_00101000_00000000, 21);
data.Add(218, 0b11111111_11111111_11111010_00000000, 26);
data.Add(219, 0b11111111_11111111_11111010_01000000, 26);
data.Add(220, 0b11111111_11111111_11111111_11010000, 28);
data.Add(221, 0b11111111_11111111_11111100_01100000, 27);
data.Add(222, 0b11111111_11111111_11111100_10000000, 27);
data.Add(223, 0b11111111_11111111_11111100_10100000, 27);
data.Add(224, 0b11111111_11111110_11000000_00000000, 20);
data.Add(225, 0b11111111_11111111_11110011_00000000, 24);
data.Add(226, 0b11111111_11111110_11010000_00000000, 20);
data.Add(227, 0b11111111_11111111_00110000_00000000, 21);
data.Add(228, 0b11111111_11111111_10100100_00000000, 22);
data.Add(229, 0b11111111_11111111_00111000_00000000, 21);
data.Add(230, 0b11111111_11111111_01000000_00000000, 21);
data.Add(231, 0b11111111_11111111_11100110_00000000, 23);
data.Add(232, 0b11111111_11111111_10101000_00000000, 22);
data.Add(233, 0b11111111_11111111_10101100_00000000, 22);
data.Add(234, 0b11111111_11111111_11110111_00000000, 25);
data.Add(235, 0b11111111_11111111_11110111_10000000, 25);
data.Add(236, 0b11111111_11111111_11110100_00000000, 24);
data.Add(237, 0b11111111_11111111_11110101_00000000, 24);
data.Add(238, 0b11111111_11111111_11111010_10000000, 26);
data.Add(239, 0b11111111_11111111_11101000_00000000, 23);
data.Add(240, 0b11111111_11111111_11111010_11000000, 26);
data.Add(241, 0b11111111_11111111_11111100_11000000, 27);
data.Add(242, 0b11111111_11111111_11111011_00000000, 26);
data.Add(243, 0b11111111_11111111_11111011_01000000, 26);
data.Add(244, 0b11111111_11111111_11111100_11100000, 27);
data.Add(245, 0b11111111_11111111_11111101_00000000, 27);
data.Add(246, 0b11111111_11111111_11111101_00100000, 27);
data.Add(247, 0b11111111_11111111_11111101_01000000, 27);
data.Add(248, 0b11111111_11111111_11111101_01100000, 27);
data.Add(249, 0b11111111_11111111_11111111_11100000, 28);
data.Add(250, 0b11111111_11111111_11111101_10000000, 27);
data.Add(251, 0b11111111_11111111_11111101_10100000, 27);
data.Add(252, 0b11111111_11111111_11111101_11000000, 27);
data.Add(253, 0b11111111_11111111_11111101_11100000, 27);
data.Add(254, 0b11111111_11111111_11111110_00000000, 27);
data.Add(255, 0b11111111_11111111_11111011_10000000, 26);
data.Add(256, 0b11111111_11111111_11111111_11111100, 30);
return data;
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.HPack;
using System.Text;
using Xunit;
namespace System.Net.Http.Unit.Tests.HPack
{
public class HuffmanDecodingTests
{
// Encoded values are 30 bits at most, so are stored in the table in a uint.
// Convert to ulong here and put the encoded value in the most significant bits.
// This makes the encoding logic below simpler.
private static (ulong code, int bitLength) GetEncodedValue(byte b)
{
(uint code, int bitLength) = Huffman.Encode(b);
return (((ulong)code) << 32, bitLength);
}
private static int Encode(byte[] source, byte[] destination, bool injectEOS)
{
ulong currentBits = 0; // We can have 7 bits of rollover plus 30 bits for the next encoded value, so use a ulong
int currentBitCount = 0;
int dstOffset = 0;
for (int i = 0; i < source.Length; i++)
{
(ulong code, int bitLength) = GetEncodedValue(source[i]);
// inject EOS if instructed to
if (injectEOS)
{
code |= (ulong)0b11111111_11111111_11111111_11111100 << (32 - bitLength);
bitLength += 30;
injectEOS = false;
}
currentBits |= code >> currentBitCount;
currentBitCount += bitLength;
while (currentBitCount >= 8)
{
destination[dstOffset++] = (byte)(currentBits >> 56);
currentBits = currentBits << 8;
currentBitCount -= 8;
}
}
// Fill any trailing bits with ones, per RFC
if (currentBitCount > 0)
{
currentBits |= 0xFFFFFFFFFFFFFFFF >> currentBitCount;
destination[dstOffset++] = (byte)(currentBits >> 56);
}
return dstOffset;
}
[Fact]
public void HuffmanDecoding_ValidEncoding_Succeeds()
{
foreach (byte[] input in TestData())
{
// Worst case encoding is 30 bits per input byte, so make the encoded buffer 4 times as big
byte[] encoded = new byte[input.Length * 4];
int encodedByteCount = Encode(input, encoded, false);
// Worst case decoding is an output byte per 5 input bits, so make the decoded buffer 2 times as big
byte[] decoded = new byte[encoded.Length * 2];
int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded);
Assert.Equal(input.Length, decodedByteCount);
Assert.Equal(input, decoded.Take(decodedByteCount));
}
}
[Fact]
public void HuffmanDecoding_InvalidEncoding_Throws()
{
foreach (byte[] encoded in InvalidEncodingData())
{
// Worst case decoding is an output byte per 5 input bits, so make the decoded buffer 2 times as big
byte[] decoded = new byte[encoded.Length * 2];
Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(encoded, ref decoded));
}
}
// This input sequence will encode to 17 bits, thus offsetting the next character to encode
// by exactly one bit. We use this below to generate a prefix that encodes all of the possible starting
// bit offsets for a character, from 0 to 7.
private static readonly byte[] s_offsetByOneBit = new byte[] { (byte)'c', (byte)'l', (byte)'r' };
public static IEnumerable<byte[]> TestData()
{
// Single byte data
for (int i = 0; i < 256; i++)
{
yield return new byte[] { (byte)i };
}
// Ensure that decoding every possible value leaves the decoder in a correct state so that
// a subsequent value can be decoded (here, 'a')
for (int i = 0; i < 256; i++)
{
yield return new byte[] { (byte)i, (byte)'a' };
}
// Ensure that every possible bit starting position for every value is encoded properly
// s_offsetByOneBit encodes to exactly 17 bits, leaving 1 bit for the next byte
// So by repeating this sequence, we can generate any starting bit position we want.
byte[] currentPrefix = new byte[0];
for (int prefixBits = 1; prefixBits <= 8; prefixBits++)
{
currentPrefix = currentPrefix.Concat(s_offsetByOneBit).ToArray();
// Make sure we're actually getting the correct number of prefix bits
int encodedBits = currentPrefix.Select(b => Huffman.Encode(b).bitLength).Sum();
Assert.Equal(prefixBits % 8, encodedBits % 8);
for (int i = 0; i < 256; i++)
{
yield return currentPrefix.Concat(new byte[] { (byte)i }.Concat(currentPrefix)).ToArray();
}
}
// Finally, one really big chunk of randomly generated data.
byte[] data = new byte[1024 * 1024];
new Random(42).NextBytes(data);
yield return data;
}
private static IEnumerable<byte[]> InvalidEncodingData()
{
// For encodings greater than 8 bits, truncate one or more bytes to generate an invalid encoding
byte[] source = new byte[1];
byte[] destination = new byte[10];
for (int i = 0; i < 256; i++)
{
source[0] = (byte)i;
int encodedByteCount = Encode(source, destination, false);
if (encodedByteCount > 1)
{
yield return destination.Take(encodedByteCount - 1).ToArray();
if (encodedByteCount > 2)
{
yield return destination.Take(encodedByteCount - 2).ToArray();
if (encodedByteCount > 3)
{
yield return destination.Take(encodedByteCount - 3).ToArray();
}
}
}
}
// Pad encodings with invalid trailing one bits. This is disallowed.
byte[] pad1 = new byte[] { 0xFF };
byte[] pad2 = new byte[] { 0xFF, 0xFF, };
byte[] pad3 = new byte[] { 0xFF, 0xFF, 0xFF };
byte[] pad4 = new byte[] { 0xFF, 0xFF, 0xFF, 0xFF };
for (int i = 0; i < 256; i++)
{
source[0] = (byte)i;
int encodedByteCount = Encode(source, destination, false);
yield return destination.Take(encodedByteCount).Concat(pad1).ToArray();
yield return destination.Take(encodedByteCount).Concat(pad2).ToArray();
yield return destination.Take(encodedByteCount).Concat(pad3).ToArray();
yield return destination.Take(encodedByteCount).Concat(pad4).ToArray();
}
// send single EOS
yield return new byte[] { 0b11111111, 0b11111111, 0b11111111, 0b11111100 };
// send combinations with EOS in the middle
source = new byte[2];
destination = new byte[24];
for (int i = 0; i < 256; i++)
{
source[0] = source[1] = (byte)i;
int encodedByteCount = Encode(source, destination, true);
yield return destination.Take(encodedByteCount).ToArray();
}
}
public static readonly TheoryData<byte[], byte[]> _validData = new TheoryData<byte[], byte[]>
{
// Single 5-bit symbol
{ new byte[] { 0x07 }, Encoding.ASCII.GetBytes("0") },
// Single 6-bit symbol
{ new byte[] { 0x57 }, Encoding.ASCII.GetBytes("%") },
// Single 7-bit symbol
{ new byte[] { 0xb9 }, Encoding.ASCII.GetBytes(":") },
// Single 8-bit symbol
{ new byte[] { 0xf8 }, Encoding.ASCII.GetBytes("&") },
// Single 10-bit symbol
{ new byte[] { 0xfe, 0x3f }, Encoding.ASCII.GetBytes("!") },
// Single 11-bit symbol
{ new byte[] { 0xff, 0x7f }, Encoding.ASCII.GetBytes("+") },
// Single 12-bit symbol
{ new byte[] { 0xff, 0xaf }, Encoding.ASCII.GetBytes("#") },
// Single 13-bit symbol
{ new byte[] { 0xff, 0xcf }, Encoding.ASCII.GetBytes("$") },
// Single 14-bit symbol
{ new byte[] { 0xff, 0xf3 }, Encoding.ASCII.GetBytes("^") },
// Single 15-bit symbol
{ new byte[] { 0xff, 0xf9 }, Encoding.ASCII.GetBytes("<") },
// Single 19-bit symbol
{ new byte[] { 0xff, 0xfe, 0x1f }, Encoding.ASCII.GetBytes("\\") },
// Single 20-bit symbol
{ new byte[] { 0xff, 0xfe, 0x6f }, new byte[] { 0x80 } },
// Single 21-bit symbol
{ new byte[] { 0xff, 0xfe, 0xe7 }, new byte[] { 0x99 } },
// Single 22-bit symbol
{ new byte[] { 0xff, 0xff, 0x4b }, new byte[] { 0x81 } },
// Single 23-bit symbol
{ new byte[] { 0xff, 0xff, 0xb1 }, new byte[] { 0x01 } },
// Single 24-bit symbol
{ new byte[] { 0xff, 0xff, 0xea }, new byte[] { 0x09 } },
// Single 25-bit symbol
{ new byte[] { 0xff, 0xff, 0xf6, 0x7f }, new byte[] { 0xc7 } },
// Single 26-bit symbol
{ new byte[] { 0xff, 0xff, 0xf8, 0x3f }, new byte[] { 0xc0 } },
// Single 27-bit symbol
{ new byte[] { 0xff, 0xff, 0xfb, 0xdf }, new byte[] { 0xcb } },
// Single 28-bit symbol
{ new byte[] { 0xff, 0xff, 0xfe, 0x2f }, new byte[] { 0x02 } },
// Single 30-bit symbol
{ new byte[] { 0xff, 0xff, 0xff, 0xf3 }, new byte[] { 0x0a } },
// h e l l o *
{ new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1111 }, Encoding.ASCII.GetBytes("hello") },
// Sequences that uncovered errors
{ new byte[] { 0xb6, 0xb9, 0xac, 0x1c, 0x85, 0x58, 0xd5, 0x20, 0xa4, 0xb6, 0xc2, 0xad, 0x61, 0x7b, 0x5a, 0x54, 0x25, 0x1f }, Encoding.ASCII.GetBytes("upgrade-insecure-requests") },
{ new byte[] { 0xfe, 0x53 }, Encoding.ASCII.GetBytes("\"t") },
{ new byte[] { 0xff, 0xff, 0xf6, 0xff, 0xff, 0xfd, 0x68 }, new byte[] { 0xcf, 0xf0, 0x73 } },
{ new byte[] { 0xff, 0xff, 0xf9, 0xff, 0xff, 0xfd, 0x86 }, new byte[] { 0xd5, 0xc7, 0x69 } },
};
[Theory]
[MemberData(nameof(_validData))]
public void HuffmanDecodeArray(byte[] encoded, byte[] expected)
{
byte[] dst = new byte[expected.Length];
Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(expected, dst);
}
public static readonly TheoryData<byte[]> _longPaddingData = new TheoryData<byte[]>
{
// h e l l o *
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1111, 0b11111111 },
// '&' (8 bits) + 8 bit padding
new byte[] { 0xf8, 0xff },
// ':' (7 bits) + 9 bit padding
new byte[] { 0xb9, 0xff }
};
[Theory]
[MemberData(nameof(_longPaddingData))]
public void ThrowsOnPaddingLongerThanSevenBits(byte[] encoded)
{
byte[] dst = new byte[encoded.Length * 2];
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
}
public static readonly TheoryData<byte[]> _eosData = new TheoryData<byte[]>
{
// EOS
new byte[] { 0xff, 0xff, 0xff, 0xff },
// '&' + EOS + '0'
new byte[] { 0xf8, 0xff, 0xff, 0xff, 0xfc, 0x1f }
};
[Theory]
[MemberData(nameof(_eosData))]
public void ThrowsOnEOS(byte[] encoded)
{
byte[] dst = new byte[encoded.Length * 2];
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
}
[Fact]
public void ResizesOnDestinationBufferTooSmall()
{
// h e l l o *
byte[] encoded = new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1111 };
byte[] originalDestination = new byte[encoded.Length];
byte[] actualDestination = originalDestination;
int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination);
Assert.Equal(5, decodedCount);
Assert.NotSame(originalDestination, actualDestination);
}
public static readonly TheoryData<byte[]> _incompleteSymbolData = new TheoryData<byte[]>
{
// h e l l o (incomplete)
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0 },
// Non-zero padding will be seen as incomplete symbol
// h e l l o *
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0000 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0001 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0010 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0011 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0100 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0101 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0110 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_0111 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1000 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1001 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1010 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1011 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1100 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1101 },
new byte[] { 0b100111_00, 0b101_10100, 0b0_101000_0, 0b0111_1110 }
};
[Theory]
[MemberData(nameof(_incompleteSymbolData))]
public void ThrowsOnIncompleteSymbol(byte[] encoded)
{
byte[] dst = new byte[encoded.Length * 2];
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
}
[Fact]
public void DecodeCharactersThatSpans5Octets()
{
int expectedLength = 2;
byte[] decodedBytes = new byte[expectedLength];
// B LF EOS
byte[] encoded = new byte[] { 0b1011101_1, 0b11111111, 0b11111111, 0b11111111, 0b11100_111 };
int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
Assert.Equal(expectedLength, decodedLength);
Assert.Equal(new byte[] { (byte)'B', (byte)'\n' }, decodedBytes);
}
[Theory]
[MemberData(nameof(HuffmanData))]
public void HuffmanEncode(int code, uint expectedEncoded, int expectedBitLength)
{
(uint encoded, int bitLength) = Huffman.Encode(code);
Assert.Equal(expectedEncoded, encoded);
Assert.Equal(expectedBitLength, bitLength);
}
public static TheoryData<int, uint, int> HuffmanData
{
get
{
TheoryData<int, uint, int> data = new TheoryData<int, uint, int>();
data.Add(0, 0b11111111_11000000_00000000_00000000, 13);
data.Add(1, 0b11111111_11111111_10110000_00000000, 23);
data.Add(2, 0b11111111_11111111_11111110_00100000, 28);
data.Add(3, 0b11111111_11111111_11111110_00110000, 28);
data.Add(4, 0b11111111_11111111_11111110_01000000, 28);
data.Add(5, 0b11111111_11111111_11111110_01010000, 28);
data.Add(6, 0b11111111_11111111_11111110_01100000, 28);
data.Add(7, 0b11111111_11111111_11111110_01110000, 28);
data.Add(8, 0b11111111_11111111_11111110_10000000, 28);
data.Add(9, 0b11111111_11111111_11101010_00000000, 24);
data.Add(10, 0b11111111_11111111_11111111_11110000, 30);
data.Add(11, 0b11111111_11111111_11111110_10010000, 28);
data.Add(12, 0b11111111_11111111_11111110_10100000, 28);
data.Add(13, 0b11111111_11111111_11111111_11110100, 30);
data.Add(14, 0b11111111_11111111_11111110_10110000, 28);
data.Add(15, 0b11111111_11111111_11111110_11000000, 28);
data.Add(16, 0b11111111_11111111_11111110_11010000, 28);
data.Add(17, 0b11111111_11111111_11111110_11100000, 28);
data.Add(18, 0b11111111_11111111_11111110_11110000, 28);
data.Add(19, 0b11111111_11111111_11111111_00000000, 28);
data.Add(20, 0b11111111_11111111_11111111_00010000, 28);
data.Add(21, 0b11111111_11111111_11111111_00100000, 28);
data.Add(22, 0b11111111_11111111_11111111_11111000, 30);
data.Add(23, 0b11111111_11111111_11111111_00110000, 28);
data.Add(24, 0b11111111_11111111_11111111_01000000, 28);
data.Add(25, 0b11111111_11111111_11111111_01010000, 28);
data.Add(26, 0b11111111_11111111_11111111_01100000, 28);
data.Add(27, 0b11111111_11111111_11111111_01110000, 28);
data.Add(28, 0b11111111_11111111_11111111_10000000, 28);
data.Add(29, 0b11111111_11111111_11111111_10010000, 28);
data.Add(30, 0b11111111_11111111_11111111_10100000, 28);
data.Add(31, 0b11111111_11111111_11111111_10110000, 28);
data.Add(32, 0b01010000_00000000_00000000_00000000, 6);
data.Add(33, 0b11111110_00000000_00000000_00000000, 10);
data.Add(34, 0b11111110_01000000_00000000_00000000, 10);
data.Add(35, 0b11111111_10100000_00000000_00000000, 12);
data.Add(36, 0b11111111_11001000_00000000_00000000, 13);
data.Add(37, 0b01010100_00000000_00000000_00000000, 6);
data.Add(38, 0b11111000_00000000_00000000_00000000, 8);
data.Add(39, 0b11111111_01000000_00000000_00000000, 11);
data.Add(40, 0b11111110_10000000_00000000_00000000, 10);
data.Add(41, 0b11111110_11000000_00000000_00000000, 10);
data.Add(42, 0b11111001_00000000_00000000_00000000, 8);
data.Add(43, 0b11111111_01100000_00000000_00000000, 11);
data.Add(44, 0b11111010_00000000_00000000_00000000, 8);
data.Add(45, 0b01011000_00000000_00000000_00000000, 6);
data.Add(46, 0b01011100_00000000_00000000_00000000, 6);
data.Add(47, 0b01100000_00000000_00000000_00000000, 6);
data.Add(48, 0b00000000_00000000_00000000_00000000, 5);
data.Add(49, 0b00001000_00000000_00000000_00000000, 5);
data.Add(50, 0b00010000_00000000_00000000_00000000, 5);
data.Add(51, 0b01100100_00000000_00000000_00000000, 6);
data.Add(52, 0b01101000_00000000_00000000_00000000, 6);
data.Add(53, 0b01101100_00000000_00000000_00000000, 6);
data.Add(54, 0b01110000_00000000_00000000_00000000, 6);
data.Add(55, 0b01110100_00000000_00000000_00000000, 6);
data.Add(56, 0b01111000_00000000_00000000_00000000, 6);
data.Add(57, 0b01111100_00000000_00000000_00000000, 6);
data.Add(58, 0b10111000_00000000_00000000_00000000, 7);
data.Add(59, 0b11111011_00000000_00000000_00000000, 8);
data.Add(60, 0b11111111_11111000_00000000_00000000, 15);
data.Add(61, 0b10000000_00000000_00000000_00000000, 6);
data.Add(62, 0b11111111_10110000_00000000_00000000, 12);
data.Add(63, 0b11111111_00000000_00000000_00000000, 10);
data.Add(64, 0b11111111_11010000_00000000_00000000, 13);
data.Add(65, 0b10000100_00000000_00000000_00000000, 6);
data.Add(66, 0b10111010_00000000_00000000_00000000, 7);
data.Add(67, 0b10111100_00000000_00000000_00000000, 7);
data.Add(68, 0b10111110_00000000_00000000_00000000, 7);
data.Add(69, 0b11000000_00000000_00000000_00000000, 7);
data.Add(70, 0b11000010_00000000_00000000_00000000, 7);
data.Add(71, 0b11000100_00000000_00000000_00000000, 7);
data.Add(72, 0b11000110_00000000_00000000_00000000, 7);
data.Add(73, 0b11001000_00000000_00000000_00000000, 7);
data.Add(74, 0b11001010_00000000_00000000_00000000, 7);
data.Add(75, 0b11001100_00000000_00000000_00000000, 7);
data.Add(76, 0b11001110_00000000_00000000_00000000, 7);
data.Add(77, 0b11010000_00000000_00000000_00000000, 7);
data.Add(78, 0b11010010_00000000_00000000_00000000, 7);
data.Add(79, 0b11010100_00000000_00000000_00000000, 7);
data.Add(80, 0b11010110_00000000_00000000_00000000, 7);
data.Add(81, 0b11011000_00000000_00000000_00000000, 7);
data.Add(82, 0b11011010_00000000_00000000_00000000, 7);
data.Add(83, 0b11011100_00000000_00000000_00000000, 7);
data.Add(84, 0b11011110_00000000_00000000_00000000, 7);
data.Add(85, 0b11100000_00000000_00000000_00000000, 7);
data.Add(86, 0b11100010_00000000_00000000_00000000, 7);
data.Add(87, 0b11100100_00000000_00000000_00000000, 7);
data.Add(88, 0b11111100_00000000_00000000_00000000, 8);
data.Add(89, 0b11100110_00000000_00000000_00000000, 7);
data.Add(90, 0b11111101_00000000_00000000_00000000, 8);
data.Add(91, 0b11111111_11011000_00000000_00000000, 13);
data.Add(92, 0b11111111_11111110_00000000_00000000, 19);
data.Add(93, 0b11111111_11100000_00000000_00000000, 13);
data.Add(94, 0b11111111_11110000_00000000_00000000, 14);
data.Add(95, 0b10001000_00000000_00000000_00000000, 6);
data.Add(96, 0b11111111_11111010_00000000_00000000, 15);
data.Add(97, 0b00011000_00000000_00000000_00000000, 5);
data.Add(98, 0b10001100_00000000_00000000_00000000, 6);
data.Add(99, 0b00100000_00000000_00000000_00000000, 5);
data.Add(100, 0b10010000_00000000_00000000_00000000, 6);
data.Add(101, 0b00101000_00000000_00000000_00000000, 5);
data.Add(102, 0b10010100_00000000_00000000_00000000, 6);
data.Add(103, 0b10011000_00000000_00000000_00000000, 6);
data.Add(104, 0b10011100_00000000_00000000_00000000, 6);
data.Add(105, 0b00110000_00000000_00000000_00000000, 5);
data.Add(106, 0b11101000_00000000_00000000_00000000, 7);
data.Add(107, 0b11101010_00000000_00000000_00000000, 7);
data.Add(108, 0b10100000_00000000_00000000_00000000, 6);
data.Add(109, 0b10100100_00000000_00000000_00000000, 6);
data.Add(110, 0b10101000_00000000_00000000_00000000, 6);
data.Add(111, 0b00111000_00000000_00000000_00000000, 5);
data.Add(112, 0b10101100_00000000_00000000_00000000, 6);
data.Add(113, 0b11101100_00000000_00000000_00000000, 7);
data.Add(114, 0b10110000_00000000_00000000_00000000, 6);
data.Add(115, 0b01000000_00000000_00000000_00000000, 5);
data.Add(116, 0b01001000_00000000_00000000_00000000, 5);
data.Add(117, 0b10110100_00000000_00000000_00000000, 6);
data.Add(118, 0b11101110_00000000_00000000_00000000, 7);
data.Add(119, 0b11110000_00000000_00000000_00000000, 7);
data.Add(120, 0b11110010_00000000_00000000_00000000, 7);
data.Add(121, 0b11110100_00000000_00000000_00000000, 7);
data.Add(122, 0b11110110_00000000_00000000_00000000, 7);
data.Add(123, 0b11111111_11111100_00000000_00000000, 15);
data.Add(124, 0b11111111_10000000_00000000_00000000, 11);
data.Add(125, 0b11111111_11110100_00000000_00000000, 14);
data.Add(126, 0b11111111_11101000_00000000_00000000, 13);
data.Add(127, 0b11111111_11111111_11111111_11000000, 28);
data.Add(128, 0b11111111_11111110_01100000_00000000, 20);
data.Add(129, 0b11111111_11111111_01001000_00000000, 22);
data.Add(130, 0b11111111_11111110_01110000_00000000, 20);
data.Add(131, 0b11111111_11111110_10000000_00000000, 20);
data.Add(132, 0b11111111_11111111_01001100_00000000, 22);
data.Add(133, 0b11111111_11111111_01010000_00000000, 22);
data.Add(134, 0b11111111_11111111_01010100_00000000, 22);
data.Add(135, 0b11111111_11111111_10110010_00000000, 23);
data.Add(136, 0b11111111_11111111_01011000_00000000, 22);
data.Add(137, 0b11111111_11111111_10110100_00000000, 23);
data.Add(138, 0b11111111_11111111_10110110_00000000, 23);
data.Add(139, 0b11111111_11111111_10111000_00000000, 23);
data.Add(140, 0b11111111_11111111_10111010_00000000, 23);
data.Add(141, 0b11111111_11111111_10111100_00000000, 23);
data.Add(142, 0b11111111_11111111_11101011_00000000, 24);
data.Add(143, 0b11111111_11111111_10111110_00000000, 23);
data.Add(144, 0b11111111_11111111_11101100_00000000, 24);
data.Add(145, 0b11111111_11111111_11101101_00000000, 24);
data.Add(146, 0b11111111_11111111_01011100_00000000, 22);
data.Add(147, 0b11111111_11111111_11000000_00000000, 23);
data.Add(148, 0b11111111_11111111_11101110_00000000, 24);
data.Add(149, 0b11111111_11111111_11000010_00000000, 23);
data.Add(150, 0b11111111_11111111_11000100_00000000, 23);
data.Add(151, 0b11111111_11111111_11000110_00000000, 23);
data.Add(152, 0b11111111_11111111_11001000_00000000, 23);
data.Add(153, 0b11111111_11111110_11100000_00000000, 21);
data.Add(154, 0b11111111_11111111_01100000_00000000, 22);
data.Add(155, 0b11111111_11111111_11001010_00000000, 23);
data.Add(156, 0b11111111_11111111_01100100_00000000, 22);
data.Add(157, 0b11111111_11111111_11001100_00000000, 23);
data.Add(158, 0b11111111_11111111_11001110_00000000, 23);
data.Add(159, 0b11111111_11111111_11101111_00000000, 24);
data.Add(160, 0b11111111_11111111_01101000_00000000, 22);
data.Add(161, 0b11111111_11111110_11101000_00000000, 21);
data.Add(162, 0b11111111_11111110_10010000_00000000, 20);
data.Add(163, 0b11111111_11111111_01101100_00000000, 22);
data.Add(164, 0b11111111_11111111_01110000_00000000, 22);
data.Add(165, 0b11111111_11111111_11010000_00000000, 23);
data.Add(166, 0b11111111_11111111_11010010_00000000, 23);
data.Add(167, 0b11111111_11111110_11110000_00000000, 21);
data.Add(168, 0b11111111_11111111_11010100_00000000, 23);
data.Add(169, 0b11111111_11111111_01110100_00000000, 22);
data.Add(170, 0b11111111_11111111_01111000_00000000, 22);
data.Add(171, 0b11111111_11111111_11110000_00000000, 24);
data.Add(172, 0b11111111_11111110_11111000_00000000, 21);
data.Add(173, 0b11111111_11111111_01111100_00000000, 22);
data.Add(174, 0b11111111_11111111_11010110_00000000, 23);
data.Add(175, 0b11111111_11111111_11011000_00000000, 23);
data.Add(176, 0b11111111_11111111_00000000_00000000, 21);
data.Add(177, 0b11111111_11111111_00001000_00000000, 21);
data.Add(178, 0b11111111_11111111_10000000_00000000, 22);
data.Add(179, 0b11111111_11111111_00010000_00000000, 21);
data.Add(180, 0b11111111_11111111_11011010_00000000, 23);
data.Add(181, 0b11111111_11111111_10000100_00000000, 22);
data.Add(182, 0b11111111_11111111_11011100_00000000, 23);
data.Add(183, 0b11111111_11111111_11011110_00000000, 23);
data.Add(184, 0b11111111_11111110_10100000_00000000, 20);
data.Add(185, 0b11111111_11111111_10001000_00000000, 22);
data.Add(186, 0b11111111_11111111_10001100_00000000, 22);
data.Add(187, 0b11111111_11111111_10010000_00000000, 22);
data.Add(188, 0b11111111_11111111_11100000_00000000, 23);
data.Add(189, 0b11111111_11111111_10010100_00000000, 22);
data.Add(190, 0b11111111_11111111_10011000_00000000, 22);
data.Add(191, 0b11111111_11111111_11100010_00000000, 23);
data.Add(192, 0b11111111_11111111_11111000_00000000, 26);
data.Add(193, 0b11111111_11111111_11111000_01000000, 26);
data.Add(194, 0b11111111_11111110_10110000_00000000, 20);
data.Add(195, 0b11111111_11111110_00100000_00000000, 19);
data.Add(196, 0b11111111_11111111_10011100_00000000, 22);
data.Add(197, 0b11111111_11111111_11100100_00000000, 23);
data.Add(198, 0b11111111_11111111_10100000_00000000, 22);
data.Add(199, 0b11111111_11111111_11110110_00000000, 25);
data.Add(200, 0b11111111_11111111_11111000_10000000, 26);
data.Add(201, 0b11111111_11111111_11111000_11000000, 26);
data.Add(202, 0b11111111_11111111_11111001_00000000, 26);
data.Add(203, 0b11111111_11111111_11111011_11000000, 27);
data.Add(204, 0b11111111_11111111_11111011_11100000, 27);
data.Add(205, 0b11111111_11111111_11111001_01000000, 26);
data.Add(206, 0b11111111_11111111_11110001_00000000, 24);
data.Add(207, 0b11111111_11111111_11110110_10000000, 25);
data.Add(208, 0b11111111_11111110_01000000_00000000, 19);
data.Add(209, 0b11111111_11111111_00011000_00000000, 21);
data.Add(210, 0b11111111_11111111_11111001_10000000, 26);
data.Add(211, 0b11111111_11111111_11111100_00000000, 27);
data.Add(212, 0b11111111_11111111_11111100_00100000, 27);
data.Add(213, 0b11111111_11111111_11111001_11000000, 26);
data.Add(214, 0b11111111_11111111_11111100_01000000, 27);
data.Add(215, 0b11111111_11111111_11110010_00000000, 24);
data.Add(216, 0b11111111_11111111_00100000_00000000, 21);
data.Add(217, 0b11111111_11111111_00101000_00000000, 21);
data.Add(218, 0b11111111_11111111_11111010_00000000, 26);
data.Add(219, 0b11111111_11111111_11111010_01000000, 26);
data.Add(220, 0b11111111_11111111_11111111_11010000, 28);
data.Add(221, 0b11111111_11111111_11111100_01100000, 27);
data.Add(222, 0b11111111_11111111_11111100_10000000, 27);
data.Add(223, 0b11111111_11111111_11111100_10100000, 27);
data.Add(224, 0b11111111_11111110_11000000_00000000, 20);
data.Add(225, 0b11111111_11111111_11110011_00000000, 24);
data.Add(226, 0b11111111_11111110_11010000_00000000, 20);
data.Add(227, 0b11111111_11111111_00110000_00000000, 21);
data.Add(228, 0b11111111_11111111_10100100_00000000, 22);
data.Add(229, 0b11111111_11111111_00111000_00000000, 21);
data.Add(230, 0b11111111_11111111_01000000_00000000, 21);
data.Add(231, 0b11111111_11111111_11100110_00000000, 23);
data.Add(232, 0b11111111_11111111_10101000_00000000, 22);
data.Add(233, 0b11111111_11111111_10101100_00000000, 22);
data.Add(234, 0b11111111_11111111_11110111_00000000, 25);
data.Add(235, 0b11111111_11111111_11110111_10000000, 25);
data.Add(236, 0b11111111_11111111_11110100_00000000, 24);
data.Add(237, 0b11111111_11111111_11110101_00000000, 24);
data.Add(238, 0b11111111_11111111_11111010_10000000, 26);
data.Add(239, 0b11111111_11111111_11101000_00000000, 23);
data.Add(240, 0b11111111_11111111_11111010_11000000, 26);
data.Add(241, 0b11111111_11111111_11111100_11000000, 27);
data.Add(242, 0b11111111_11111111_11111011_00000000, 26);
data.Add(243, 0b11111111_11111111_11111011_01000000, 26);
data.Add(244, 0b11111111_11111111_11111100_11100000, 27);
data.Add(245, 0b11111111_11111111_11111101_00000000, 27);
data.Add(246, 0b11111111_11111111_11111101_00100000, 27);
data.Add(247, 0b11111111_11111111_11111101_01000000, 27);
data.Add(248, 0b11111111_11111111_11111101_01100000, 27);
data.Add(249, 0b11111111_11111111_11111111_11100000, 28);
data.Add(250, 0b11111111_11111111_11111101_10000000, 27);
data.Add(251, 0b11111111_11111111_11111101_10100000, 27);
data.Add(252, 0b11111111_11111111_11111101_11000000, 27);
data.Add(253, 0b11111111_11111111_11111101_11100000, 27);
data.Add(254, 0b11111111_11111111_11111110_00000000, 27);
data.Add(255, 0b11111111_11111111_11111011_10000000, 26);
data.Add(256, 0b11111111_11111111_11111111_11111100, 30);
return data;
}
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Net.Requests/src/System/Net/ICloseEx.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Net
{
[Flags]
internal enum CloseExState
{
Normal = 0x0, // just a close
Abort = 0x1, // unconditionaly release resources
Silent = 0x2 // do not throw on close if possible
}
//
// This is an advanced closing mechanism required by ConnectStream to work properly.
//
internal interface ICloseEx
{
void CloseEx(CloseExState closeState);
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Net
{
[Flags]
internal enum CloseExState
{
Normal = 0x0, // just a close
Abort = 0x1, // unconditionaly release resources
Silent = 0x2 // do not throw on close if possible
}
//
// This is an advanced closing mechanism required by ConnectStream to work properly.
//
internal interface ICloseEx
{
void CloseEx(CloseExState closeState);
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest640/Generated640.ilproj
|
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated640.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated640.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/utilcode/hostimpl.cpp
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "stdafx.h"
#include "mscoree.h"
#include "clrinternal.h"
#include "clrhost.h"
#include "ex.h"
thread_local size_t t_ThreadType;
CRITSEC_COOKIE ClrCreateCriticalSection(CrstType crstType, CrstFlags flags)
{
CRITICAL_SECTION *cs = (CRITICAL_SECTION*)malloc(sizeof(CRITICAL_SECTION));
InitializeCriticalSection(cs);
return (CRITSEC_COOKIE)cs;
}
void ClrDeleteCriticalSection(CRITSEC_COOKIE cookie)
{
_ASSERTE(cookie);
DeleteCriticalSection((CRITICAL_SECTION*)cookie);
free(cookie);
}
void ClrEnterCriticalSection(CRITSEC_COOKIE cookie)
{
_ASSERTE(cookie);
EnterCriticalSection((CRITICAL_SECTION*)cookie);
}
void ClrLeaveCriticalSection(CRITSEC_COOKIE cookie)
{
_ASSERTE(cookie);
LeaveCriticalSection((CRITICAL_SECTION*)cookie);
}
DWORD ClrSleepEx(DWORD dwMilliseconds, BOOL bAlertable)
{
return SleepEx(dwMilliseconds, bAlertable);
}
LPVOID ClrVirtualAlloc(LPVOID lpAddress, SIZE_T dwSize, DWORD flAllocationType, DWORD flProtect)
{
#ifdef FAILPOINTS_ENABLED
if (RFS_HashStack ())
return NULL;
#endif
return VirtualAlloc(lpAddress, dwSize, flAllocationType, flProtect);
}
BOOL ClrVirtualFree(LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType)
{
return VirtualFree(lpAddress, dwSize, dwFreeType);
}
SIZE_T ClrVirtualQuery(LPCVOID lpAddress, PMEMORY_BASIC_INFORMATION lpBuffer, SIZE_T dwLength)
{
return VirtualQuery(lpAddress, lpBuffer, dwLength);
}
BOOL ClrVirtualProtect(LPVOID lpAddress, SIZE_T dwSize, DWORD flNewProtect, PDWORD lpflOldProtect)
{
return VirtualProtect(lpAddress, dwSize, flNewProtect, lpflOldProtect);
}
//------------------------------------------------------------------------------
// Helper function to get an exception from outside the exception. In
// the CLR, it may be from the Thread object. Non-CLR users have no thread object,
// and it will do nothing.
void GetLastThrownObjectExceptionFromThread(Exception** ppException)
{
*ppException = NULL;
}
#ifdef HOST_WINDOWS
void CreateCrashDumpIfEnabled(bool stackoverflow)
{
}
#endif
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "stdafx.h"
#include "mscoree.h"
#include "clrinternal.h"
#include "clrhost.h"
#include "ex.h"
thread_local size_t t_ThreadType;
CRITSEC_COOKIE ClrCreateCriticalSection(CrstType crstType, CrstFlags flags)
{
CRITICAL_SECTION *cs = (CRITICAL_SECTION*)malloc(sizeof(CRITICAL_SECTION));
InitializeCriticalSection(cs);
return (CRITSEC_COOKIE)cs;
}
void ClrDeleteCriticalSection(CRITSEC_COOKIE cookie)
{
_ASSERTE(cookie);
DeleteCriticalSection((CRITICAL_SECTION*)cookie);
free(cookie);
}
void ClrEnterCriticalSection(CRITSEC_COOKIE cookie)
{
_ASSERTE(cookie);
EnterCriticalSection((CRITICAL_SECTION*)cookie);
}
void ClrLeaveCriticalSection(CRITSEC_COOKIE cookie)
{
_ASSERTE(cookie);
LeaveCriticalSection((CRITICAL_SECTION*)cookie);
}
DWORD ClrSleepEx(DWORD dwMilliseconds, BOOL bAlertable)
{
return SleepEx(dwMilliseconds, bAlertable);
}
LPVOID ClrVirtualAlloc(LPVOID lpAddress, SIZE_T dwSize, DWORD flAllocationType, DWORD flProtect)
{
#ifdef FAILPOINTS_ENABLED
if (RFS_HashStack ())
return NULL;
#endif
return VirtualAlloc(lpAddress, dwSize, flAllocationType, flProtect);
}
BOOL ClrVirtualFree(LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType)
{
return VirtualFree(lpAddress, dwSize, dwFreeType);
}
SIZE_T ClrVirtualQuery(LPCVOID lpAddress, PMEMORY_BASIC_INFORMATION lpBuffer, SIZE_T dwLength)
{
return VirtualQuery(lpAddress, lpBuffer, dwLength);
}
BOOL ClrVirtualProtect(LPVOID lpAddress, SIZE_T dwSize, DWORD flNewProtect, PDWORD lpflOldProtect)
{
return VirtualProtect(lpAddress, dwSize, flNewProtect, lpflOldProtect);
}
//------------------------------------------------------------------------------
// Helper function to get an exception from outside the exception. In
// the CLR, it may be from the Thread object. Non-CLR users have no thread object,
// and it will do nothing.
void GetLastThrownObjectExceptionFromThread(Exception** ppException)
{
*ppException = NULL;
}
#ifdef HOST_WINDOWS
void CreateCrashDumpIfEnabled(bool stackoverflow)
{
}
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Private.CoreLib/src/System/LocalDataStoreSlot.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using System.Threading;
namespace System
{
public sealed class LocalDataStoreSlot
{
internal LocalDataStoreSlot(ThreadLocal<object?> data)
{
Data = data;
GC.SuppressFinalize(this);
}
internal ThreadLocal<object?> Data { get; private set; }
[SuppressMessage("Microsoft.Security", "CA1821", Justification = "Finalizer preserved for compat, it is suppressed by the constructor.")]
~LocalDataStoreSlot()
{
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using System.Threading;
namespace System
{
public sealed class LocalDataStoreSlot
{
internal LocalDataStoreSlot(ThreadLocal<object?> data)
{
Data = data;
GC.SuppressFinalize(this);
}
internal ThreadLocal<object?> Data { get; private set; }
[SuppressMessage("Microsoft.Security", "CA1821", Justification = "Finalizer preserved for compat, it is suppressed by the constructor.")]
~LocalDataStoreSlot()
{
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b37214/b37214.il
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'b37214' {}
.assembly extern xunit.core {}
.class ILGEN_0x68eb9462 {
.method static float32 Method_0x42ed(unsigned int8 Arg_0x0, unsigned int64 Arg_0x1, unsigned int32 Arg_0x2, float32 Arg_0x3, int8 Arg_0x4, unsigned int8 Arg_0x5, int32 Arg_0x6) {
.maxstack 19
.locals (int32 local_0x1)
ldc.i4 0x73514940
stloc local_0x1
BLOCK_1:
Start_Orphan_0:
ldarg Arg_0x1
conv.i1
ldarg Arg_0x6
conv.ovf.u8.un
ldc.i4 0x41f48fd
conv.u8
ldc.i4.5
conv.ovf.u8.un
mul.ovf
ceq
conv.u2
rem.un
stloc local_0x1
End_Orphan_0:
ldc.r8 float64(0x1967157856fa6604)
conv.r4
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 20
.try {
ldc.i4 0x35bbfb3
ldc.i8 0x3a092fd2181e3149
ldc.i4 0x99c459f
ldc.r4 float32(0x694b1915)
ldc.i4 0xc859f5
ldc.i4 0xab44ddc
ldc.i4 0x633b7dc4
call float32 ILGEN_0x68eb9462::Method_0x42ed(unsigned int8 Arg_0x0, unsigned int64 Arg_0x1, unsigned int32 Arg_0x2, float32 Arg_0x3, int8 Arg_0x4, unsigned int8 Arg_0x5, int32 Arg_0x6)
conv.i4
pop
leave sss
} catch [mscorlib]System.DivideByZeroException {
pop
leave sss
}
sss:
ldc.i4 100
ret
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'b37214' {}
.assembly extern xunit.core {}
.class ILGEN_0x68eb9462 {
.method static float32 Method_0x42ed(unsigned int8 Arg_0x0, unsigned int64 Arg_0x1, unsigned int32 Arg_0x2, float32 Arg_0x3, int8 Arg_0x4, unsigned int8 Arg_0x5, int32 Arg_0x6) {
.maxstack 19
.locals (int32 local_0x1)
ldc.i4 0x73514940
stloc local_0x1
BLOCK_1:
Start_Orphan_0:
ldarg Arg_0x1
conv.i1
ldarg Arg_0x6
conv.ovf.u8.un
ldc.i4 0x41f48fd
conv.u8
ldc.i4.5
conv.ovf.u8.un
mul.ovf
ceq
conv.u2
rem.un
stloc local_0x1
End_Orphan_0:
ldc.r8 float64(0x1967157856fa6604)
conv.r4
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 20
.try {
ldc.i4 0x35bbfb3
ldc.i8 0x3a092fd2181e3149
ldc.i4 0x99c459f
ldc.r4 float32(0x694b1915)
ldc.i4 0xc859f5
ldc.i4 0xab44ddc
ldc.i4 0x633b7dc4
call float32 ILGEN_0x68eb9462::Method_0x42ed(unsigned int8 Arg_0x0, unsigned int64 Arg_0x1, unsigned int32 Arg_0x2, float32 Arg_0x3, int8 Arg_0x4, unsigned int8 Arg_0x5, int32 Arg_0x6)
conv.i4
pop
leave sss
} catch [mscorlib]System.DivideByZeroException {
pop
leave sss
}
sss:
ldc.i4 100
ret
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/coreclr/pal/tests/palsuite/c_runtime/sprintf_s/test12/test12.cpp
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: test12.c
**
** Purpose: Test #12 for the sprintf_s function. Tests the (lowercase)
** hexadecimal specifier (%x)
**
**
**==========================================================================*/
#include <palsuite.h>
#include "../sprintf_s.h"
/*
* Depends on memcmp and strlen
*/
PALTEST(c_runtime_sprintf_s_test12_paltest_sprintf_test12, "c_runtime/sprintf_s/test12/paltest_sprintf_test12")
{
int neg = -42;
int pos = 0x1234ab;
INT64 l = I64(0x1234567887654321);
if (PAL_Initialize(argc, argv) != 0)
{
return FAIL;
}
DoNumTest("foo %x", pos, "foo 1234ab");
DoNumTest("foo %lx", pos, "foo 1234ab");
DoNumTest("foo %hx", pos, "foo 34ab");
DoNumTest("foo %Lx", pos, "foo 1234ab");
DoI64Test("foo %I64x", l, "0x1234567887654321",
"foo 1234567887654321");
DoNumTest("foo %7x", pos, "foo 1234ab");
DoNumTest("foo %-7x", pos, "foo 1234ab ");
DoNumTest("foo %.1x", pos, "foo 1234ab");
DoNumTest("foo %.7x", pos, "foo 01234ab");
DoNumTest("foo %07x", pos, "foo 01234ab");
DoNumTest("foo %#x", pos, "foo 0x1234ab");
DoNumTest("foo %+x", pos, "foo 1234ab");
DoNumTest("foo % x", pos, "foo 1234ab");
DoNumTest("foo %+x", neg, "foo ffffffd6");
DoNumTest("foo % x", neg, "foo ffffffd6");
PAL_Terminate();
return PASS;
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: test12.c
**
** Purpose: Test #12 for the sprintf_s function. Tests the (lowercase)
** hexadecimal specifier (%x)
**
**
**==========================================================================*/
#include <palsuite.h>
#include "../sprintf_s.h"
/*
* Depends on memcmp and strlen
*/
PALTEST(c_runtime_sprintf_s_test12_paltest_sprintf_test12, "c_runtime/sprintf_s/test12/paltest_sprintf_test12")
{
int neg = -42;
int pos = 0x1234ab;
INT64 l = I64(0x1234567887654321);
if (PAL_Initialize(argc, argv) != 0)
{
return FAIL;
}
DoNumTest("foo %x", pos, "foo 1234ab");
DoNumTest("foo %lx", pos, "foo 1234ab");
DoNumTest("foo %hx", pos, "foo 34ab");
DoNumTest("foo %Lx", pos, "foo 1234ab");
DoI64Test("foo %I64x", l, "0x1234567887654321",
"foo 1234567887654321");
DoNumTest("foo %7x", pos, "foo 1234ab");
DoNumTest("foo %-7x", pos, "foo 1234ab ");
DoNumTest("foo %.1x", pos, "foo 1234ab");
DoNumTest("foo %.7x", pos, "foo 01234ab");
DoNumTest("foo %07x", pos, "foo 01234ab");
DoNumTest("foo %#x", pos, "foo 0x1234ab");
DoNumTest("foo %+x", pos, "foo 1234ab");
DoNumTest("foo % x", pos, "foo 1234ab");
DoNumTest("foo %+x", neg, "foo ffffffd6");
DoNumTest("foo % x", neg, "foo ffffffd6");
PAL_Terminate();
return PASS;
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Net.Mail/src/System/Net/Mail/MailWriter.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Specialized;
using System.IO;
using System.Net.Mime;
namespace System.Net.Mail
{
internal sealed class MailWriter : BaseWriter
{
/// <summary>
/// ctor.
/// </summary>
/// <param name="stream">Underlying stream</param>
/// <param name="encodeForTransport">Specifies whether the data should be encoded for transport over SMTP</param>
internal MailWriter(Stream stream, bool encodeForTransport)
: base(stream, encodeForTransport)
// This is the only stream that should encoding leading dots on a line.
// This way it is done message wide and only once.
{
}
internal override void WriteHeaders(NameValueCollection headers!!, bool allowUnicode)
{
foreach (string key in headers)
{
string[] values = headers!.GetValues(key)!;
foreach (string value in values)
WriteHeader(key, value, allowUnicode);
}
}
/// <summary>
/// Closes underlying stream.
/// </summary>
internal override void Close()
{
_bufferBuilder.Append(s_crlf);
Flush(null);
_stream.Close();
}
/// <summary>
/// Called when the current stream is closed. Allows us to
/// prepare for the next message part.
/// </summary>
/// <param name="sender">Sender of the close event</param>
/// <param name="args">Event args (not used)</param>
protected override void OnClose(object? sender, EventArgs args)
{
Diagnostics.Debug.Assert(_contentStream == sender);
_contentStream.Flush();
_contentStream = null!;
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Specialized;
using System.IO;
using System.Net.Mime;
namespace System.Net.Mail
{
internal sealed class MailWriter : BaseWriter
{
/// <summary>
/// ctor.
/// </summary>
/// <param name="stream">Underlying stream</param>
/// <param name="encodeForTransport">Specifies whether the data should be encoded for transport over SMTP</param>
internal MailWriter(Stream stream, bool encodeForTransport)
: base(stream, encodeForTransport)
// This is the only stream that should encoding leading dots on a line.
// This way it is done message wide and only once.
{
}
internal override void WriteHeaders(NameValueCollection headers!!, bool allowUnicode)
{
foreach (string key in headers)
{
string[] values = headers!.GetValues(key)!;
foreach (string value in values)
WriteHeader(key, value, allowUnicode);
}
}
/// <summary>
/// Closes underlying stream.
/// </summary>
internal override void Close()
{
_bufferBuilder.Append(s_crlf);
Flush(null);
_stream.Close();
}
/// <summary>
/// Called when the current stream is closed. Allows us to
/// prepare for the next message part.
/// </summary>
/// <param name="sender">Sender of the close event</param>
/// <param name="args">Event args (not used)</param>
protected override void OnClose(object? sender, EventArgs args)
{
Diagnostics.Debug.Assert(_contentStream == sender);
_contentStream.Flush();
_contentStream = null!;
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Memory/tests/ReadOnlyMemory/ImplicitConversion.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.MemoryTests
{
public static partial class ReadOnlyMemoryTests
{
[Fact]
public static void CtorImplicitArray()
{
int[] intArray = { 19, -17 };
CastReadOnly(intArray, 19, -17);
long[] longArray = { 1, -3, 7, -15, 31 };
CastReadOnly<long>(longArray, 1, -3, 7, -15, 31);
object o1 = new object();
object o2 = new object();
object o3 = new object();
object o4 = new object();
object[] objectArray = { o1, o2, o3, o4 };
CastReadOnlyReference(objectArray, o1, o2, o3, o4);
}
[Fact]
public static void CtorImplicitZeroLengthArray()
{
int[] emptyArray1 = Array.Empty<int>();
CastReadOnly<int>(emptyArray1);
int[] emptyArray2 = new int[0];
CastReadOnly<int>(emptyArray2);
}
[Fact]
public static void CtorImplicitArraySegment()
{
int[] a = { 19, -17 };
ArraySegment<int> segmentInt = new ArraySegment<int>(a, 1, 1);
CastReadOnly(segmentInt, -17);
long[] b = { 1, -3, 7, -15, 31 };
ArraySegment<long> segmentLong = new ArraySegment<long>(b, 1, 3);
CastReadOnly<long>(segmentLong, -3, 7, -15);
object o1 = new object();
object o2 = new object();
object o3 = new object();
object o4 = new object();
object[] c = { o1, o2, o3, o4 };
ArraySegment<object> segmentObject = new ArraySegment<object>(c, 0, 2);
CastReadOnlyReference(segmentObject, o1, o2);
}
[Fact]
public static void CtorImplicitZeroLengthArraySegment()
{
int[] empty = Array.Empty<int>();
ArraySegment<int> emptySegment = new ArraySegment<int>(empty);
CastReadOnly<int>(emptySegment);
int[] a = { 19, -17 };
ArraySegment<int> segmentInt = new ArraySegment<int>(a, 1, 0);
CastReadOnly<int>(segmentInt);
}
[Fact]
public static void NullImplicitCast()
{
int[] dst = null;
ReadOnlyMemory<int> srcMemory = dst;
Assert.True(ReadOnlyMemory<int>.Empty.Span == srcMemory.Span);
}
private static void CastReadOnly<T>(ReadOnlyMemory<T> memory, params T[] expected) where T : struct, IEquatable<T>
{
memory.Validate(expected);
}
private static void CastReadOnlyReference<T>(ReadOnlyMemory<T> memory, params T[] expected) where T : class
{
memory.ValidateReferenceType(expected);
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.MemoryTests
{
public static partial class ReadOnlyMemoryTests
{
[Fact]
public static void CtorImplicitArray()
{
int[] intArray = { 19, -17 };
CastReadOnly(intArray, 19, -17);
long[] longArray = { 1, -3, 7, -15, 31 };
CastReadOnly<long>(longArray, 1, -3, 7, -15, 31);
object o1 = new object();
object o2 = new object();
object o3 = new object();
object o4 = new object();
object[] objectArray = { o1, o2, o3, o4 };
CastReadOnlyReference(objectArray, o1, o2, o3, o4);
}
[Fact]
public static void CtorImplicitZeroLengthArray()
{
int[] emptyArray1 = Array.Empty<int>();
CastReadOnly<int>(emptyArray1);
int[] emptyArray2 = new int[0];
CastReadOnly<int>(emptyArray2);
}
[Fact]
public static void CtorImplicitArraySegment()
{
int[] a = { 19, -17 };
ArraySegment<int> segmentInt = new ArraySegment<int>(a, 1, 1);
CastReadOnly(segmentInt, -17);
long[] b = { 1, -3, 7, -15, 31 };
ArraySegment<long> segmentLong = new ArraySegment<long>(b, 1, 3);
CastReadOnly<long>(segmentLong, -3, 7, -15);
object o1 = new object();
object o2 = new object();
object o3 = new object();
object o4 = new object();
object[] c = { o1, o2, o3, o4 };
ArraySegment<object> segmentObject = new ArraySegment<object>(c, 0, 2);
CastReadOnlyReference(segmentObject, o1, o2);
}
[Fact]
public static void CtorImplicitZeroLengthArraySegment()
{
int[] empty = Array.Empty<int>();
ArraySegment<int> emptySegment = new ArraySegment<int>(empty);
CastReadOnly<int>(emptySegment);
int[] a = { 19, -17 };
ArraySegment<int> segmentInt = new ArraySegment<int>(a, 1, 0);
CastReadOnly<int>(segmentInt);
}
[Fact]
public static void NullImplicitCast()
{
int[] dst = null;
ReadOnlyMemory<int> srcMemory = dst;
Assert.True(ReadOnlyMemory<int>.Empty.Span == srcMemory.Span);
}
private static void CastReadOnly<T>(ReadOnlyMemory<T> memory, params T[] expected) where T : struct, IEquatable<T>
{
memory.Validate(expected);
}
private static void CastReadOnlyReference<T>(ReadOnlyMemory<T> memory, params T[] expected) where T : class
{
memory.ValidateReferenceType(expected);
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/GC/API/GCHandle/Alloc_neg2.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="Alloc_neg2.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="Alloc_neg2.cs" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest733/Generated733.ilproj
|
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated733.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated733.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/tests/JIT/Performance/CodeQuality/SciMark/SOR.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/// <license>
/// This is a port of the SciMark2a Java Benchmark to C# by
/// Chris Re ([email protected]) and Werner Vogels ([email protected])
///
/// For details on the original authors see http://math.nist.gov/scimark2
///
/// This software is likely to burn your processor, bitflip your memory chips
/// anihilate your screen and corrupt all your disks, so you it at your
/// own risk.
/// </license>
using System;
namespace SciMark2
{
public class SOR
{
public static double num_flops(int M, int N, int num_iterations)
{
double Md = (double)M;
double Nd = (double)N;
double num_iterD = (double)num_iterations;
return (Md - 1) * (Nd - 1) * num_iterD * 6.0;
}
public static void execute(double omega, double[][] G, int num_iterations)
{
int M = G.Length;
int N = G[0].Length;
double omega_over_four = omega * 0.25;
double one_minus_omega = 1.0 - omega;
// update interior points
//
int Mm1 = M - 1;
int Nm1 = N - 1;
for (int p = 0; p < num_iterations; p++)
{
for (int i = 1; i < Mm1; i++)
{
double[] Gi = G[i];
double[] Gim1 = G[i - 1];
double[] Gip1 = G[i + 1];
for (int j = 1; j < Nm1; j++)
Gi[j] = omega_over_four * (Gim1[j] + Gip1[j] + Gi[j - 1] + Gi[j + 1]) + one_minus_omega * Gi[j];
}
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/// <license>
/// This is a port of the SciMark2a Java Benchmark to C# by
/// Chris Re ([email protected]) and Werner Vogels ([email protected])
///
/// For details on the original authors see http://math.nist.gov/scimark2
///
/// This software is likely to burn your processor, bitflip your memory chips
/// anihilate your screen and corrupt all your disks, so you it at your
/// own risk.
/// </license>
using System;
namespace SciMark2
{
public class SOR
{
public static double num_flops(int M, int N, int num_iterations)
{
double Md = (double)M;
double Nd = (double)N;
double num_iterD = (double)num_iterations;
return (Md - 1) * (Nd - 1) * num_iterD * 6.0;
}
public static void execute(double omega, double[][] G, int num_iterations)
{
int M = G.Length;
int N = G[0].Length;
double omega_over_four = omega * 0.25;
double one_minus_omega = 1.0 - omega;
// update interior points
//
int Mm1 = M - 1;
int Nm1 = N - 1;
for (int p = 0; p < num_iterations; p++)
{
for (int i = 1; i < Mm1; i++)
{
double[] Gi = G[i];
double[] Gim1 = G[i - 1];
double[] Gip1 = G[i + 1];
for (int j = 1; j < Nm1; j++)
Gi[j] = omega_over_four * (Gim1[j] + Gip1[j] + Gi[j - 1] + Gi[j + 1]) + one_minus_omega * Gi[j];
}
}
}
}
}
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/mono/System.Private.CoreLib/src/System/Reflection/Emit/ModuleBuilder.Mono.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// System.Reflection.Emit/ModuleBuilder.cs
//
// Author:
// Paolo Molaro ([email protected])
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
//
#if MONO_FEATURE_SRE
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.IO;
using System.Globalization;
namespace System.Reflection.Emit
{
[StructLayout(LayoutKind.Sequential)]
public partial class ModuleBuilder : Module
{
#region Sync with MonoReflectionModuleBuilder in object-internals.h
#region This class inherits from Module, but the runtime expects it to have the same layout as MonoModule
internal IntPtr _impl; /* a pointer to a MonoImage */
internal Assembly assembly;
internal string fqname;
internal string name;
internal string scopename;
internal bool is_resource;
internal int token;
#endregion
private UIntPtr dynamic_image; /* GC-tracked */
private int num_types;
private TypeBuilder[]? types;
private CustomAttributeBuilder[]? cattrs;
private int table_idx;
internal AssemblyBuilder assemblyb;
private object[]? global_methods;
private object[]? global_fields;
private bool is_main;
private object? resources;
private IntPtr unparented_classes;
private int[]? table_indexes;
#endregion
private byte[] guid;
private TypeBuilder? global_type;
private Type? global_type_created;
// name_cache keys are display names
private Dictionary<ITypeName, TypeBuilder> name_cache;
private Dictionary<string, int> us_string_cache;
private ModuleBuilderTokenGenerator? token_gen;
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void basic_init(ModuleBuilder ab);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void set_wrappers_type(ModuleBuilder mb, Type? ab);
[DynamicDependency(nameof(table_indexes))] // Automatically keeps all previous fields too due to StructLayout
internal ModuleBuilder(AssemblyBuilder assb, string name)
{
this.name = this.scopename = name;
this.fqname = name;
this.assembly = this.assemblyb = assb;
guid = Guid.NewGuid().ToByteArray();
table_idx = get_next_table_index(0x00, 1);
name_cache = new Dictionary<ITypeName, TypeBuilder>();
us_string_cache = new Dictionary<string, int>(512);
basic_init(this);
CreateGlobalType();
TypeBuilder tb = new TypeBuilder(this, TypeAttributes.Abstract, 0xFFFFFF); /*last valid token*/
Type? type = tb.CreateType();
set_wrappers_type(this, type);
}
[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
public override string FullyQualifiedName
{
get
{
string fullyQualifiedName = fqname;
if (fullyQualifiedName == null)
return null!; // FIXME: this should not return null
return fullyQualifiedName;
}
}
public void CreateGlobalFunctions()
{
if (global_type_created != null)
throw new InvalidOperationException("global methods already created");
if (global_type != null)
global_type_created = global_type.CreateType()!;
}
public FieldBuilder DefineInitializedData(string name, byte[] data, FieldAttributes attributes)
{
if (data == null)
throw new ArgumentNullException(nameof(data));
FieldAttributes maskedAttributes = attributes & ~FieldAttributes.ReservedMask;
FieldBuilder fb = DefineDataImpl(name, data.Length, maskedAttributes | FieldAttributes.HasFieldRVA);
fb.SetRVAData(data);
return fb;
}
public FieldBuilder DefineUninitializedData(string name, int size, FieldAttributes attributes)
{
return DefineDataImpl(name, size, attributes & ~FieldAttributes.ReservedMask);
}
[UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode",
Justification = "Reflection.Emit is not subject to trimming")]
private FieldBuilder DefineDataImpl(string name, int size, FieldAttributes attributes)
{
ArgumentException.ThrowIfNullOrEmpty(name);
if (global_type_created != null)
throw new InvalidOperationException("global fields already created");
if ((size <= 0) || (size >= 0x3f0000))
throw new ArgumentException("Data size must be > 0 and < 0x3f0000", null as string);
CreateGlobalType();
string typeName = "$ArrayType$" + size;
Type? datablobtype = GetType(typeName, false, false);
if (datablobtype == null)
{
TypeBuilder tb = DefineType(typeName,
TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Sealed,
typeof(ValueType), null, FieldBuilder.RVADataPackingSize(size), size);
tb.CreateType();
datablobtype = tb;
}
FieldBuilder fb = global_type!.DefineField(name, datablobtype, attributes | FieldAttributes.Static);
if (global_fields != null)
{
FieldBuilder[] new_fields = new FieldBuilder[global_fields.Length + 1];
Array.Copy(global_fields, new_fields, global_fields.Length);
new_fields[global_fields.Length] = fb;
global_fields = new_fields;
}
else
{
global_fields = new FieldBuilder[] { fb };
}
return fb;
}
private void addGlobalMethod(MethodBuilder mb)
{
if (global_methods != null)
{
MethodBuilder[] new_methods = new MethodBuilder[global_methods.Length + 1];
Array.Copy(global_methods, new_methods, global_methods.Length);
new_methods[global_methods.Length] = mb;
global_methods = new_methods;
}
else
{
global_methods = new MethodBuilder[] { mb };
}
}
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, Type? returnType, Type[]? parameterTypes)
{
return DefineGlobalMethod(name, attributes, CallingConventions.Standard, returnType, parameterTypes);
}
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes)
{
return DefineGlobalMethod(name, attributes, callingConvention, returnType, null, null, parameterTypes, null, null);
}
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? requiredReturnTypeCustomModifiers, Type[]? optionalReturnTypeCustomModifiers, Type[]? parameterTypes, Type[][]? requiredParameterTypeCustomModifiers, Type[][]? optionalParameterTypeCustomModifiers)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
if ((attributes & MethodAttributes.Static) == 0)
throw new ArgumentException("global methods must be static");
if (global_type_created != null)
throw new InvalidOperationException("global methods already created");
CreateGlobalType();
MethodBuilder mb = global_type!.DefineMethod(name, attributes, callingConvention, returnType, requiredReturnTypeCustomModifiers, optionalReturnTypeCustomModifiers, parameterTypes, requiredParameterTypeCustomModifiers, optionalParameterTypeCustomModifiers);
addGlobalMethod(mb);
return mb;
}
[RequiresUnreferencedCode("P/Invoke marshalling may dynamically access members that could be trimmed.")]
public MethodBuilder DefinePInvokeMethod(string name, string dllName, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
{
return DefinePInvokeMethod(name, dllName, name, attributes, callingConvention, returnType, parameterTypes, nativeCallConv, nativeCharSet);
}
[RequiresUnreferencedCode("P/Invoke marshalling may dynamically access members that could be trimmed.")]
public MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
if ((attributes & MethodAttributes.Static) == 0)
throw new ArgumentException("global methods must be static");
if (global_type_created != null)
throw new InvalidOperationException("global methods already created");
CreateGlobalType();
MethodBuilder mb = global_type!.DefinePInvokeMethod(name, dllName, entryName, attributes, callingConvention, returnType, parameterTypes, nativeCallConv, nativeCharSet);
addGlobalMethod(mb);
return mb;
}
public TypeBuilder DefineType(string name)
{
return DefineType(name, 0);
}
public TypeBuilder DefineType(string name, TypeAttributes attr)
{
if ((attr & TypeAttributes.Interface) != 0)
return DefineType(name, attr, null, null);
return DefineType(name, attr, typeof(object), null);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent)
{
return DefineType(name, attr, parent, null);
}
private void AddType(TypeBuilder tb)
{
if (types != null)
{
if (types.Length == num_types)
{
TypeBuilder[] new_types = new TypeBuilder[types.Length * 2];
Array.Copy(types, new_types, num_types);
types = new_types;
}
}
else
{
types = new TypeBuilder[1];
}
types[num_types] = tb;
num_types++;
}
[UnconditionalSuppressMessage("ReflectionAnalysis", "IL2067:UnrecognizedReflectionPattern",
Justification = "Reflection.Emit is not subject to trimming")]
private TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces, PackingSize packingSize, int typesize)
{
if (name == null)
throw new ArgumentNullException("fullname");
ITypeIdentifier ident = TypeIdentifiers.FromInternal(name);
if (name_cache.ContainsKey(ident))
throw new ArgumentException("Duplicate type name within an assembly.");
TypeBuilder res = new TypeBuilder(this, name, attr, parent, interfaces, packingSize, typesize, null);
AddType(res);
name_cache.Add(ident, res);
return res;
}
internal void RegisterTypeName(TypeBuilder tb, ITypeName name)
{
name_cache.Add(name, tb);
}
internal TypeBuilder? GetRegisteredType(ITypeName name)
{
TypeBuilder? result;
name_cache.TryGetValue(name, out result);
return result;
}
[ComVisible(true)]
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces)
{
return DefineType(name, attr, parent, interfaces, PackingSize.Unspecified, TypeBuilder.UnspecifiedTypeSize);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, int typesize)
{
return DefineType(name, attr, parent, null, PackingSize.Unspecified, typesize);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, PackingSize packsize)
{
return DefineType(name, attr, parent, null, packsize, TypeBuilder.UnspecifiedTypeSize);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, PackingSize packingSize, int typesize)
{
return DefineType(name, attr, parent, null, packingSize, typesize);
}
public MethodInfo GetArrayMethod(Type arrayClass, string methodName, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes)
{
return new MonoArrayMethod(arrayClass, methodName, callingConvention, returnType!, parameterTypes!); // FIXME: nulls should be allowed
}
public EnumBuilder DefineEnum(string name, TypeAttributes visibility, Type underlyingType)
{
ITypeIdentifier ident = TypeIdentifiers.FromInternal(name);
if (name_cache.ContainsKey(ident))
throw new ArgumentException("Duplicate type name within an assembly.");
EnumBuilder eb = new EnumBuilder(this, name, visibility, underlyingType);
TypeBuilder res = eb.GetTypeBuilder();
AddType(res);
name_cache.Add(ident, res);
return eb;
}
[ComVisible(true)]
[RequiresUnreferencedCode("Types might be removed")]
public override Type? GetType(string className)
{
return GetType(className, false, false);
}
[ComVisible(true)]
[RequiresUnreferencedCode("Types might be removed")]
public override Type? GetType(string className, bool ignoreCase)
{
return GetType(className, false, ignoreCase);
}
private static TypeBuilder? search_in_array(TypeBuilder[] arr, int validElementsInArray, ITypeName className)
{
int i;
for (i = 0; i < validElementsInArray; ++i)
{
if (string.Compare(className.DisplayName, arr[i].FullName, true, CultureInfo.InvariantCulture) == 0)
{
return arr[i];
}
}
return null;
}
private static TypeBuilder? search_nested_in_array(TypeBuilder[] arr, int validElementsInArray, ITypeName className)
{
int i;
for (i = 0; i < validElementsInArray; ++i)
{
if (string.Compare(className.DisplayName, arr[i].Name, true, CultureInfo.InvariantCulture) == 0)
return arr[i];
}
return null;
}
private static TypeBuilder? GetMaybeNested(TypeBuilder t, IEnumerable<ITypeName> nested)
{
TypeBuilder? result = t;
foreach (ITypeName pname in nested)
{
if (result.subtypes == null)
return null;
result = search_nested_in_array(result.subtypes, result.subtypes.Length, pname);
if (result == null)
return null;
}
return result;
}
[RequiresUnreferencedCode("Types might be removed")]
[ComVisible(true)]
public override Type? GetType(string className, bool throwOnError, bool ignoreCase)
{
ArgumentException.ThrowIfNullOrEmpty(className);
TypeBuilder? result = null;
if (types == null && throwOnError)
throw new TypeLoadException(className);
TypeSpec ts = TypeSpec.Parse(className);
if (!ignoreCase)
{
ITypeName displayNestedName = ts.TypeNameWithoutModifiers();
name_cache.TryGetValue(displayNestedName, out result);
}
else
{
if (types != null)
result = search_in_array(types, num_types, ts.Name!);
if (!ts.IsNested && result != null)
{
result = GetMaybeNested(result, ts.Nested);
}
}
if ((result == null) && throwOnError)
throw new TypeLoadException(className);
if (result != null && (ts.HasModifiers || ts.IsByRef))
{
Type mt = result;
if (result is TypeBuilder)
{
var tb = result as TypeBuilder;
if (tb.is_created)
mt = tb.CreateType()!;
}
foreach (IModifierSpec mod in ts.Modifiers)
{
if (mod is PointerSpec)
mt = mt.MakePointerType()!;
else if (mod is IArraySpec)
{
var spec = (mod as IArraySpec)!;
if (spec.IsBound)
return null;
if (spec.Rank == 1)
mt = mt.MakeArrayType();
else
mt = mt.MakeArrayType(spec.Rank);
}
}
if (ts.IsByRef)
mt = mt.MakeByRefType();
result = mt as TypeBuilder;
if (result == null)
return mt;
}
if (result != null && result.is_created)
return result.CreateType();
else
return result;
}
internal int get_next_table_index(int table, int count)
{
if (table_indexes == null)
{
table_indexes = new int[64];
for (int i = 0; i < 64; ++i)
table_indexes[i] = 1;
/* allow room for .<Module> in TypeDef table */
table_indexes[0x02] = 2;
}
// Console.WriteLine ("getindex for table "+table.ToString()+" got "+table_indexes [table].ToString());
int index = table_indexes[table];
table_indexes[table] += count;
return index;
}
public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
{
if (customBuilder == null)
throw new ArgumentNullException(nameof(customBuilder));
if (cattrs != null)
{
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder[cattrs.Length + 1];
cattrs.CopyTo(new_array, 0);
new_array[cattrs.Length] = customBuilder;
cattrs = new_array;
}
else
{
cattrs = new CustomAttributeBuilder[1];
cattrs[0] = customBuilder;
}
}
[ComVisible(true)]
public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
{
SetCustomAttribute(new CustomAttributeBuilder(con, binaryAttribute));
}
/*
internal ISymbolDocumentWriter? DefineDocument (string url, Guid language, Guid languageVendor, Guid documentType)
{
if (symbolWriter != null)
return symbolWriter.DefineDocument (url, language, languageVendor, documentType);
else
return null;
}
*/
[RequiresUnreferencedCode("Types might be removed")]
public override Type[] GetTypes()
{
if (types == null)
return Type.EmptyTypes;
int n = num_types;
Type[] copy = new Type[n];
Array.Copy(types, copy, n);
// MS replaces the typebuilders with their created types
for (int i = 0; i < copy.Length; ++i)
if (types[i].is_created)
copy[i] = types[i].CreateType()!;
return copy;
}
internal int GetMethodToken(MethodInfo method)
{
if (method == null)
throw new ArgumentNullException(nameof(method));
return method.MetadataToken;
}
internal int GetArrayMethodToken(Type arrayClass, string methodName, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes)
{
return GetMethodToken(GetArrayMethod(arrayClass, methodName, callingConvention, returnType, parameterTypes));
}
[ComVisible(true)]
internal int GetConstructorToken(ConstructorInfo con)
{
if (con == null)
throw new ArgumentNullException(nameof(con));
return con.MetadataToken;
}
internal int GetFieldToken(FieldInfo field)
{
if (field == null)
throw new ArgumentNullException(nameof(field));
return field.MetadataToken;
}
// FIXME:
internal int GetSignatureToken(byte[] sigBytes, int sigLength)
{
throw new NotImplementedException();
}
internal int GetSignatureToken(SignatureHelper sigHelper)
{
if (sigHelper == null)
throw new ArgumentNullException(nameof(sigHelper));
return GetToken(sigHelper);
}
internal int GetStringConstant(string str)
{
if (str == null)
throw new ArgumentNullException(nameof(str));
return GetToken(str);
}
internal int GetTypeToken(Type type)
{
if (type == null)
throw new ArgumentNullException(nameof(type));
if (type.IsByRef)
throw new ArgumentException("type can't be a byref type", nameof(type));
return type.MetadataToken;
}
[UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode",
Justification = "Reflection.Emit is not subject to trimming")]
internal int GetTypeToken(string name)
{
return GetTypeToken(GetType(name)!);
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int getUSIndex(ModuleBuilder mb, string str);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int getToken(ModuleBuilder mb, object obj, bool create_open_instance);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int getMethodToken(ModuleBuilder mb, MethodBase method,
Type[] opt_param_types);
internal int GetToken(string str)
{
int result;
if (!us_string_cache.TryGetValue(str, out result))
{
result = getUSIndex(this, str);
us_string_cache[str] = result;
}
return result;
}
private static int typeref_tokengen = 0x01ffffff;
private static int typedef_tokengen = 0x02ffffff;
private static int typespec_tokengen = 0x1bffffff;
private static int memberref_tokengen = 0x0affffff;
private static int methoddef_tokengen = 0x06ffffff;
private Dictionary<MemberInfo, int>? inst_tokens, inst_tokens_open;
//
// Assign a pseudo token to the various TypeBuilderInst objects, so the runtime
// doesn't have to deal with them.
// For Run assemblies, the tokens will not be fixed up, so the runtime will
// still encounter these objects, it will resolve them by calling their
// RuntimeResolve () methods.
//
private int GetPseudoToken(MemberInfo member, bool create_open_instance)
{
int token;
Dictionary<MemberInfo, int>? dict = create_open_instance ? inst_tokens_open : inst_tokens;
if (dict == null)
{
dict = new Dictionary<MemberInfo, int>(ReferenceEqualityComparer.Instance);
if (create_open_instance)
inst_tokens_open = dict;
else
inst_tokens = dict;
}
else if (dict.TryGetValue(member, out token))
{
return token;
}
// Count backwards to avoid collisions with the tokens
// allocated by the runtime
if (member is TypeBuilderInstantiation || member is SymbolType)
token = typespec_tokengen--;
else if (member is FieldOnTypeBuilderInst)
token = memberref_tokengen--;
else if (member is ConstructorOnTypeBuilderInst)
token = memberref_tokengen--;
else if (member is MethodOnTypeBuilderInst)
token = memberref_tokengen--;
else if (member is FieldBuilder)
token = memberref_tokengen--;
else if (member is TypeBuilder tb)
{
if (create_open_instance && tb.ContainsGenericParameters)
token = typespec_tokengen--;
else if (member.Module == this)
token = typedef_tokengen--;
else
token = typeref_tokengen--;
}
else if (member is EnumBuilder eb)
{
token = GetPseudoToken(eb.GetTypeBuilder(), create_open_instance);
dict[member] = token;
// n.b. don't register with the runtime, the TypeBuilder already did it.
return token;
}
else if (member is ConstructorBuilder cb)
{
if (member.Module == this && !cb.TypeBuilder.ContainsGenericParameters)
token = methoddef_tokengen--;
else
token = memberref_tokengen--;
}
else if (member is MethodBuilder mb)
{
if (member.Module == this && !mb.TypeBuilder.ContainsGenericParameters && !mb.IsGenericMethodDefinition)
token = methoddef_tokengen--;
else
token = memberref_tokengen--;
}
else if (member is GenericTypeParameterBuilder)
{
token = typespec_tokengen--;
}
else
throw new NotImplementedException();
dict[member] = token;
RegisterToken(member, token);
return token;
}
internal int GetToken(MemberInfo member)
{
if (member is ConstructorBuilder || member is MethodBuilder || member is FieldBuilder)
return GetPseudoToken(member, false);
return getToken(this, member, true);
}
internal int GetToken(MemberInfo member, bool create_open_instance)
{
if (member is TypeBuilderInstantiation || member is FieldOnTypeBuilderInst || member is ConstructorOnTypeBuilderInst || member is MethodOnTypeBuilderInst || member is SymbolType || member is FieldBuilder || member is TypeBuilder || member is ConstructorBuilder || member is MethodBuilder || member is GenericTypeParameterBuilder ||
member is EnumBuilder)
return GetPseudoToken(member, create_open_instance);
return getToken(this, member, create_open_instance);
}
internal int GetToken(MethodBase method, IEnumerable<Type> opt_param_types)
{
if (method is ConstructorBuilder || method is MethodBuilder)
return GetPseudoToken(method, false);
if (opt_param_types == null)
return getToken(this, method, true);
var optParamTypes = new List<Type>(opt_param_types);
return getMethodToken(this, method, optParamTypes.ToArray());
}
internal int GetToken(MethodBase method, Type[] opt_param_types)
{
if (method is ConstructorBuilder || method is MethodBuilder)
return GetPseudoToken(method, false);
return getMethodToken(this, method, opt_param_types);
}
internal int GetToken(SignatureHelper helper)
{
return getToken(this, helper, true);
}
/*
* Register the token->obj mapping with the runtime so the Module.Resolve...
* methods will work for obj.
*/
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern void RegisterToken(object obj, int token);
/*
* Returns MemberInfo registered with the given token.
*/
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern object GetRegisteredToken(int token);
internal ITokenGenerator GetTokenGenerator()
{
if (token_gen == null)
token_gen = new ModuleBuilderTokenGenerator(this);
return token_gen;
}
// Called from the runtime to return the corresponding finished reflection object
internal static object RuntimeResolve(object obj)
{
if (obj is MethodBuilder mb)
return mb.RuntimeResolve();
if (obj is ConstructorBuilder cb)
return cb.RuntimeResolve();
if (obj is FieldBuilder fb)
return fb.RuntimeResolve();
if (obj is GenericTypeParameterBuilder gtpb)
return gtpb.RuntimeResolve();
if (obj is FieldOnTypeBuilderInst fotbi)
return fotbi.RuntimeResolve();
if (obj is MethodOnTypeBuilderInst motbi)
return motbi.RuntimeResolve();
if (obj is ConstructorOnTypeBuilderInst cotbi)
return cotbi.RuntimeResolve();
if (obj is Type t)
return t.RuntimeResolve();
throw new NotImplementedException(obj.GetType().FullName);
}
internal string FileName
{
get
{
return fqname;
}
}
internal bool IsMain
{
set
{
is_main = value;
}
}
internal void CreateGlobalType()
{
if (global_type == null)
global_type = new TypeBuilder(this, 0, 1);
}
public override Assembly Assembly
{
get { return assemblyb; }
}
[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
public override string Name
{
get { return name; }
}
public override string ScopeName
{
get { return name; }
}
public override Guid ModuleVersionId
{
get
{
return new Guid(guid);
}
}
public override bool IsResource()
{
return false;
}
internal ModuleBuilder InternalModule => this;
internal IntPtr GetUnderlyingNativeHandle() { return _impl; }
[RequiresUnreferencedCode("Methods might be removed")]
protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
{
if (global_type_created == null)
return null;
if (types == null)
return global_type_created.GetMethod(name);
return global_type_created.GetMethod(name, bindingAttr, binder, callConvention, types, modifiers);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override FieldInfo? ResolveField(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveField(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveMember(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
internal MemberInfo ResolveOrGetRegisteredToken(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
{
ResolveTokenError error;
MemberInfo? m = RuntimeModule.ResolveMemberToken(_impl, metadataToken, RuntimeModule.ptrs_from_types(genericTypeArguments), RuntimeModule.ptrs_from_types(genericMethodArguments), out error);
if (m != null)
return m;
m = GetRegisteredToken(metadataToken) as MemberInfo;
if (m == null)
throw RuntimeModule.resolve_token_exception(this, metadataToken, error, "MemberInfo");
else
return m;
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override MethodBase? ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveMethod(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override string ResolveString(int metadataToken)
{
return RuntimeModule.ResolveString(this, _impl, metadataToken);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override byte[] ResolveSignature(int metadataToken)
{
return RuntimeModule.ResolveSignature(this, _impl, metadataToken);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override Type ResolveType(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveType(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
public override bool Equals(object? obj)
{
return base.Equals(obj);
}
public override int GetHashCode()
{
return base.GetHashCode();
}
public override bool IsDefined(Type attributeType, bool inherit)
{
return base.IsDefined(attributeType, inherit);
}
public override object[] GetCustomAttributes(bool inherit)
{
return GetCustomAttributes(null!, inherit); // FIXME: coreclr doesn't allow null attributeType
}
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
{
if (cattrs == null || cattrs.Length == 0)
return Array.Empty<object>();
if (attributeType is TypeBuilder)
throw new InvalidOperationException("First argument to GetCustomAttributes can't be a TypeBuilder");
List<object> results = new List<object>();
for (int i = 0; i < cattrs.Length; i++)
{
Type t = cattrs[i].Ctor.GetType();
if (t is TypeBuilder)
throw new InvalidOperationException("Can't construct custom attribute for TypeBuilder type");
if (attributeType == null || attributeType.IsAssignableFrom(t))
results.Add(cattrs[i].Invoke());
}
return results.ToArray();
}
public override IList<CustomAttributeData> GetCustomAttributesData()
{
return CustomAttribute.GetCustomAttributesData(this);
}
[RequiresUnreferencedCode("Fields might be removed")]
public override FieldInfo? GetField(string name, BindingFlags bindingAttr)
{
if (global_type_created == null)
throw new InvalidOperationException("Module-level fields cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.");
return global_type_created.GetField(name, bindingAttr);
}
[RequiresUnreferencedCode("Fields might be removed")]
public override FieldInfo[] GetFields(BindingFlags bindingFlags)
{
if (global_type_created == null)
throw new InvalidOperationException("Module-level fields cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.");
return global_type_created.GetFields(bindingFlags);
}
[RequiresUnreferencedCode("Methods might be removed")]
public override MethodInfo[] GetMethods(BindingFlags bindingFlags)
{
if (global_type_created == null)
throw new InvalidOperationException("Module-level methods cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.");
return global_type_created.GetMethods(bindingFlags);
}
public override int MetadataToken
{
get
{
return RuntimeModule.get_MetadataToken(this);
}
}
}
internal sealed class ModuleBuilderTokenGenerator : ITokenGenerator
{
private ModuleBuilder mb;
public ModuleBuilderTokenGenerator(ModuleBuilder mb)
{
this.mb = mb;
}
public int GetToken(string str)
{
return mb.GetToken(str);
}
public int GetToken(MemberInfo member, bool create_open_instance)
{
return mb.GetToken(member, create_open_instance);
}
public int GetToken(MethodBase method, Type[] opt_param_types)
{
return mb.GetToken(method, opt_param_types);
}
public int GetToken(SignatureHelper helper)
{
return mb.GetToken(helper);
}
}
}
#endif
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// System.Reflection.Emit/ModuleBuilder.cs
//
// Author:
// Paolo Molaro ([email protected])
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
//
#if MONO_FEATURE_SRE
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.IO;
using System.Globalization;
namespace System.Reflection.Emit
{
[StructLayout(LayoutKind.Sequential)]
public partial class ModuleBuilder : Module
{
#region Sync with MonoReflectionModuleBuilder in object-internals.h
#region This class inherits from Module, but the runtime expects it to have the same layout as MonoModule
internal IntPtr _impl; /* a pointer to a MonoImage */
internal Assembly assembly;
internal string fqname;
internal string name;
internal string scopename;
internal bool is_resource;
internal int token;
#endregion
private UIntPtr dynamic_image; /* GC-tracked */
private int num_types;
private TypeBuilder[]? types;
private CustomAttributeBuilder[]? cattrs;
private int table_idx;
internal AssemblyBuilder assemblyb;
private object[]? global_methods;
private object[]? global_fields;
private bool is_main;
private object? resources;
private IntPtr unparented_classes;
private int[]? table_indexes;
#endregion
private byte[] guid;
private TypeBuilder? global_type;
private Type? global_type_created;
// name_cache keys are display names
private Dictionary<ITypeName, TypeBuilder> name_cache;
private Dictionary<string, int> us_string_cache;
private ModuleBuilderTokenGenerator? token_gen;
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void basic_init(ModuleBuilder ab);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void set_wrappers_type(ModuleBuilder mb, Type? ab);
[DynamicDependency(nameof(table_indexes))] // Automatically keeps all previous fields too due to StructLayout
internal ModuleBuilder(AssemblyBuilder assb, string name)
{
this.name = this.scopename = name;
this.fqname = name;
this.assembly = this.assemblyb = assb;
guid = Guid.NewGuid().ToByteArray();
table_idx = get_next_table_index(0x00, 1);
name_cache = new Dictionary<ITypeName, TypeBuilder>();
us_string_cache = new Dictionary<string, int>(512);
basic_init(this);
CreateGlobalType();
TypeBuilder tb = new TypeBuilder(this, TypeAttributes.Abstract, 0xFFFFFF); /*last valid token*/
Type? type = tb.CreateType();
set_wrappers_type(this, type);
}
[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
public override string FullyQualifiedName
{
get
{
string fullyQualifiedName = fqname;
if (fullyQualifiedName == null)
return null!; // FIXME: this should not return null
return fullyQualifiedName;
}
}
public void CreateGlobalFunctions()
{
if (global_type_created != null)
throw new InvalidOperationException("global methods already created");
if (global_type != null)
global_type_created = global_type.CreateType()!;
}
public FieldBuilder DefineInitializedData(string name, byte[] data, FieldAttributes attributes)
{
if (data == null)
throw new ArgumentNullException(nameof(data));
FieldAttributes maskedAttributes = attributes & ~FieldAttributes.ReservedMask;
FieldBuilder fb = DefineDataImpl(name, data.Length, maskedAttributes | FieldAttributes.HasFieldRVA);
fb.SetRVAData(data);
return fb;
}
public FieldBuilder DefineUninitializedData(string name, int size, FieldAttributes attributes)
{
return DefineDataImpl(name, size, attributes & ~FieldAttributes.ReservedMask);
}
[UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode",
Justification = "Reflection.Emit is not subject to trimming")]
private FieldBuilder DefineDataImpl(string name, int size, FieldAttributes attributes)
{
ArgumentException.ThrowIfNullOrEmpty(name);
if (global_type_created != null)
throw new InvalidOperationException("global fields already created");
if ((size <= 0) || (size >= 0x3f0000))
throw new ArgumentException("Data size must be > 0 and < 0x3f0000", null as string);
CreateGlobalType();
string typeName = "$ArrayType$" + size;
Type? datablobtype = GetType(typeName, false, false);
if (datablobtype == null)
{
TypeBuilder tb = DefineType(typeName,
TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Sealed,
typeof(ValueType), null, FieldBuilder.RVADataPackingSize(size), size);
tb.CreateType();
datablobtype = tb;
}
FieldBuilder fb = global_type!.DefineField(name, datablobtype, attributes | FieldAttributes.Static);
if (global_fields != null)
{
FieldBuilder[] new_fields = new FieldBuilder[global_fields.Length + 1];
Array.Copy(global_fields, new_fields, global_fields.Length);
new_fields[global_fields.Length] = fb;
global_fields = new_fields;
}
else
{
global_fields = new FieldBuilder[] { fb };
}
return fb;
}
private void addGlobalMethod(MethodBuilder mb)
{
if (global_methods != null)
{
MethodBuilder[] new_methods = new MethodBuilder[global_methods.Length + 1];
Array.Copy(global_methods, new_methods, global_methods.Length);
new_methods[global_methods.Length] = mb;
global_methods = new_methods;
}
else
{
global_methods = new MethodBuilder[] { mb };
}
}
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, Type? returnType, Type[]? parameterTypes)
{
return DefineGlobalMethod(name, attributes, CallingConventions.Standard, returnType, parameterTypes);
}
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes)
{
return DefineGlobalMethod(name, attributes, callingConvention, returnType, null, null, parameterTypes, null, null);
}
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? requiredReturnTypeCustomModifiers, Type[]? optionalReturnTypeCustomModifiers, Type[]? parameterTypes, Type[][]? requiredParameterTypeCustomModifiers, Type[][]? optionalParameterTypeCustomModifiers)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
if ((attributes & MethodAttributes.Static) == 0)
throw new ArgumentException("global methods must be static");
if (global_type_created != null)
throw new InvalidOperationException("global methods already created");
CreateGlobalType();
MethodBuilder mb = global_type!.DefineMethod(name, attributes, callingConvention, returnType, requiredReturnTypeCustomModifiers, optionalReturnTypeCustomModifiers, parameterTypes, requiredParameterTypeCustomModifiers, optionalParameterTypeCustomModifiers);
addGlobalMethod(mb);
return mb;
}
[RequiresUnreferencedCode("P/Invoke marshalling may dynamically access members that could be trimmed.")]
public MethodBuilder DefinePInvokeMethod(string name, string dllName, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
{
return DefinePInvokeMethod(name, dllName, name, attributes, callingConvention, returnType, parameterTypes, nativeCallConv, nativeCharSet);
}
[RequiresUnreferencedCode("P/Invoke marshalling may dynamically access members that could be trimmed.")]
public MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
if ((attributes & MethodAttributes.Static) == 0)
throw new ArgumentException("global methods must be static");
if (global_type_created != null)
throw new InvalidOperationException("global methods already created");
CreateGlobalType();
MethodBuilder mb = global_type!.DefinePInvokeMethod(name, dllName, entryName, attributes, callingConvention, returnType, parameterTypes, nativeCallConv, nativeCharSet);
addGlobalMethod(mb);
return mb;
}
public TypeBuilder DefineType(string name)
{
return DefineType(name, 0);
}
public TypeBuilder DefineType(string name, TypeAttributes attr)
{
if ((attr & TypeAttributes.Interface) != 0)
return DefineType(name, attr, null, null);
return DefineType(name, attr, typeof(object), null);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent)
{
return DefineType(name, attr, parent, null);
}
private void AddType(TypeBuilder tb)
{
if (types != null)
{
if (types.Length == num_types)
{
TypeBuilder[] new_types = new TypeBuilder[types.Length * 2];
Array.Copy(types, new_types, num_types);
types = new_types;
}
}
else
{
types = new TypeBuilder[1];
}
types[num_types] = tb;
num_types++;
}
[UnconditionalSuppressMessage("ReflectionAnalysis", "IL2067:UnrecognizedReflectionPattern",
Justification = "Reflection.Emit is not subject to trimming")]
private TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces, PackingSize packingSize, int typesize)
{
if (name == null)
throw new ArgumentNullException("fullname");
ITypeIdentifier ident = TypeIdentifiers.FromInternal(name);
if (name_cache.ContainsKey(ident))
throw new ArgumentException("Duplicate type name within an assembly.");
TypeBuilder res = new TypeBuilder(this, name, attr, parent, interfaces, packingSize, typesize, null);
AddType(res);
name_cache.Add(ident, res);
return res;
}
internal void RegisterTypeName(TypeBuilder tb, ITypeName name)
{
name_cache.Add(name, tb);
}
internal TypeBuilder? GetRegisteredType(ITypeName name)
{
TypeBuilder? result;
name_cache.TryGetValue(name, out result);
return result;
}
[ComVisible(true)]
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces)
{
return DefineType(name, attr, parent, interfaces, PackingSize.Unspecified, TypeBuilder.UnspecifiedTypeSize);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, int typesize)
{
return DefineType(name, attr, parent, null, PackingSize.Unspecified, typesize);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, PackingSize packsize)
{
return DefineType(name, attr, parent, null, packsize, TypeBuilder.UnspecifiedTypeSize);
}
public TypeBuilder DefineType(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, PackingSize packingSize, int typesize)
{
return DefineType(name, attr, parent, null, packingSize, typesize);
}
public MethodInfo GetArrayMethod(Type arrayClass, string methodName, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes)
{
return new MonoArrayMethod(arrayClass, methodName, callingConvention, returnType!, parameterTypes!); // FIXME: nulls should be allowed
}
public EnumBuilder DefineEnum(string name, TypeAttributes visibility, Type underlyingType)
{
ITypeIdentifier ident = TypeIdentifiers.FromInternal(name);
if (name_cache.ContainsKey(ident))
throw new ArgumentException("Duplicate type name within an assembly.");
EnumBuilder eb = new EnumBuilder(this, name, visibility, underlyingType);
TypeBuilder res = eb.GetTypeBuilder();
AddType(res);
name_cache.Add(ident, res);
return eb;
}
[ComVisible(true)]
[RequiresUnreferencedCode("Types might be removed")]
public override Type? GetType(string className)
{
return GetType(className, false, false);
}
[ComVisible(true)]
[RequiresUnreferencedCode("Types might be removed")]
public override Type? GetType(string className, bool ignoreCase)
{
return GetType(className, false, ignoreCase);
}
private static TypeBuilder? search_in_array(TypeBuilder[] arr, int validElementsInArray, ITypeName className)
{
int i;
for (i = 0; i < validElementsInArray; ++i)
{
if (string.Compare(className.DisplayName, arr[i].FullName, true, CultureInfo.InvariantCulture) == 0)
{
return arr[i];
}
}
return null;
}
private static TypeBuilder? search_nested_in_array(TypeBuilder[] arr, int validElementsInArray, ITypeName className)
{
int i;
for (i = 0; i < validElementsInArray; ++i)
{
if (string.Compare(className.DisplayName, arr[i].Name, true, CultureInfo.InvariantCulture) == 0)
return arr[i];
}
return null;
}
private static TypeBuilder? GetMaybeNested(TypeBuilder t, IEnumerable<ITypeName> nested)
{
TypeBuilder? result = t;
foreach (ITypeName pname in nested)
{
if (result.subtypes == null)
return null;
result = search_nested_in_array(result.subtypes, result.subtypes.Length, pname);
if (result == null)
return null;
}
return result;
}
[RequiresUnreferencedCode("Types might be removed")]
[ComVisible(true)]
public override Type? GetType(string className, bool throwOnError, bool ignoreCase)
{
ArgumentException.ThrowIfNullOrEmpty(className);
TypeBuilder? result = null;
if (types == null && throwOnError)
throw new TypeLoadException(className);
TypeSpec ts = TypeSpec.Parse(className);
if (!ignoreCase)
{
ITypeName displayNestedName = ts.TypeNameWithoutModifiers();
name_cache.TryGetValue(displayNestedName, out result);
}
else
{
if (types != null)
result = search_in_array(types, num_types, ts.Name!);
if (!ts.IsNested && result != null)
{
result = GetMaybeNested(result, ts.Nested);
}
}
if ((result == null) && throwOnError)
throw new TypeLoadException(className);
if (result != null && (ts.HasModifiers || ts.IsByRef))
{
Type mt = result;
if (result is TypeBuilder)
{
var tb = result as TypeBuilder;
if (tb.is_created)
mt = tb.CreateType()!;
}
foreach (IModifierSpec mod in ts.Modifiers)
{
if (mod is PointerSpec)
mt = mt.MakePointerType()!;
else if (mod is IArraySpec)
{
var spec = (mod as IArraySpec)!;
if (spec.IsBound)
return null;
if (spec.Rank == 1)
mt = mt.MakeArrayType();
else
mt = mt.MakeArrayType(spec.Rank);
}
}
if (ts.IsByRef)
mt = mt.MakeByRefType();
result = mt as TypeBuilder;
if (result == null)
return mt;
}
if (result != null && result.is_created)
return result.CreateType();
else
return result;
}
internal int get_next_table_index(int table, int count)
{
if (table_indexes == null)
{
table_indexes = new int[64];
for (int i = 0; i < 64; ++i)
table_indexes[i] = 1;
/* allow room for .<Module> in TypeDef table */
table_indexes[0x02] = 2;
}
// Console.WriteLine ("getindex for table "+table.ToString()+" got "+table_indexes [table].ToString());
int index = table_indexes[table];
table_indexes[table] += count;
return index;
}
public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
{
if (customBuilder == null)
throw new ArgumentNullException(nameof(customBuilder));
if (cattrs != null)
{
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder[cattrs.Length + 1];
cattrs.CopyTo(new_array, 0);
new_array[cattrs.Length] = customBuilder;
cattrs = new_array;
}
else
{
cattrs = new CustomAttributeBuilder[1];
cattrs[0] = customBuilder;
}
}
[ComVisible(true)]
public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
{
SetCustomAttribute(new CustomAttributeBuilder(con, binaryAttribute));
}
/*
internal ISymbolDocumentWriter? DefineDocument (string url, Guid language, Guid languageVendor, Guid documentType)
{
if (symbolWriter != null)
return symbolWriter.DefineDocument (url, language, languageVendor, documentType);
else
return null;
}
*/
[RequiresUnreferencedCode("Types might be removed")]
public override Type[] GetTypes()
{
if (types == null)
return Type.EmptyTypes;
int n = num_types;
Type[] copy = new Type[n];
Array.Copy(types, copy, n);
// MS replaces the typebuilders with their created types
for (int i = 0; i < copy.Length; ++i)
if (types[i].is_created)
copy[i] = types[i].CreateType()!;
return copy;
}
internal int GetMethodToken(MethodInfo method)
{
if (method == null)
throw new ArgumentNullException(nameof(method));
return method.MetadataToken;
}
internal int GetArrayMethodToken(Type arrayClass, string methodName, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes)
{
return GetMethodToken(GetArrayMethod(arrayClass, methodName, callingConvention, returnType, parameterTypes));
}
[ComVisible(true)]
internal int GetConstructorToken(ConstructorInfo con)
{
if (con == null)
throw new ArgumentNullException(nameof(con));
return con.MetadataToken;
}
internal int GetFieldToken(FieldInfo field)
{
if (field == null)
throw new ArgumentNullException(nameof(field));
return field.MetadataToken;
}
// FIXME:
internal int GetSignatureToken(byte[] sigBytes, int sigLength)
{
throw new NotImplementedException();
}
internal int GetSignatureToken(SignatureHelper sigHelper)
{
if (sigHelper == null)
throw new ArgumentNullException(nameof(sigHelper));
return GetToken(sigHelper);
}
internal int GetStringConstant(string str)
{
if (str == null)
throw new ArgumentNullException(nameof(str));
return GetToken(str);
}
internal int GetTypeToken(Type type)
{
if (type == null)
throw new ArgumentNullException(nameof(type));
if (type.IsByRef)
throw new ArgumentException("type can't be a byref type", nameof(type));
return type.MetadataToken;
}
[UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode",
Justification = "Reflection.Emit is not subject to trimming")]
internal int GetTypeToken(string name)
{
return GetTypeToken(GetType(name)!);
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int getUSIndex(ModuleBuilder mb, string str);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int getToken(ModuleBuilder mb, object obj, bool create_open_instance);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int getMethodToken(ModuleBuilder mb, MethodBase method,
Type[] opt_param_types);
internal int GetToken(string str)
{
int result;
if (!us_string_cache.TryGetValue(str, out result))
{
result = getUSIndex(this, str);
us_string_cache[str] = result;
}
return result;
}
private static int typeref_tokengen = 0x01ffffff;
private static int typedef_tokengen = 0x02ffffff;
private static int typespec_tokengen = 0x1bffffff;
private static int memberref_tokengen = 0x0affffff;
private static int methoddef_tokengen = 0x06ffffff;
private Dictionary<MemberInfo, int>? inst_tokens, inst_tokens_open;
//
// Assign a pseudo token to the various TypeBuilderInst objects, so the runtime
// doesn't have to deal with them.
// For Run assemblies, the tokens will not be fixed up, so the runtime will
// still encounter these objects, it will resolve them by calling their
// RuntimeResolve () methods.
//
private int GetPseudoToken(MemberInfo member, bool create_open_instance)
{
int token;
Dictionary<MemberInfo, int>? dict = create_open_instance ? inst_tokens_open : inst_tokens;
if (dict == null)
{
dict = new Dictionary<MemberInfo, int>(ReferenceEqualityComparer.Instance);
if (create_open_instance)
inst_tokens_open = dict;
else
inst_tokens = dict;
}
else if (dict.TryGetValue(member, out token))
{
return token;
}
// Count backwards to avoid collisions with the tokens
// allocated by the runtime
if (member is TypeBuilderInstantiation || member is SymbolType)
token = typespec_tokengen--;
else if (member is FieldOnTypeBuilderInst)
token = memberref_tokengen--;
else if (member is ConstructorOnTypeBuilderInst)
token = memberref_tokengen--;
else if (member is MethodOnTypeBuilderInst)
token = memberref_tokengen--;
else if (member is FieldBuilder)
token = memberref_tokengen--;
else if (member is TypeBuilder tb)
{
if (create_open_instance && tb.ContainsGenericParameters)
token = typespec_tokengen--;
else if (member.Module == this)
token = typedef_tokengen--;
else
token = typeref_tokengen--;
}
else if (member is EnumBuilder eb)
{
token = GetPseudoToken(eb.GetTypeBuilder(), create_open_instance);
dict[member] = token;
// n.b. don't register with the runtime, the TypeBuilder already did it.
return token;
}
else if (member is ConstructorBuilder cb)
{
if (member.Module == this && !cb.TypeBuilder.ContainsGenericParameters)
token = methoddef_tokengen--;
else
token = memberref_tokengen--;
}
else if (member is MethodBuilder mb)
{
if (member.Module == this && !mb.TypeBuilder.ContainsGenericParameters && !mb.IsGenericMethodDefinition)
token = methoddef_tokengen--;
else
token = memberref_tokengen--;
}
else if (member is GenericTypeParameterBuilder)
{
token = typespec_tokengen--;
}
else
throw new NotImplementedException();
dict[member] = token;
RegisterToken(member, token);
return token;
}
internal int GetToken(MemberInfo member)
{
if (member is ConstructorBuilder || member is MethodBuilder || member is FieldBuilder)
return GetPseudoToken(member, false);
return getToken(this, member, true);
}
internal int GetToken(MemberInfo member, bool create_open_instance)
{
if (member is TypeBuilderInstantiation || member is FieldOnTypeBuilderInst || member is ConstructorOnTypeBuilderInst || member is MethodOnTypeBuilderInst || member is SymbolType || member is FieldBuilder || member is TypeBuilder || member is ConstructorBuilder || member is MethodBuilder || member is GenericTypeParameterBuilder ||
member is EnumBuilder)
return GetPseudoToken(member, create_open_instance);
return getToken(this, member, create_open_instance);
}
internal int GetToken(MethodBase method, IEnumerable<Type> opt_param_types)
{
if (method is ConstructorBuilder || method is MethodBuilder)
return GetPseudoToken(method, false);
if (opt_param_types == null)
return getToken(this, method, true);
var optParamTypes = new List<Type>(opt_param_types);
return getMethodToken(this, method, optParamTypes.ToArray());
}
internal int GetToken(MethodBase method, Type[] opt_param_types)
{
if (method is ConstructorBuilder || method is MethodBuilder)
return GetPseudoToken(method, false);
return getMethodToken(this, method, opt_param_types);
}
internal int GetToken(SignatureHelper helper)
{
return getToken(this, helper, true);
}
/*
* Register the token->obj mapping with the runtime so the Module.Resolve...
* methods will work for obj.
*/
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern void RegisterToken(object obj, int token);
/*
* Returns MemberInfo registered with the given token.
*/
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern object GetRegisteredToken(int token);
internal ITokenGenerator GetTokenGenerator()
{
if (token_gen == null)
token_gen = new ModuleBuilderTokenGenerator(this);
return token_gen;
}
// Called from the runtime to return the corresponding finished reflection object
internal static object RuntimeResolve(object obj)
{
if (obj is MethodBuilder mb)
return mb.RuntimeResolve();
if (obj is ConstructorBuilder cb)
return cb.RuntimeResolve();
if (obj is FieldBuilder fb)
return fb.RuntimeResolve();
if (obj is GenericTypeParameterBuilder gtpb)
return gtpb.RuntimeResolve();
if (obj is FieldOnTypeBuilderInst fotbi)
return fotbi.RuntimeResolve();
if (obj is MethodOnTypeBuilderInst motbi)
return motbi.RuntimeResolve();
if (obj is ConstructorOnTypeBuilderInst cotbi)
return cotbi.RuntimeResolve();
if (obj is Type t)
return t.RuntimeResolve();
throw new NotImplementedException(obj.GetType().FullName);
}
internal string FileName
{
get
{
return fqname;
}
}
internal bool IsMain
{
set
{
is_main = value;
}
}
internal void CreateGlobalType()
{
if (global_type == null)
global_type = new TypeBuilder(this, 0, 1);
}
public override Assembly Assembly
{
get { return assemblyb; }
}
[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
public override string Name
{
get { return name; }
}
public override string ScopeName
{
get { return name; }
}
public override Guid ModuleVersionId
{
get
{
return new Guid(guid);
}
}
public override bool IsResource()
{
return false;
}
internal ModuleBuilder InternalModule => this;
internal IntPtr GetUnderlyingNativeHandle() { return _impl; }
[RequiresUnreferencedCode("Methods might be removed")]
protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
{
if (global_type_created == null)
return null;
if (types == null)
return global_type_created.GetMethod(name);
return global_type_created.GetMethod(name, bindingAttr, binder, callConvention, types, modifiers);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override FieldInfo? ResolveField(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveField(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveMember(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
internal MemberInfo ResolveOrGetRegisteredToken(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
{
ResolveTokenError error;
MemberInfo? m = RuntimeModule.ResolveMemberToken(_impl, metadataToken, RuntimeModule.ptrs_from_types(genericTypeArguments), RuntimeModule.ptrs_from_types(genericMethodArguments), out error);
if (m != null)
return m;
m = GetRegisteredToken(metadataToken) as MemberInfo;
if (m == null)
throw RuntimeModule.resolve_token_exception(this, metadataToken, error, "MemberInfo");
else
return m;
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override MethodBase? ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveMethod(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override string ResolveString(int metadataToken)
{
return RuntimeModule.ResolveString(this, _impl, metadataToken);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override byte[] ResolveSignature(int metadataToken)
{
return RuntimeModule.ResolveSignature(this, _impl, metadataToken);
}
[RequiresUnreferencedCode("Trimming changes metadata tokens")]
public override Type ResolveType(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
{
return RuntimeModule.ResolveType(this, _impl, metadataToken, genericTypeArguments, genericMethodArguments);
}
public override bool Equals(object? obj)
{
return base.Equals(obj);
}
public override int GetHashCode()
{
return base.GetHashCode();
}
public override bool IsDefined(Type attributeType, bool inherit)
{
return base.IsDefined(attributeType, inherit);
}
public override object[] GetCustomAttributes(bool inherit)
{
return GetCustomAttributes(null!, inherit); // FIXME: coreclr doesn't allow null attributeType
}
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
{
if (cattrs == null || cattrs.Length == 0)
return Array.Empty<object>();
if (attributeType is TypeBuilder)
throw new InvalidOperationException("First argument to GetCustomAttributes can't be a TypeBuilder");
List<object> results = new List<object>();
for (int i = 0; i < cattrs.Length; i++)
{
Type t = cattrs[i].Ctor.GetType();
if (t is TypeBuilder)
throw new InvalidOperationException("Can't construct custom attribute for TypeBuilder type");
if (attributeType == null || attributeType.IsAssignableFrom(t))
results.Add(cattrs[i].Invoke());
}
return results.ToArray();
}
public override IList<CustomAttributeData> GetCustomAttributesData()
{
return CustomAttribute.GetCustomAttributesData(this);
}
[RequiresUnreferencedCode("Fields might be removed")]
public override FieldInfo? GetField(string name, BindingFlags bindingAttr)
{
if (global_type_created == null)
throw new InvalidOperationException("Module-level fields cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.");
return global_type_created.GetField(name, bindingAttr);
}
[RequiresUnreferencedCode("Fields might be removed")]
public override FieldInfo[] GetFields(BindingFlags bindingFlags)
{
if (global_type_created == null)
throw new InvalidOperationException("Module-level fields cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.");
return global_type_created.GetFields(bindingFlags);
}
[RequiresUnreferencedCode("Methods might be removed")]
public override MethodInfo[] GetMethods(BindingFlags bindingFlags)
{
if (global_type_created == null)
throw new InvalidOperationException("Module-level methods cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.");
return global_type_created.GetMethods(bindingFlags);
}
public override int MetadataToken
{
get
{
return RuntimeModule.get_MetadataToken(this);
}
}
}
internal sealed class ModuleBuilderTokenGenerator : ITokenGenerator
{
private ModuleBuilder mb;
public ModuleBuilderTokenGenerator(ModuleBuilder mb)
{
this.mb = mb;
}
public int GetToken(string str)
{
return mb.GetToken(str);
}
public int GetToken(MemberInfo member, bool create_open_instance)
{
return mb.GetToken(member, create_open_instance);
}
public int GetToken(MethodBase method, Type[] opt_param_types)
{
return mb.GetToken(method, opt_param_types);
}
public int GetToken(SignatureHelper helper)
{
return mb.GetToken(helper);
}
}
}
#endif
| -1 |
|
dotnet/runtime
| 66,435 |
Add support for the new WASM Exception Handling feature
|
vargaz
| 2022-03-10T05:04:19Z | 2022-03-11T16:50:33Z |
718927c2cdf7f56cd2af40163b1853f8480f821e
|
3e2d483153adcab27033340fa40ad0bcdc3acc2a
|
Add support for the new WASM Exception Handling feature.
|
./src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Polymorphic.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Text.Json.Serialization.Tests
{
public static partial class CustomConverterTests
{
// A polymorphic POCO converter using a type discriminator.
private class PersonConverterWithTypeDiscriminator : JsonConverter<Person>
{
enum TypeDiscriminator
{
Customer = 1,
Employee = 2
}
public override bool CanConvert(Type typeToConvert)
{
return typeof(Person).IsAssignableFrom(typeToConvert);
}
public override Person Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
if (reader.TokenType != JsonTokenType.StartObject)
{
throw new JsonException();
}
reader.Read();
if (reader.TokenType != JsonTokenType.PropertyName)
{
throw new JsonException();
}
string propertyName = reader.GetString();
if (propertyName != "TypeDiscriminator")
{
throw new JsonException();
}
reader.Read();
if (reader.TokenType != JsonTokenType.Number)
{
throw new JsonException();
}
Person value;
TypeDiscriminator typeDiscriminator = (TypeDiscriminator)reader.GetInt32();
switch (typeDiscriminator)
{
case TypeDiscriminator.Customer:
value = new Customer();
break;
case TypeDiscriminator.Employee:
value = new Employee();
break;
default:
throw new JsonException();
}
while (reader.Read())
{
if (reader.TokenType == JsonTokenType.EndObject)
{
return value;
}
if (reader.TokenType == JsonTokenType.PropertyName)
{
propertyName = reader.GetString();
reader.Read();
switch (propertyName)
{
case "CreditLimit":
decimal creditLimit = reader.GetDecimal();
((Customer)value).CreditLimit = creditLimit;
break;
case "OfficeNumber":
string officeNumber = reader.GetString();
((Employee)value).OfficeNumber = officeNumber;
break;
case "Name":
string name = reader.GetString();
value.Name = name;
break;
}
}
}
throw new JsonException();
}
public override void Write(Utf8JsonWriter writer, Person value, JsonSerializerOptions options)
{
writer.WriteStartObject();
if (value is Customer)
{
writer.WriteNumber("TypeDiscriminator", (int)TypeDiscriminator.Customer);
writer.WriteNumber("CreditLimit", ((Customer)value).CreditLimit);
}
else if (value is Employee)
{
writer.WriteNumber("TypeDiscriminator", (int)TypeDiscriminator.Employee);
writer.WriteString("OfficeNumber", ((Employee)value).OfficeNumber);
}
writer.WriteString("Name", value.Name);
writer.WriteEndObject();
}
}
[Fact]
public static void PersonConverterPolymorphicTypeDiscriminator()
{
const string customerJson = @"{""TypeDiscriminator"":1,""CreditLimit"":100.00,""Name"":""C""}";
const string employeeJson = @"{""TypeDiscriminator"":2,""OfficeNumber"":""77a"",""Name"":""E""}";
var options = new JsonSerializerOptions();
options.Converters.Add(new PersonConverterWithTypeDiscriminator());
{
Person person = JsonSerializer.Deserialize<Person>(customerJson, options);
Assert.IsType<Customer>(person);
Assert.Equal(100, ((Customer)person).CreditLimit);
Assert.Equal("C", person.Name);
string json = JsonSerializer.Serialize(person, options);
Assert.Equal(customerJson, json);
}
{
Person person = JsonSerializer.Deserialize<Person>(employeeJson, options);
Assert.IsType<Employee>(person);
Assert.Equal("77a", ((Employee)person).OfficeNumber);
Assert.Equal("E", person.Name);
string json = JsonSerializer.Serialize(person, options);
Assert.Equal(employeeJson, json);
}
}
[Fact]
public static void NullPersonConverterPolymorphicTypeDiscriminator()
{
var options = new JsonSerializerOptions();
options.Converters.Add(new PersonConverterWithTypeDiscriminator());
Person person = JsonSerializer.Deserialize<Person>("null");
Assert.Null(person);
}
// A converter that can serialize an abstract Person type.
private class PersonPolymorphicSerializerConverter : JsonConverter<Person>
{
public override Person Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
throw new NotSupportedException($"Deserializing not supported. Type={typeToConvert}.");
}
public override void Write(Utf8JsonWriter writer, Person value, JsonSerializerOptions options)
{
JsonSerializer.Serialize(writer, value, value.GetType(), options);
}
}
[Fact]
public static void PersonConverterSerializerPolymorphic()
{
var options = new JsonSerializerOptions();
options.Converters.Add(new PersonPolymorphicSerializerConverter());
Customer customer = new Customer
{
Name = "C",
CreditLimit = 100
};
{
// Verify the polymorphic case.
Person person = customer;
string json = JsonSerializer.Serialize(person, options);
Assert.Contains(@"""CreditLimit"":100", json);
Assert.Contains(@"""Name"":""C""", json);
Assert.Throws<NotSupportedException>(() => JsonSerializer.Deserialize<Person>(json, options));
string arrayJson = JsonSerializer.Serialize(new Person[] { person }, options);
Assert.Contains(@"""CreditLimit"":100", arrayJson);
Assert.Contains(@"""Name"":""C""", arrayJson);
Assert.Throws<NotSupportedException>(() => JsonSerializer.Deserialize<Person[]>(arrayJson, options));
}
{
// Ensure (de)serialization still works when using a Person-derived type. This does not call the custom converter.
string json = JsonSerializer.Serialize(customer, options);
Assert.Contains(@"""CreditLimit"":100", json);
Assert.Contains(@"""Name"":""C""", json);
customer = JsonSerializer.Deserialize<Customer>(json, options);
Assert.Equal(100, customer.CreditLimit);
Assert.Equal("C", customer.Name);
string arrayJson = JsonSerializer.Serialize(new Customer[] { customer }, options);
Assert.Contains(@"""CreditLimit"":100", arrayJson);
Assert.Contains(@"""Name"":""C""", arrayJson);
Customer[] customers = JsonSerializer.Deserialize<Customer[]>(arrayJson, options);
Assert.Equal(100, customers[0].CreditLimit);
Assert.Equal("C", customers[0].Name);
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Text.Json.Serialization.Tests
{
public static partial class CustomConverterTests
{
// A polymorphic POCO converter using a type discriminator.
private class PersonConverterWithTypeDiscriminator : JsonConverter<Person>
{
enum TypeDiscriminator
{
Customer = 1,
Employee = 2
}
public override bool CanConvert(Type typeToConvert)
{
return typeof(Person).IsAssignableFrom(typeToConvert);
}
public override Person Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
if (reader.TokenType != JsonTokenType.StartObject)
{
throw new JsonException();
}
reader.Read();
if (reader.TokenType != JsonTokenType.PropertyName)
{
throw new JsonException();
}
string propertyName = reader.GetString();
if (propertyName != "TypeDiscriminator")
{
throw new JsonException();
}
reader.Read();
if (reader.TokenType != JsonTokenType.Number)
{
throw new JsonException();
}
Person value;
TypeDiscriminator typeDiscriminator = (TypeDiscriminator)reader.GetInt32();
switch (typeDiscriminator)
{
case TypeDiscriminator.Customer:
value = new Customer();
break;
case TypeDiscriminator.Employee:
value = new Employee();
break;
default:
throw new JsonException();
}
while (reader.Read())
{
if (reader.TokenType == JsonTokenType.EndObject)
{
return value;
}
if (reader.TokenType == JsonTokenType.PropertyName)
{
propertyName = reader.GetString();
reader.Read();
switch (propertyName)
{
case "CreditLimit":
decimal creditLimit = reader.GetDecimal();
((Customer)value).CreditLimit = creditLimit;
break;
case "OfficeNumber":
string officeNumber = reader.GetString();
((Employee)value).OfficeNumber = officeNumber;
break;
case "Name":
string name = reader.GetString();
value.Name = name;
break;
}
}
}
throw new JsonException();
}
public override void Write(Utf8JsonWriter writer, Person value, JsonSerializerOptions options)
{
writer.WriteStartObject();
if (value is Customer)
{
writer.WriteNumber("TypeDiscriminator", (int)TypeDiscriminator.Customer);
writer.WriteNumber("CreditLimit", ((Customer)value).CreditLimit);
}
else if (value is Employee)
{
writer.WriteNumber("TypeDiscriminator", (int)TypeDiscriminator.Employee);
writer.WriteString("OfficeNumber", ((Employee)value).OfficeNumber);
}
writer.WriteString("Name", value.Name);
writer.WriteEndObject();
}
}
[Fact]
public static void PersonConverterPolymorphicTypeDiscriminator()
{
const string customerJson = @"{""TypeDiscriminator"":1,""CreditLimit"":100.00,""Name"":""C""}";
const string employeeJson = @"{""TypeDiscriminator"":2,""OfficeNumber"":""77a"",""Name"":""E""}";
var options = new JsonSerializerOptions();
options.Converters.Add(new PersonConverterWithTypeDiscriminator());
{
Person person = JsonSerializer.Deserialize<Person>(customerJson, options);
Assert.IsType<Customer>(person);
Assert.Equal(100, ((Customer)person).CreditLimit);
Assert.Equal("C", person.Name);
string json = JsonSerializer.Serialize(person, options);
Assert.Equal(customerJson, json);
}
{
Person person = JsonSerializer.Deserialize<Person>(employeeJson, options);
Assert.IsType<Employee>(person);
Assert.Equal("77a", ((Employee)person).OfficeNumber);
Assert.Equal("E", person.Name);
string json = JsonSerializer.Serialize(person, options);
Assert.Equal(employeeJson, json);
}
}
[Fact]
public static void NullPersonConverterPolymorphicTypeDiscriminator()
{
var options = new JsonSerializerOptions();
options.Converters.Add(new PersonConverterWithTypeDiscriminator());
Person person = JsonSerializer.Deserialize<Person>("null");
Assert.Null(person);
}
// A converter that can serialize an abstract Person type.
private class PersonPolymorphicSerializerConverter : JsonConverter<Person>
{
public override Person Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
throw new NotSupportedException($"Deserializing not supported. Type={typeToConvert}.");
}
public override void Write(Utf8JsonWriter writer, Person value, JsonSerializerOptions options)
{
JsonSerializer.Serialize(writer, value, value.GetType(), options);
}
}
[Fact]
public static void PersonConverterSerializerPolymorphic()
{
var options = new JsonSerializerOptions();
options.Converters.Add(new PersonPolymorphicSerializerConverter());
Customer customer = new Customer
{
Name = "C",
CreditLimit = 100
};
{
// Verify the polymorphic case.
Person person = customer;
string json = JsonSerializer.Serialize(person, options);
Assert.Contains(@"""CreditLimit"":100", json);
Assert.Contains(@"""Name"":""C""", json);
Assert.Throws<NotSupportedException>(() => JsonSerializer.Deserialize<Person>(json, options));
string arrayJson = JsonSerializer.Serialize(new Person[] { person }, options);
Assert.Contains(@"""CreditLimit"":100", arrayJson);
Assert.Contains(@"""Name"":""C""", arrayJson);
Assert.Throws<NotSupportedException>(() => JsonSerializer.Deserialize<Person[]>(arrayJson, options));
}
{
// Ensure (de)serialization still works when using a Person-derived type. This does not call the custom converter.
string json = JsonSerializer.Serialize(customer, options);
Assert.Contains(@"""CreditLimit"":100", json);
Assert.Contains(@"""Name"":""C""", json);
customer = JsonSerializer.Deserialize<Customer>(json, options);
Assert.Equal(100, customer.CreditLimit);
Assert.Equal("C", customer.Name);
string arrayJson = JsonSerializer.Serialize(new Customer[] { customer }, options);
Assert.Contains(@"""CreditLimit"":100", arrayJson);
Assert.Contains(@"""Name"":""C""", arrayJson);
Customer[] customers = JsonSerializer.Deserialize<Customer[]>(arrayJson, options);
Assert.Equal(100, customers[0].CreditLimit);
Assert.Equal("C", customers[0].Name);
}
}
}
}
| -1 |
|
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./eng/generators.targets
|
<Project>
<PropertyGroup>
<EnableLibraryImportGenerator Condition="'$(EnableLibraryImportGenerator)' == ''
and '$(MSBuildProjectName)' == 'System.Private.CoreLib'">true</EnableLibraryImportGenerator>
<IncludeLibraryImportGeneratorSources Condition="'$(IncludeLibraryImportGeneratorSources)' == ''">true</IncludeLibraryImportGeneratorSources>
</PropertyGroup>
<ItemGroup>
<EnabledGenerators Include="LibraryImportGenerator" Condition="'$(EnableLibraryImportGenerator)' == 'true'" />
<!-- If the current project is not System.Private.CoreLib, we enable the LibraryImportGenerator source generator
when the project is a C# source project that either:
- references System.Private.CoreLib, or
- references System.Runtime.InteropServices -->
<EnabledGenerators Include="LibraryImportGenerator"
Condition="'$(EnableLibraryImportGenerator)' == ''
and '$(IsSourceProject)' == 'true'
and '$(MSBuildProjectExtension)' == '.csproj'
and (
('@(Reference)' != ''
and @(Reference->AnyHaveMetadataValue('Identity', 'System.Runtime.InteropServices')))
or ('@(ProjectReference)' != ''
and @(ProjectReference->AnyHaveMetadataValue('Identity', '$(CoreLibProject)')))
or ('$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)'
and '$(DisableImplicitAssemblyReferences)' == 'false'))" />
<EnabledGenerators Include="LibraryImportGenerator"
Condition="'$(EnableLibraryImportGenerator)' == ''
and '$(IsSourceProject)' == 'true'
and '$(MSBuildProjectExtension)' == '.csproj'
and ('$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == '.NETFramework' or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '$(NetCoreAppCurrentVersion)'))))" />
</ItemGroup>
<!-- Use this complex ItemGroup-based filtering to add the ProjectReference to make sure dotnet/runtime stays compatible with NuGet Static Graph Restore. -->
<ItemGroup Condition="'@(EnabledGenerators)' != ''
and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'LibraryImportGenerator'))">
<ProjectReference
Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\LibraryImportGenerator\LibraryImportGenerator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
<ProjectReference
Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup Condition="'@(EnabledGenerators)' != ''
and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'LibraryImportGenerator'))
and '$(IncludeLibraryImportGeneratorSources)' == 'true'">
<Compile Include="$(LibrariesProjectRoot)Common\src\System\Runtime\InteropServices\LibraryImportAttribute.cs" />
<Compile Include="$(LibrariesProjectRoot)Common\src\System\Runtime\InteropServices\StringMarshalling.cs" />
<!-- Only add the following files if we are on the latest TFM (that is, net7). -->
<Compile Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)'" Include="$(LibrariesProjectRoot)Common\src\System\Runtime\InteropServices\GeneratedMarshallingAttribute.cs" />
<!-- Only add the following files if we are on the latest TFM (that is, net7) and the project is SPCL or has references to System.Runtime.CompilerServices.Unsafe and System.Memory -->
<Compile Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)'
and (
'$(MSBuildProjectName)' == 'System.Private.CoreLib'
or '$(EnableLibraryImportGenerator)' == 'true'
or ('@(Reference)' != ''
and @(Reference->AnyHaveMetadataValue('Identity', 'System.Memory')))
or ('@(ProjectReference)' != ''
and @(ProjectReference->AnyHaveMetadataValue('Identity', '$(CoreLibProject)'))))" Include="$(LibrariesProjectRoot)Common\src\System\Runtime\InteropServices\ArrayMarshaller.cs" />
</ItemGroup>
<ItemGroup>
<EnabledGenerators Include="RegexGenerator" Condition="'$(EnableRegexGenerator)' == 'true'" />
</ItemGroup>
<!-- Use this complex ItemGroup-based filtering to add the ProjectReference to make sure dotnet/runtime stays compatible with NuGet Static Graph Restore. -->
<ItemGroup Condition="'@(EnabledGenerators)' != ''
and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'RegexGenerator'))">
<ProjectReference
Include="$(LibrariesProjectRoot)System.Text.RegularExpressions/gen/System.Text.RegularExpressions.Generator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<Target Name="ConfigureGenerators"
DependsOnTargets="ConfigureLibraryImportGenerator"
BeforeTargets="CoreCompile" />
<!-- Microsoft.Interop.LibraryImportGenerator -->
<Target Name="ConfigureLibraryImportGenerator"
Condition="'@(EnabledGenerators)' != '' and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'LibraryImportGenerator'))"
DependsOnTargets="ResolveProjectReferences"
BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun">
<PropertyGroup>
<LibraryImportGenerator_UseMarshalType>true</LibraryImportGenerator_UseMarshalType>
</PropertyGroup>
</Target>
<Import Project="$(LibrariesProjectRoot)System.Runtime.InteropServices/gen/LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator.props" />
</Project>
|
<Project>
<PropertyGroup>
<EnableLibraryImportGenerator Condition="'$(EnableLibraryImportGenerator)' == ''
and '$(MSBuildProjectName)' == 'System.Private.CoreLib'">true</EnableLibraryImportGenerator>
<IncludeLibraryImportGeneratorSources Condition="'$(IncludeLibraryImportGeneratorSources)' == ''">true</IncludeLibraryImportGeneratorSources>
</PropertyGroup>
<ItemGroup>
<EnabledGenerators Include="LibraryImportGenerator" Condition="'$(EnableLibraryImportGenerator)' == 'true'" />
<!-- If the current project is not System.Private.CoreLib, we enable the LibraryImportGenerator source generator
when the project is a C# source project that either:
- references System.Private.CoreLib, or
- references System.Runtime.InteropServices -->
<EnabledGenerators Include="LibraryImportGenerator"
Condition="'$(EnableLibraryImportGenerator)' == ''
and '$(IsSourceProject)' == 'true'
and '$(MSBuildProjectExtension)' == '.csproj'
and (
('@(Reference)' != ''
and @(Reference->AnyHaveMetadataValue('Identity', 'System.Runtime.InteropServices')))
or ('@(ProjectReference)' != ''
and @(ProjectReference->AnyHaveMetadataValue('Identity', '$(CoreLibProject)')))
or ('$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)'
and '$(DisableImplicitAssemblyReferences)' == 'false'))" />
<EnabledGenerators Include="LibraryImportGenerator"
Condition="'$(EnableLibraryImportGenerator)' == ''
and '$(IsSourceProject)' == 'true'
and '$(MSBuildProjectExtension)' == '.csproj'
and ('$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == '.NETFramework' or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '$(NetCoreAppCurrentVersion)'))))" />
</ItemGroup>
<!-- Use this complex ItemGroup-based filtering to add the ProjectReference to make sure dotnet/runtime stays compatible with NuGet Static Graph Restore. -->
<ItemGroup Condition="'@(EnabledGenerators)' != ''
and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'LibraryImportGenerator'))">
<ProjectReference
Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\LibraryImportGenerator\LibraryImportGenerator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
<ProjectReference
Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup Condition="'@(EnabledGenerators)' != ''
and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'LibraryImportGenerator'))
and '$(IncludeLibraryImportGeneratorSources)' == 'true'">
<!-- Only add the following files if we are not on the latest TFM. -->
<Compile Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' != '$(TargetFrameworkMoniker)'"
Include="$(CoreLibSharedDir)System\Runtime\InteropServices\LibraryImportAttribute.cs" />
<Compile Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' != '$(TargetFrameworkMoniker)'"
Include="$(CoreLibSharedDir)System\Runtime\InteropServices\StringMarshalling.cs" />
<!-- Only add the following files if we are on the latest TFM (that is, net7). -->
<Compile Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)'" Include="$(LibrariesProjectRoot)Common\src\System\Runtime\InteropServices\GeneratedMarshallingAttribute.cs" />
<!-- Only add the following files if we are on the latest TFM (that is, net7) and the project is SPCL or has references to System.Runtime.CompilerServices.Unsafe and System.Memory -->
<Compile Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)'
and (
'$(MSBuildProjectName)' == 'System.Private.CoreLib'
or '$(EnableLibraryImportGenerator)' == 'true'
or ('@(Reference)' != ''
and @(Reference->AnyHaveMetadataValue('Identity', 'System.Memory')))
or ('@(ProjectReference)' != ''
and @(ProjectReference->AnyHaveMetadataValue('Identity', '$(CoreLibProject)'))))" Include="$(LibrariesProjectRoot)Common\src\System\Runtime\InteropServices\ArrayMarshaller.cs" />
</ItemGroup>
<ItemGroup>
<EnabledGenerators Include="RegexGenerator" Condition="'$(EnableRegexGenerator)' == 'true'" />
</ItemGroup>
<!-- Use this complex ItemGroup-based filtering to add the ProjectReference to make sure dotnet/runtime stays compatible with NuGet Static Graph Restore. -->
<ItemGroup Condition="'@(EnabledGenerators)' != ''
and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'RegexGenerator'))">
<ProjectReference
Include="$(LibrariesProjectRoot)System.Text.RegularExpressions/gen/System.Text.RegularExpressions.Generator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<Target Name="ConfigureGenerators"
DependsOnTargets="ConfigureLibraryImportGenerator"
BeforeTargets="CoreCompile" />
<!-- Microsoft.Interop.LibraryImportGenerator -->
<Target Name="ConfigureLibraryImportGenerator"
Condition="'@(EnabledGenerators)' != '' and @(EnabledGenerators->AnyHaveMetadataValue('Identity', 'LibraryImportGenerator'))"
DependsOnTargets="ResolveProjectReferences"
BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun">
<PropertyGroup>
<LibraryImportGenerator_UseMarshalType>true</LibraryImportGenerator_UseMarshalType>
</PropertyGroup>
</Target>
<Import Project="$(LibrariesProjectRoot)System.Runtime.InteropServices/gen/LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator.props" />
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent);net48</TargetFrameworks>
<!--
We wish to test operations that would result in
"Operator '-' cannot be applied to operands of type 'ushort' and 'EnumArithmeticTests.UInt16Enum'"
-->
<Features>$(Features.Replace('strict', '')</Features>
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(TargetOS)' == 'Browser'">true</DebuggerSupport>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="AccessTests.cs" />
<Compile Include="ArrayHandling.cs" />
<Compile Include="AssignmentTests.cs" />
<Compile Include="BindingErrors.cs" />
<Compile Include="DynamicDebuggerProxyTests.cs" />
<Compile Include="EnumUnaryOperationTests.cs" />
<Compile Include="ExplicitConversionTests.cs" />
<Compile Include="Helpers.cs" />
<Compile Include="ImplicitConversionTests.cs" />
<Compile Include="CSharpArgumentInfoTests.cs" />
<Compile Include="DefaultParameterTests.cs" />
<Compile Include="DelegateInDynamicTests.cs" />
<Compile Include="EnumArithmeticTests.cs" />
<Compile Include="IndexingTests.cs" />
<Compile Include="IntegerBinaryOperationTests.cs" />
<Compile Include="IntegerUnaryOperationTests.cs" />
<Compile Include="IsEventTests.cs" />
<Compile Include="NamedArgumentTests.cs" />
<Compile Include="NullableEnumUnaryOperationTest.cs" />
<Compile Include="RuntimeBinderExceptionTests.cs" />
<Compile Include="RuntimeBinderInternalCompilerExceptionTests.cs" />
<Compile Include="RuntimeBinderTests.cs" />
<Compile Include="UserDefinedShortCircuitOperators.cs" />
<Compile Include="VarArgsTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<Compile Include="AccessTests.netcoreapp.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent);net48</TargetFrameworks>
<!--
We wish to test operations that would result in
"Operator '-' cannot be applied to operands of type 'ushort' and 'EnumArithmeticTests.UInt16Enum'"
-->
<Features>$(Features.Replace('strict', '')</Features>
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(TargetOS)' == 'Browser'">true</DebuggerSupport>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="AccessTests.cs" />
<Compile Include="ArrayHandling.cs" />
<Compile Include="AssignmentTests.cs" />
<Compile Include="BindingErrors.cs" />
<Compile Include="DynamicDebuggerProxyTests.cs" />
<Compile Include="EnumUnaryOperationTests.cs" />
<Compile Include="ExplicitConversionTests.cs" />
<Compile Include="Helpers.cs" />
<Compile Include="ImplicitConversionTests.cs" />
<Compile Include="CSharpArgumentInfoTests.cs" />
<Compile Include="DefaultParameterTests.cs" />
<Compile Include="DelegateInDynamicTests.cs" />
<Compile Include="EnumArithmeticTests.cs" />
<Compile Include="IndexingTests.cs" />
<Compile Include="IntegerBinaryOperationTests.cs" />
<Compile Include="IntegerUnaryOperationTests.cs" />
<Compile Include="IsEventTests.cs" />
<Compile Include="NamedArgumentTests.cs" />
<Compile Include="NullableEnumUnaryOperationTest.cs" />
<Compile Include="RuntimeBinderExceptionTests.cs" />
<Compile Include="RuntimeBinderInternalCompilerExceptionTests.cs" />
<Compile Include="RuntimeBinderTests.cs" />
<Compile Include="UserDefinedShortCircuitOperators.cs" />
<Compile Include="VarArgsTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<Compile Include="AccessTests.netcoreapp.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft.VisualBasic.Core.Tests.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
<TargetFrameworks>$(NetCoreAppCurrent);net48</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="AssemblyAttributes.cs" />
<Compile Include="ByteTypeTests.cs" />
<Compile Include="CharTypeTests.cs" />
<Compile Include="CollectionsTests.cs" />
<Compile Include="CompilerServices\BooleanTypeTests.cs" />
<Compile Include="CompilerServices\DoubleTypeTests.cs" />
<Compile Include="CompilerServices\DecimalTypeTests.cs" />
<Compile Include="CompilerServices\VersionedTests.cs" />
<Compile Include="ConversionsTests.cs" />
<Compile Include="ConversionTests.cs" />
<Compile Include="DateTypeTests.cs" />
<Compile Include="DateAndTimeTests.cs" />
<Compile Include="ErrObjectTests.cs" />
<Compile Include="FileSystemTests.cs" />
<Compile Include="FinancialTests.cs" />
<Compile Include="IConvertibleWrapper.cs" />
<Compile Include="InformationTests.cs" />
<Compile Include="IntegerTypeTests.cs" />
<Compile Include="InteractionTests.cs" />
<Compile Include="LateBindingTests.cs" />
<Compile Include="LikeOperatorTests.cs" />
<Compile Include="LongTypeTests.cs" />
<Compile Include="Microsoft\VisualBasic\ComClassAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\DesignerGeneratedAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\OptionCompareAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\OptionTextAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\StandardModuleAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\StructUtilsTests.cs" />
<Compile Include="Microsoft\VisualBasic\FileIO\FileSystemTests.cs" />
<Compile Include="Microsoft\VisualBasic\FileIO\SpecialDirectoriesTests.cs" />
<Compile Include="Microsoft\VisualBasic\FileIO\TextFieldParserTests.cs" />
<Compile Include="Microsoft\VisualBasic\HideModuleNameAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\MyGroupCollectionAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\VBFixedArrayAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\VBFixedStringAttributeTests.cs" />
<Compile Include="NewLateBindingTests.cs" />
<Compile Include="ObjectTypeTests.cs" />
<Compile Include="OperatorsTests.cs" />
<Compile Include="OperatorsTests.Comparison.cs" />
<Compile Include="ProjectDataTests.cs" />
<Compile Include="ShortTypeTests.cs" />
<Compile Include="SingleTypeTests.cs" />
<Compile Include="StringsTests.cs" />
<Compile Include="StringTypeTests.cs" />
<Compile Include="UtilsTests.cs" />
<Compile Include="VBMathTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encoding.CodePages\src\System.Text.Encoding.CodePages.csproj" />
<Reference Include="Microsoft.VisualBasic" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
<TargetFrameworks>$(NetCoreAppCurrent);net48</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="AssemblyAttributes.cs" />
<Compile Include="ByteTypeTests.cs" />
<Compile Include="CharTypeTests.cs" />
<Compile Include="CollectionsTests.cs" />
<Compile Include="CompilerServices\BooleanTypeTests.cs" />
<Compile Include="CompilerServices\DoubleTypeTests.cs" />
<Compile Include="CompilerServices\DecimalTypeTests.cs" />
<Compile Include="CompilerServices\VersionedTests.cs" />
<Compile Include="ConversionsTests.cs" />
<Compile Include="ConversionTests.cs" />
<Compile Include="DateTypeTests.cs" />
<Compile Include="DateAndTimeTests.cs" />
<Compile Include="ErrObjectTests.cs" />
<Compile Include="FileSystemTests.cs" />
<Compile Include="FinancialTests.cs" />
<Compile Include="IConvertibleWrapper.cs" />
<Compile Include="InformationTests.cs" />
<Compile Include="IntegerTypeTests.cs" />
<Compile Include="InteractionTests.cs" />
<Compile Include="LateBindingTests.cs" />
<Compile Include="LikeOperatorTests.cs" />
<Compile Include="LongTypeTests.cs" />
<Compile Include="Microsoft\VisualBasic\ComClassAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\DesignerGeneratedAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\OptionCompareAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\OptionTextAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\StandardModuleAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\CompilerServices\StructUtilsTests.cs" />
<Compile Include="Microsoft\VisualBasic\FileIO\FileSystemTests.cs" />
<Compile Include="Microsoft\VisualBasic\FileIO\SpecialDirectoriesTests.cs" />
<Compile Include="Microsoft\VisualBasic\FileIO\TextFieldParserTests.cs" />
<Compile Include="Microsoft\VisualBasic\HideModuleNameAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\MyGroupCollectionAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\VBFixedArrayAttributeTests.cs" />
<Compile Include="Microsoft\VisualBasic\VBFixedStringAttributeTests.cs" />
<Compile Include="NewLateBindingTests.cs" />
<Compile Include="ObjectTypeTests.cs" />
<Compile Include="OperatorsTests.cs" />
<Compile Include="OperatorsTests.Comparison.cs" />
<Compile Include="ProjectDataTests.cs" />
<Compile Include="ShortTypeTests.cs" />
<Compile Include="SingleTypeTests.cs" />
<Compile Include="StringsTests.cs" />
<Compile Include="StringTypeTests.cs" />
<Compile Include="UtilsTests.cs" />
<Compile Include="VBMathTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encoding.CodePages\src\System.Text.Encoding.CodePages.csproj" />
<Reference Include="Microsoft.VisualBasic" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<CLSCompliant>false</CLSCompliant>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">$(DefineConstants);ALLOW_PARTIALLY_TRUSTED_CALLERS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Diagnostics.DiagnosticSource.Typeforwards.netcoreapp.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"/>
<Compile Include="System.Diagnostics.DiagnosticSource.cs" />
<Compile Include="System.Diagnostics.DiagnosticSourceActivity.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'"
Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime\ref\System.Runtime.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFramework)' != '$(NetCoreAppCurrent)'">
<Reference Include="System.Runtime" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Reference Include="System.Runtime" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<CLSCompliant>false</CLSCompliant>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">$(DefineConstants);ALLOW_PARTIALLY_TRUSTED_CALLERS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Diagnostics.DiagnosticSource.Typeforwards.netcoreapp.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"/>
<Compile Include="System.Diagnostics.DiagnosticSource.cs" />
<Compile Include="System.Diagnostics.DiagnosticSourceActivity.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime\ref\System.Runtime.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFramework)' != '$(NetCoreAppCurrent)'">
<Reference Include="System.Runtime" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Reference Include="System.Runtime" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Diagnostics.DiagnosticSource/src/System.Diagnostics.DiagnosticSource.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLSCompliant>false</CLSCompliant>
<NoWarn>$(NoWarn);SA1205;CA1845</NoWarn>
<Nullable>enable</Nullable>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<EnableTrimAnalyzer Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">false</EnableTrimAnalyzer>
<IsPackable>true</IsPackable>
<PackageDescription>Provides Classes that allow you to decouple code logging rich (unserializable) diagnostics/telemetry (e.g. framework) from code that consumes it (e.g. tools)
Commonly Used Types:
System.Diagnostics.DiagnosticListener
System.Diagnostics.DiagnosticSource</PackageDescription>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">$(DefineConstants);ALLOW_PARTIALLY_TRUSTED_CALLERS;ENABLE_HTTP_HANDLER</DefineConstants>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">$(DefineConstants);W3C_DEFAULT_ID_FORMAT;MEMORYMARSHAL_SUPPORT;OS_ISBROWSER_SUPPORT</DefineConstants>
<IncludePlatformAttributes>true</IncludePlatformAttributes>
</PropertyGroup>
<ItemGroup>
<Compile Include="System\Diagnostics\DiagnosticSource.cs" />
<Compile Include="System\Diagnostics\DiagnosticListener.cs" />
<Compile Include="System\Diagnostics\DiagnosticSourceEventSource.cs" />
<None Include="DiagnosticSourceUsersGuide.md" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" />
<Compile Include="System\Diagnostics\Activity.cs" />
<Compile Include="System\Diagnostics\ActivityStatusCode.cs" />
<Compile Include="System\Diagnostics\ActivityTagsCollection.cs" />
<Compile Include="System\Diagnostics\ActivityContext.cs" />
<Compile Include="System\Diagnostics\ActivityCreationOptions.cs" />
<Compile Include="System\Diagnostics\ActivitySamplingResult.cs" />
<Compile Include="System\Diagnostics\ActivityEvent.cs" />
<Compile Include="System\Diagnostics\ActivityKind.cs" />
<Compile Include="System\Diagnostics\ActivityLink.cs" />
<Compile Include="System\Diagnostics\ActivityListener.cs" />
<Compile Include="System\Diagnostics\ActivitySource.cs" />
<Compile Include="System\Diagnostics\DiagnosticSourceActivity.cs" />
<Compile Include="System\Diagnostics\DiagLinkedList.cs" />
<Compile Include="System\Diagnostics\DistributedContextPropagator.cs" />
<Compile Include="System\Diagnostics\LegacyPropagator.cs" />
<Compile Include="System\Diagnostics\NoOutputPropagator.cs" />
<Compile Include="System\Diagnostics\PassThroughPropagator.cs" />
<Compile Include="System\Diagnostics\RandomNumberGenerator.cs" />
<Compile Include="System\Diagnostics\Metrics\AggregationManager.cs" />
<Compile Include="System\Diagnostics\Metrics\Aggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\AggregatorStore.cs" />
<Compile Include="System\Diagnostics\Metrics\Counter.cs" />
<Compile Include="System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\Histogram.cs" />
<Compile Include="System\Diagnostics\Metrics\Instrument.cs" />
<Compile Include="System\Diagnostics\Metrics\Instrument.common.cs" />
<Compile Include="System\Diagnostics\Metrics\Instrument.netcore.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\Instrument.netfx.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\InstrumentState.cs" />
<Compile Include="System\Diagnostics\Metrics\LastValueAggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\Measurement.cs" />
<Compile Include="System\Diagnostics\Metrics\Meter.cs" />
<Compile Include="System\Diagnostics\Metrics\MeterListener.cs" />
<Compile Include="System\Diagnostics\Metrics\MetricsEventSource.cs" />
<Compile Include="System\Diagnostics\Metrics\ObjectSequence.cs" />
<Compile Include="System\Diagnostics\Metrics\ObjectSequence.netcore.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\ObjectSequence.netfx.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\ObservableCounter.cs" />
<Compile Include="System\Diagnostics\Metrics\ObservableGauge.cs" />
<Compile Include="System\Diagnostics\Metrics\ObservableInstrument.cs" />
<Compile Include="System\Diagnostics\Metrics\ObservableUpDownCounter.cs" />
<Compile Include="System\Diagnostics\Metrics\RateAggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\StringSequence.cs" />
<Compile Include="System\Diagnostics\Metrics\StringSequence.netcore.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\StringSequence.netfx.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\TagList.cs" />
<Compile Include="System\Diagnostics\Metrics\UpDownCounter.cs" />
<None Include="ActivityUserGuide.md" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System\Diagnostics\LocalAppContextSwitches.cs" />
<Compile Include="System\Diagnostics\System.Diagnostics.DiagnosticSource.Typeforwards.netcoreapp.cs" />
<Compile Include="$(CommonPath)System\LocalAppContextSwitches.Common.cs">
<Link>Common\System\LocalAppContextSwitches.Common.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="System\Diagnostics\Activity.Current.net46.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' or
'$(TargetFramework)' == 'netstandard2.0'">
<Compile Include="System\Diagnostics\Activity.DateTime.corefx.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System\Diagnostics\Activity.GenerateRootId.netcoreapp.cs" />
<Compile Include="System\Diagnostics\ActivityContext.netcoreapp.cs" />
<Compile Include="System\Diagnostics\ActivityLink.netcoreapp.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="System\Diagnostics\Activity.GenerateRootId.netfx.cs" />
<Compile Include="System\Diagnostics\ActivityContext.netfx.cs" />
<Compile Include="System\Diagnostics\ActivityLink.netfx.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Include="System\Diagnostics\HttpHandlerDiagnosticListener.cs" />
<Compile Include="AssemblyInfo.netfx.cs" />
<Compile Include="System\Diagnostics\Activity.DateTime.netfx.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Collections" />
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Diagnostics.Tracing" />
<Reference Include="System.Memory" />
<Reference Include="System.Reflection" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.InteropServices" />
<Reference Include="System.Threading" />
<Reference Include="System.Threading.Thread" />
<Reference Include="System.Resources.ResourceManager" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFrameworkVersion)' == 'v6.0'">
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="$(SystemRuntimeCompilerServicesUnsafeVersion)" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLSCompliant>false</CLSCompliant>
<NoWarn>$(NoWarn);SA1205;CA1845</NoWarn>
<Nullable>enable</Nullable>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<EnableTrimAnalyzer Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">false</EnableTrimAnalyzer>
<IsPackable>true</IsPackable>
<PackageDescription>Provides Classes that allow you to decouple code logging rich (unserializable) diagnostics/telemetry (e.g. framework) from code that consumes it (e.g. tools)
Commonly Used Types:
System.Diagnostics.DiagnosticListener
System.Diagnostics.DiagnosticSource</PackageDescription>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">$(DefineConstants);ALLOW_PARTIALLY_TRUSTED_CALLERS;ENABLE_HTTP_HANDLER</DefineConstants>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">$(DefineConstants);W3C_DEFAULT_ID_FORMAT;MEMORYMARSHAL_SUPPORT;OS_ISBROWSER_SUPPORT</DefineConstants>
<IncludePlatformAttributes>true</IncludePlatformAttributes>
</PropertyGroup>
<ItemGroup>
<Compile Include="System\Diagnostics\DiagnosticSource.cs" />
<Compile Include="System\Diagnostics\DiagnosticListener.cs" />
<Compile Include="System\Diagnostics\DiagnosticSourceEventSource.cs" />
<None Include="DiagnosticSourceUsersGuide.md" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" />
<Compile Include="System\Diagnostics\Activity.cs" />
<Compile Include="System\Diagnostics\ActivityStatusCode.cs" />
<Compile Include="System\Diagnostics\ActivityTagsCollection.cs" />
<Compile Include="System\Diagnostics\ActivityContext.cs" />
<Compile Include="System\Diagnostics\ActivityCreationOptions.cs" />
<Compile Include="System\Diagnostics\ActivitySamplingResult.cs" />
<Compile Include="System\Diagnostics\ActivityEvent.cs" />
<Compile Include="System\Diagnostics\ActivityKind.cs" />
<Compile Include="System\Diagnostics\ActivityLink.cs" />
<Compile Include="System\Diagnostics\ActivityListener.cs" />
<Compile Include="System\Diagnostics\ActivitySource.cs" />
<Compile Include="System\Diagnostics\DiagnosticSourceActivity.cs" />
<Compile Include="System\Diagnostics\DiagLinkedList.cs" />
<Compile Include="System\Diagnostics\DistributedContextPropagator.cs" />
<Compile Include="System\Diagnostics\LegacyPropagator.cs" />
<Compile Include="System\Diagnostics\NoOutputPropagator.cs" />
<Compile Include="System\Diagnostics\PassThroughPropagator.cs" />
<Compile Include="System\Diagnostics\RandomNumberGenerator.cs" />
<Compile Include="System\Diagnostics\Metrics\AggregationManager.cs" />
<Compile Include="System\Diagnostics\Metrics\Aggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\AggregatorStore.cs" />
<Compile Include="System\Diagnostics\Metrics\Counter.cs" />
<Compile Include="System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\Histogram.cs" />
<Compile Include="System\Diagnostics\Metrics\Instrument.cs" />
<Compile Include="System\Diagnostics\Metrics\Instrument.common.cs" />
<Compile Include="System\Diagnostics\Metrics\Instrument.netcore.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\Instrument.netfx.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\InstrumentState.cs" />
<Compile Include="System\Diagnostics\Metrics\LastValueAggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\Measurement.cs" />
<Compile Include="System\Diagnostics\Metrics\Meter.cs" />
<Compile Include="System\Diagnostics\Metrics\MeterListener.cs" />
<Compile Include="System\Diagnostics\Metrics\MetricsEventSource.cs" />
<Compile Include="System\Diagnostics\Metrics\ObjectSequence.cs" />
<Compile Include="System\Diagnostics\Metrics\ObjectSequence.netcore.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\ObjectSequence.netfx.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\ObservableCounter.cs" />
<Compile Include="System\Diagnostics\Metrics\ObservableGauge.cs" />
<Compile Include="System\Diagnostics\Metrics\ObservableInstrument.cs" />
<Compile Include="System\Diagnostics\Metrics\ObservableUpDownCounter.cs" />
<Compile Include="System\Diagnostics\Metrics\RateAggregator.cs" />
<Compile Include="System\Diagnostics\Metrics\StringSequence.cs" />
<Compile Include="System\Diagnostics\Metrics\StringSequence.netcore.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\StringSequence.netfx.cs" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
<Compile Include="System\Diagnostics\Metrics\TagList.cs" />
<Compile Include="System\Diagnostics\Metrics\UpDownCounter.cs" />
<None Include="ActivityUserGuide.md" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System\Diagnostics\LocalAppContextSwitches.cs" />
<Compile Include="System\Diagnostics\System.Diagnostics.DiagnosticSource.Typeforwards.netcoreapp.cs" />
<Compile Include="$(CommonPath)System\LocalAppContextSwitches.Common.cs">
<Link>Common\System\LocalAppContextSwitches.Common.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="System\Diagnostics\Activity.Current.net46.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' or
'$(TargetFramework)' == 'netstandard2.0'">
<Compile Include="System\Diagnostics\Activity.DateTime.corefx.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System\Diagnostics\Activity.GenerateRootId.netcoreapp.cs" />
<Compile Include="System\Diagnostics\ActivityContext.netcoreapp.cs" />
<Compile Include="System\Diagnostics\ActivityLink.netcoreapp.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="System\Diagnostics\Activity.GenerateRootId.netfx.cs" />
<Compile Include="System\Diagnostics\ActivityContext.netfx.cs" />
<Compile Include="System\Diagnostics\ActivityLink.netfx.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Include="System\Diagnostics\HttpHandlerDiagnosticListener.cs" />
<Compile Include="AssemblyInfo.netfx.cs" />
<Compile Include="System\Diagnostics\Activity.DateTime.netfx.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Collections" />
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Diagnostics.Tracing" />
<Reference Include="System.Memory" />
<Reference Include="System.Reflection" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.InteropServices" />
<Reference Include="System.Threading" />
<Reference Include="System.Threading.Thread" />
<Reference Include="System.Resources.ResourceManager" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFrameworkVersion)' == 'v6.0'">
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="$(SystemRuntimeCompilerServicesUnsafeVersion)" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
|
<Project>
<PropertyGroup>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>c5ed3c1d-b572-46f1-8f96-522a85ce1179</SharedGUID>
<StringResourcesName Condition="'$(StringResourcesName)' == ''">System.Private.CoreLib.Strings</StringResourcesName>
<GenerateResourcesSubstitutions>true</GenerateResourcesSubstitutions>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace />
</PropertyGroup>
<PropertyGroup>
<Nullable>enable</Nullable>
<IsOSXLike Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true' or '$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'">true</IsOSXLike>
<IsiOSLike Condition="'$(TargetsMacCatalyst)' == 'true' or '$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'">true</IsiOSLike>
<IsMobileLike Condition="'$(TargetsBrowser)' == 'true' or '$(IsiOSLike)' == 'true' or '$(TargetsAndroid)' == 'true'">true</IsMobileLike>
<SupportsArmIntrinsics Condition="'$(Platform)' == 'arm64'">true</SupportsArmIntrinsics>
<SupportsX86Intrinsics Condition="'$(Platform)' == 'x64' or ('$(Platform)' == 'x86' and '$(TargetsUnix)' != 'true')">true</SupportsX86Intrinsics>
<ILLinkSharedDirectory>$(MSBuildThisFileDirectory)ILLink\</ILLinkSharedDirectory>
<IsBigEndian Condition="'$(Platform)' == 's390x'">true</IsBigEndian>
<Is64Bit Condition="'$(Platform)' == 'arm64' or '$(Platform)' == 'x64' or '$(Platform)' == 's390x' or '$(Platform)' == 'loongarch64'">true</Is64Bit>
<UseMinimalGlobalizationData Condition="'$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true' or '$(TargetsBrowser)' == 'true'">true</UseMinimalGlobalizationData>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(IsBigEndian)' == 'true'">$(DefineConstants);BIGENDIAN</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(Is64Bit)' != 'true'">$(DefineConstants);TARGET_32BIT</DefineConstants>
<DefineConstants Condition="'$(Is64Bit)' == 'true'">$(DefineConstants);TARGET_64BIT</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(TargetsUnix)' == 'true'">$(DefineConstants);TARGET_UNIX</DefineConstants>
<DefineConstants Condition="'$(TargetsWindows)' == 'true'">$(DefineConstants);TARGET_WINDOWS</DefineConstants>
<DefineConstants Condition="'$(TargetsOSX)' == 'true'">$(DefineConstants);TARGET_OSX</DefineConstants>
<DefineConstants Condition="'$(TargetsMacCatalyst)' == 'true'">$(DefineConstants);TARGET_MACCATALYST</DefineConstants>
<DefineConstants Condition="'$(TargetsiOS)' == 'true'">$(DefineConstants);TARGET_IOS</DefineConstants>
<DefineConstants Condition="'$(TargetstvOS)' == 'true'">$(DefineConstants);TARGET_TVOS</DefineConstants>
<DefineConstants Condition="'$(TargetsBrowser)' == 'true'">$(DefineConstants);TARGET_BROWSER</DefineConstants>
<DefineConstants Condition="'$(TargetsAndroid)' == 'true'">$(DefineConstants);TARGET_ANDROID</DefineConstants>
<DefineConstants Condition="'$(TargetsLinux)' == 'true'">$(DefineConstants);TARGET_LINUX</DefineConstants>
<DefineConstants Condition="'$(TargetsFreeBSD)' == 'true'">$(DefineConstants);TARGET_FREEBSD</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.Shared.xml" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.LittleEndian.xml" Condition="'$(IsBigEndian)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.32bit.xml" Condition="'$(Is64Bit)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.64bit.xml" Condition="'$(Is64Bit)' == 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.NoArmIntrinsics.xml" Condition="'$(SupportsArmIntrinsics)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.NoX86Intrinsics.xml" Condition="'$(SupportsX86Intrinsics)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.OSX.xml" Condition="'$(IsOSXLike)' == 'true'" />
<ILLinkLinkAttributesXmls Include="$(ILLinkSharedDirectory)ILLink.LinkAttributes.Shared.xml" />
</ItemGroup>
<PropertyGroup>
<ILLinkDescriptorsLibraryBuildXml>$(ILLinkSharedDirectory)ILLink.Descriptors.LibraryBuild.xml</ILLinkDescriptorsLibraryBuildXml>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)Internal\AssemblyAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Padding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Runtime\InteropServices\ComponentActivator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Runtime\InteropServices\IsolatedComponentLoadContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\CriticalHandleMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\CriticalHandleZeroOrMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeWaitHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AccessViolationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Action.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Activator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Activator.RuntimeType.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\AggregateException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppContext.AnyOS.cs" Condition="'$(TargetsBrowser)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppContextConfigHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomain.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomainSetup.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomainUnloadedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ApplicationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ApplicationId.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArgumentException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArgumentNullException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArgumentOutOfRangeException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArithmeticException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Array.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Array.Enumerators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArraySegment.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArrayTypeMismatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AssemblyLoadEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AssemblyLoadEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AsyncCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Attribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AttributeTargets.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AttributeUsageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\BadImageFormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\BitConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Boolean.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\ArrayPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\ArrayPoolEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\Reader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\ReaderBigEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\ReaderLittleEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\WriterBigEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\WriterLittleEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\ConfigurableArrayPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\IMemoryOwner.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\IPinnable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\MemoryHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\MemoryManager.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\OperationStatus.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\StandardFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\FormattingHelpers.CountDigits.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Constants.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\FormattingHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Boolean.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.G.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.L.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.O.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.R.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.E.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.F.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.G.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Float.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Guid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.Default.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.Default.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.X.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\ParserHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Boolean.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Default.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.G.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.O.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.R.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Decimal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Guid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.BigG.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.C.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.LittleG.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpanSplitter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\TlsOverPerCoreLockedStacksArrayPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Utilities.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ByReference.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Byte.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CannotUnloadAppDomainException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Char.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CharEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CLSCompliantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CodeDom\Compiler\GeneratedCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CodeDom\Compiler\IndentedTextWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ArrayList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Comparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\CompatibleComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\ConcurrentQueue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\ConcurrentQueueSegment.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\IProducerConsumerCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\IProducerConsumerCollectionDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\DictionaryEntry.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ArraySortHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\Comparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\Dictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\EqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\HashSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\HashSetEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IAsyncEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IAsyncEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ICollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ICollectionDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IDictionaryDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IInternalStringEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\InsertionBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlyCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlyDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlyList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ISet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlySet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\KeyNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\KeyValuePair.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\List.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\Queue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\QueueDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\RandomizedStringEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\NonRandomizedStringEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ValueListBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\HashHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\HashHelpers.SerializationInfoTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Hashtable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ICollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IDictionaryEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IHashCodeProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IStructuralComparable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IStructuralEquatable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\KeyValuePairs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ListDictionaryInternal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\Collection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\CollectionHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\ReadOnlyCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\ReadOnlyDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\DefaultValueAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\EditorBrowsableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\EditorBrowsableState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\Win32Exception.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Configuration\Assemblies\AssemblyHashAlgorithm.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Configuration\Assemblies\AssemblyVersionCompatibility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Context.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Convert.Base64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Convert.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CoreLib.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CurrentSystemTimeZone.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DataMisalignedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateOnly.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTimeKind.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTimeOffset.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DayOfWeek.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DBNull.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Decimal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Decimal.DecCalc.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DefaultBinder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Delegate.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\ConstantExpectedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\NullableAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\RequiresAssemblyFilesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\RequiresDynamicCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\SetsRequiredMembersAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\SuppressMessageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\ConditionalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Contracts\ContractException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Contracts\ContractFailedEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Contracts\Contracts.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Debug.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerBrowsableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerDisplayAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerHiddenAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerNonUserCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerStepperBoundaryAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerStepThroughAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerTypeProxyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerVisualizerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebugProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackFrame.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackFrameExtensions.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackTrace.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackTraceHiddenAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Stopwatch.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\SymbolStore\ISymbolDocumentWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\UnreachableException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DivideByZeroException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DllNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Double.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DuplicateWaitObjectException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Empty.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EntryPointNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Enum.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Enum.EnumInfo.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.SpecialFolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.SpecialFolderOption.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EnvironmentVariableTarget.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Exception.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ExecutionEngineException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FieldAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FlagsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FormattableString.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Function.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\GCMemoryInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Gen2GcCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Calendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarAlgorithmType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarWeekRule.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendricalCalculationsHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CharUnicodeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CharUnicodeInfoData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\ChineseLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.Invariant.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeFormatInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeFormatInfoScanner.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeParse.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeStyles.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DaylightTime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DigitShapes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\EastAsianLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GregorianCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GregorianCalendarHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GregorianCalendarTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HebrewCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HebrewNumber.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HijriCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IcuLocaleData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IdnMapping.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IdnMapping.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IdnMapping.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\InvariantModeCasing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\ISOWeek.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseCalendar.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseCalendar.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JulianCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\KoreanCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\KoreanLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Normalization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Normalization.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Normalization.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\NumberFormatInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\NumberStyles.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Ordinal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\OrdinalCasing.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\PersianCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\RegionInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\SortKey.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\SortVersion.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\StringInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\StrongBidiCategory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\SurrogateCasing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TaiwanCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TaiwanLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextElementEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextInfo.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextInfo.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\ThaiBuddhistCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TimeSpanFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TimeSpanParse.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TimeSpanStyles.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\UmAlQuraCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\UnicodeCategory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Guid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Half.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\HashCode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IAsyncDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IAsyncResult.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ICloneable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IComparable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IConvertible.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ICustomFormatter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IEquatable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IFormatProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IFormattable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Index.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IndexOutOfRangeException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InsufficientExecutionStackException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InsufficientMemoryException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Int16.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Int32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Int64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IntPtr.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidCastException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidOperationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidProgramException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidTimeZoneException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\BinaryReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\BinaryWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\BufferedStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Directory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DirectoryInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DirectoryNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\EncodingCache.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\EnumerationOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\EndOfStreamException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\File.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileAccess.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileLoadException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileShare.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStreamOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystemInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\HandleInheritability.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\InvalidDataException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\IOException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Iterator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\MatchCasing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\MatchType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\MemoryStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Path.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PathTooLongException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PinnedBufferMemoryStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\RandomAccess.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\ReadLinesIterator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\SearchOption.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\SearchTarget.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\SeekOrigin.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Stream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StreamReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StreamWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StringReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StringWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\TextReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\TextWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\UnmanagedMemoryAccessor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\UnmanagedMemoryStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\UnmanagedMemoryStreamWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEntry.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerableFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\BufferedFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\DerivedFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\OSFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IObservable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IObserver.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IProgress.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ISpanFormattable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Lazy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LazyOfTTMetadata.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LoaderOptimization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LoaderOptimizationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LocalAppContextSwitches.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LocalDataStoreSlot.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MarshalByRefObject.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Marvin.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Marvin.OrdinalIgnoreCase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Math.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MathF.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemberAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Memory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Globalization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Trim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MethodAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MidpointRounding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MissingFieldException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MissingMemberException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MissingMethodException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MulticastNotSupportedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Net\WebUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NonSerializedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NotFiniteNumberException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NotImplementedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NotSupportedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Nullable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NullReferenceException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.BigInteger.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.DiyFp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Dragon4.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Formatting.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Grisu3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.NumberBuffer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.NumberToFloatingPointBits.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Parsing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\BitOperations.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Matrix3x2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Matrix4x4.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Plane.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Quaternion.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector4.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\VectorDebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\VectorMath.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Object.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ObjectDisposedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ObsoleteAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OperatingSystem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OperationCanceledException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OutOfMemoryException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OverflowException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParamArrayAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParamsArray.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParseNumbers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PasteArguments.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PlatformID.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PlatformNotSupportedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ProbabilisticMap.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Progress.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Random.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Random.ImplBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Random.Net5CompatImpl.cs" />
<Compile Condition="'$(Is64Bit)' != 'true'" Include="$(MSBuildThisFileDirectory)System\Random.Xoshiro128StarStarImpl.cs" />
<Compile Condition="'$(Is64Bit)' == 'true'" Include="$(MSBuildThisFileDirectory)System\Random.Xoshiro256StarStarImpl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Range.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\RankException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ReadOnlyMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ReadOnlySpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AmbiguousMatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Assembly.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyAlgorithmIdAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyCompanyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyConfigurationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyContentType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyCopyrightAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyCultureAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyDefaultAliasAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyDelaySignAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyDescriptionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyFileVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyFlagsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyInformationalVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyKeyFileAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyKeyNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyMetadataAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameHelpers.StrongName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameParser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameFlags.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameFormatter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameProxy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyProductAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblySignatureKeyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyTitleAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyTrademarkAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Binder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\BindingFlags.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CallingConventions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ConstructorInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CorElementType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeFormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeNamedArgument.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeTypedArgument.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\DefaultMemberAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\AssemblyBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\AssemblyBuilderAccess.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\EmptyCAHolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\FlowControl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\Label.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\Opcode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\OpCodes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\OpCodeType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\OperandType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\PackingSize.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\PEFileKinds.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\StackBehaviour.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\TypeNameBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\EventAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\EventInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ExceptionHandlingClause.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ExceptionHandlingClauseOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\FieldAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\FieldInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\GenericParameterAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ICustomAttributeProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ImageFileMachine.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\InterfaceMapping.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\IntrospectionExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\InvalidFilterCriteriaException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\InvocationFlags.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\IReflect.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\IReflectableType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\LocalVariableInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ManifestResourceInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MemberFilter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MemberInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MemberTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodBody.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodImplAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodInfo.Internal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Missing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Module.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ModuleResolveEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\NullabilityInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\NullabilityInfoContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ObfuscateAssemblyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ObfuscationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ParameterAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ParameterInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ParameterModifier.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Pointer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\PortableExecutableKinds.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ProcessorArchitecture.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\PropertyAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\PropertyInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ReflectionContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ReflectionTypeLoadException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ResourceAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ResourceLocation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeConstructorInfo.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeMethodBody.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeMethodInfo.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeReflectionExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureArrayType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureByRefType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureConstructedGenericType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureGenericMethodParameterType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureGenericParameterType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureHasElementType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignaturePointerType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureTypeExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\StrongNameKeyPair.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TargetException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TargetInvocationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TargetParameterCountException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeDelegator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeFilter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Metadata\MetadataUpdateHandlerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ResolveEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ResolveEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\FastResourceComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\FileBasedResourceGroveler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\IResourceGroveler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\IResourceReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ManifestBasedResourceGroveler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\MissingManifestResourceException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\MissingSatelliteAssemblyException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\NeutralResourcesLanguageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceFallbackManager.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceManager.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceReader.Core.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceTypeCode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\RuntimeResourceSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\SatelliteContractVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\UltimateResourceFallbackLocation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\AmbiguousImplementationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AccessedThroughPropertyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncIteratorMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncMethodBuilderAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncStateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncTaskMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncValueTaskMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncValueTaskMethodBuilderT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerArgumentExpressionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerFilePathAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerLineNumberAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerMemberNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallingConventions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilationRelaxations.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilationRelaxationsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilerGeneratedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilerGlobalScopeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConditionalWeakTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ContractHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CreateNewOnMetadataUpdateAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CustomConstantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DateTimeConstantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DecimalConstantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DefaultDependencyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DependencyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DisablePrivateReflectionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DisableRuntimeMarshallingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DiscardableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ExtensionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FixedAddressValueTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FixedBufferAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FormattableStringFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IAsyncStateMachine.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IAsyncStateMachineBox.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ICastable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IndexerNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\INotifyCompletion.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InternalsVisibleToAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IntrinsicAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsByRefLikeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsConst.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsReadOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsVolatile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InterpolatedStringHandlerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InterpolatedStringHandlerArgumentAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IteratorStateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ITuple.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\LoadHint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\MethodCodeType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\MethodImplAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\MethodImplOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ModuleInitializerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ReferenceAssemblyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\PreserveBaseOverridesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RequiredMemberAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeCompatibilityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeFeature.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeWrappedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SkipLocalsInitAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SpecialNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\StateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\StringFreezingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\StrongBox.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SuppressIldasmAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SwitchExpressionException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TaskAwaiter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TupleElementNamesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TypeForwardedFromAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TypeForwardedToAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\Unsafe.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\UnsafeValueTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ValueTaskAwaiter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\YieldAwaitable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Cer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Consistency.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\CriticalFinalizerObject.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\PrePrepareMethodAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\ReliabilityContractAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\ExceptionNotification.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\HandleProcessCorruptedStateExceptionsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\GCSettings.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\AllowReversePInvokeCallsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Architecture.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ArrayWithOffset.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\BestFitMappingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\BStrWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CallingConvention.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CharSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ClassInterfaceAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ClassInterfaceType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CLong.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CoClassAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CollectionsMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComDefaultInterfaceAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComEventInterfaceAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\COMException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComImportAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComInterfaceType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComMemberType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComSourceInterfacesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IBindCtx.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IConnectionPoint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IConnectionPointContainer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumConnectionPoints.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumConnections.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumMoniker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumString.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumVARIANT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IMoniker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IPersistFile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IRunningObjectTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeComp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeInfo2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeLib.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeLib2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComVisibleAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComWrappers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CriticalHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CULong.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CurrencyWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CustomQueryInterfaceMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CustomQueryInterfaceResult.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DefaultCharSetAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DefaultDllImportSearchPathsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DefaultParameterValueAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DispatchWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DispIdAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DllImportAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DllImportSearchPath.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ErrorWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ExternalException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\FieldOffsetAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\GCHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\GCHandleType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\GuidAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\HandleRef.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ICustomAdapter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ICustomFactory.cs" />
<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\InAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InterfaceTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InvalidComObjectException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InvalidOleVariantTypeException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\LayoutKind.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\LCIDConversionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MarshalAsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MarshalDirectiveException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MemoryMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\OSPlatform.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedCallConvAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeLibrary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NFloat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\OptionalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\OutAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PreserveSigAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ProgIdAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.ProcessArchitecture.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeArrayRankMismatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeArrayTypeMismatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeBuffer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SEHException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StructLayoutAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SuppressGCTransitionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\TypeIdentifierAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnknownWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedFunctionPointerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\VarEnum.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\VariantWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Scalar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector128.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector128_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector128DebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector256.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector256_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector256DebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector64_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector64DebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Enums.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\JitInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\AssemblyLoadContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\LibraryNameVariation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\MemoryFailPoint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\NgenServicingAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ProfileOptimization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Remoting\ObjectHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\DeserializationToken.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\DeserializationTracker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\IDeserializationCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\IFormatterConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\IObjectReference.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\ISafeSerializationData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\ISerializable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnDeserializedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnDeserializingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnSerializedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnSerializingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OptionalFieldAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SafeSerializationEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationInfo.SerializationGuard.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationInfoEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\StreamingContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ComponentGuaranteesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ComponentGuaranteesOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\FrameworkName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\PlatformAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\RequiresPreviewFeaturesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ResourceConsumptionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ResourceExposureAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ResourceScope.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\TargetFrameworkAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\VersioningHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\RuntimeType.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\SByte.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\AllowPartiallyTrustedCallersAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\CryptographicException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\IPermission.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\ISecurityEncodable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\IStackWalk.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\PartialTrustVisibilityLevel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\CodeAccessSecurityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\PermissionState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityAction.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityPermissionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityPermissionFlag.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\PermissionSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\IIdentity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\IPrincipal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\PrincipalPolicy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\TokenImpersonationLevel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecureString.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityCriticalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityCriticalScope.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityElement.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityRulesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityRuleSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecuritySafeCriticalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityTransparentAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityTreatAsSafeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SuppressUnmanagedCodeSecurityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\UnverifiableCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\VerificationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SerializableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Single.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Span.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.BinarySearch.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.Byte.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.Char.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.T.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SR.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StackOverflowException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Comparison.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Manipulation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Searching.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringComparison.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringNormalizationExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringSplitOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SystemException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ASCIIEncoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ASCIIUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ASCIIUtility.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\CodePageDataItem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Decoder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderExceptionFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderNLS.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderReplacementFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Encoder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderExceptionFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderLatin1BestFitFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderLatin1BestFitFallback.Data.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderNLS.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderReplacementFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Encoding.Internal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Encoding.Sealed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Utility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Utility.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\NormalizationForm.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Rune.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\SpanLineEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\SpanRuneEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\StringBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\StringBuilder.Debug.cs" Condition="'$(Configuration)' == 'Debug'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\StringRuneEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\TranscodingStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\TrimType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\GraphemeClusterBreakType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\TextSegmentationUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf16Utility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf16Utility.Validation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.Transcoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.Validation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UnicodeDebug.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UnicodeEncoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UnicodeUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF32Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF7Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF8Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF8Encoding.Sealed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ValueStringBuilder.AppendFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ThreadAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AbandonedMutexException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ApartmentState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AsyncLocal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AutoResetEvent.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CancellationToken.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CancellationTokenRegistration.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CancellationTokenSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CompressedStack.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\StackCrawlMark.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\DeferredDisposableLifetime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventResetMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ExecutionContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\IOCompletionCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\IThreadPoolWorkItem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Interlocked.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LazyInitializer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LazyThreadSafetyMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LockRecursionException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelLock.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelSpinWaiter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelMonitor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ManualResetEvent.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ManualResetEventSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Monitor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeOverlapped.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Overlapped._IOCompletionCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ParameterizedThreadStart.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ReaderWriterLockSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Semaphore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SemaphoreFullException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SemaphoreSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SendOrPostCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SpinLock.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SpinWait.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SynchronizationContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SynchronizationLockException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\AsyncCausalityTracerConstants.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\CachedCompletedInt32Task.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Future.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\FutureFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ProducerConsumerQueues.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Sources\IValueTaskSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Task.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskAsyncEnumerableExtensions.ToBlockingEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCache.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCanceledException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCompletionSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCompletionSource_T.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskContinuation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskExceptionHolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskScheduler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskSchedulerException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ThreadPoolTaskScheduler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TplEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ValueTask.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Thread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadAbortException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadExceptionEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadInt64PersistentCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadInterruptedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadLocal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolWorkQueue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPriority.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadStart.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadStartException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadStateException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Timeout.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimeoutHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PeriodicTimer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Timer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimerQueue.Portable.cs" Condition="'$(FeaturePortableTimer)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Volatile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandleCannotBeOpenedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandleExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ThreadStaticAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ThrowHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeOnly.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeoutException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeSpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZone.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.AdjustmentRule.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.FullGlobalizationData.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.StringSerializer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.TransitionTime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Tuple.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TupleSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TupleExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Type.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Type.Enum.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Type.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeCode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypedReference.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeInitializationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeLoadException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeUnloadedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UInt16.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UInt32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UInt64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UIntPtr.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnauthorizedAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnhandledExceptionEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnhandledExceptionEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnitySerializationHolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ValueTuple.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Version.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Void.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\WeakReference.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\WeakReference.T.cs" />
<Compile Include="$(CommonPath)Interop\Interop.Calendar.cs">
<Link>Common\Interop\Interop.Calendar.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Casing.cs">
<Link>Common\Interop\Interop.Casing.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Collation.cs">
<Link>Common\Interop\Interop.Collation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.ICU.cs">
<Link>Common\Interop\Interop.ICU.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.ICU.iOS.cs" Condition="'$(IsiOSLike)' == 'true'">
<Link>Common\Interop\Interop.ICU.iOS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Idna.cs">
<Link>Common\Interop\Interop.Idna.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Locale.cs">
<Link>Common\Interop\Interop.Locale.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Normalization.cs">
<Link>Common\Interop\Interop.Normalization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.ResultCode.cs">
<Link>Common\Interop\Interop.ResultCode.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.TimeZoneDisplayNameType.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'">
<Link>Common\Interop\Interop.TimeZoneDisplayNameType.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.TimeZoneInfo.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'">
<Link>Common\Interop\Interop.TimeZoneInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Utils.cs">
<Link>Common\Interop\Interop.Utils.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.Errors.cs">
<Link>Common\Interop\Interop.Errors.cs</Link>
</Compile>
<!-- The CLR internally uses a BOOL type analogous to the Windows BOOL type on Unix -->
<Compile Include="$(CommonPath)Interop\Windows\Interop.BOOL.cs">
<Link>Common\Interop\Windows\Interop.BOOL.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Globalization.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Globalization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ResolveLocaleName.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ResolveLocaleName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Normaliz\Interop.Idna.cs">
<Link>Common\Interop\Windows\Normaliz\Interop.Idna.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Normaliz\Interop.Normalization.cs">
<Link>Common\Interop\Windows\Normaliz\Interop.Normalization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs">
<Link>Common\DisableRuntimeMarshalling.cs</Link>
</Compile>
<Compile Include="$(CommonPath)SkipLocalsInit.cs">
<Link>Common\SkipLocalsInit.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\LocalAppContextSwitches.Common.cs">
<Link>Common\System\LocalAppContextSwitches.Common.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\HResults.cs">
<Link>Common\System\HResults.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\NotImplemented.cs">
<Link>Common\System\NotImplemented.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Obsoletions.cs">
<Link>Common\System\Obsoletions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Sha1ForNonSecretPurposes.cs">
<Link>Common\System\Sha1ForNonSecretPurposes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\SR.cs">
<Link>Common\System\SR.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Collections\Generic\EnumerableHelpers.cs">
<Link>Common\System\Collections\Generic\EnumerableHelpers.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Collections\Generic\ReferenceEqualityComparer.cs">
<Link>Common\System\Collections\Generic\ReferenceEqualityComparer.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Collections\Generic\BitHelper.cs">
<Link>Common\System\Collections\Generic\BitHelper.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Diagnostics\CodeAnalysis\ExcludeFromCodeCoverageAttribute.cs">
<Link>Common\System\Diagnostics\CodeAnalysis\ExcludeFromCodeCoverageAttribute.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.cs">
<Link>Common\System\IO\PathInternal.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.CaseSensitivity.cs">
<Link>Common\System\IO\PathInternal.CaseSensitivity.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs">
<Link>Common\System\Runtime\CompilerServices\IsExternalInit.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Runtime\Versioning\NonVersionableAttribute.cs">
<Link>Common\System\Runtime\Versioning\NonVersionableAttribute.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\StringBuilderCache.cs">
<Link>Common\System\Text\StringBuilderCache.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs">
<Link>Common\System\Text\ValueStringBuilder.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.AppendSpanFormattable.cs">
<Link>Common\System\Text\ValueStringBuilder.AppendSpanFormattable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Threading\OpenExistingResult.cs">
<Link>Common\System\Threading\OpenExistingResult.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Threading\Tasks\TaskToApm.cs">
<Link>Common\System\Threading\Tasks\TaskToApm.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(IsMobileLike)' != 'true' and '$(TargetsCoreRT)' != 'true'">
<Compile Include="$(CommonPath)Interop\Interop.HostPolicy.cs">
<Link>Common\Interop\Interop.HostPolicy.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\AssemblyDependencyResolver.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IsMobileLike)' == 'true' or '$(TargetsCoreRT)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\AssemblyDependencyResolver.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IsMobileLike)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.ActivityControl.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.ActivityControl.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EtwEnableCallback.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EtwEnableCallback.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EVENT_INFO_CLASS.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EVENT_INFO_CLASS.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\ActivityTracker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\DiagnosticCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\CounterGroup.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\CounterPayload.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventActivityOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventDescriptor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipe.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipeEventDispatcher.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipeEventProvider.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipePayloadDecoder.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventSourceException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\FrameworkEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\IEventProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\IncrementingEventCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\IncrementingPollingCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\NativeRuntimeEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\PollingCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\RuntimeEventSource.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\Winmeta.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\ArrayTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\ConcurrentSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\ConcurrentSetItem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\DataCollector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EmptyStruct.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EnumHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventDataAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventFieldAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventFieldFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventIgnoreAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventPayload.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventSourceOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\InvokeTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\NameInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\PropertyAnalysis.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\SimpleEventTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\Statics.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingDataCollector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingDataType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventHandleTable.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTraits.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs" Condition="'$(FeatureXplatEventSource)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\QCallHandles.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)\..\..\Common\src\System\HexConverter.cs">
<Link>Common\System\HexConverter.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EncryptDecrypt.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EncryptDecrypt.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventActivityIdControl.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventActivityIdControl.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventRegister.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventRegister.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventSetInformation.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventSetInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventTraceGuidsEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventTraceGuidsEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventUnregister.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventUnregister.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventWriteString.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventWriteString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventWriteTransfer.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventWriteTransfer.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.LookupAccountNameW.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.LookupAccountNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegCloseKey.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegCloseKey.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegCreateKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegCreateKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegDeleteKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegDeleteKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegDeleteValue.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegDeleteValue.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegEnumKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegEnumKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegEnumValue.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegEnumValue.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegFlushKey.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegFlushKey.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegistryConstants.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegistryConstants.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegOpenKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegOpenKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegQueryValueEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegQueryValueEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegSetValueEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegSetValueEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs">
<Link>Common\Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenRandom.GetRandomBytes.cs">
<Link>Common\Interop\Windows\BCrypt\Interop.BCryptGenRandom.GetRandomBytes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.NTSTATUS.cs">
<Link>Common\Interop\Windows\BCrypt\Interop.NTSTATUS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptProtectMemory.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.CryptProtectMemory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.BOOLEAN.cs">
<Link>Common\Interop\Windows\Interop.BOOLEAN.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs">
<Link>Common\Interop\Windows\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CancelIoEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CancelIoEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CompletionPort.cs" Condition="'$(FeaturePortableThreadPool)' == 'true'">
<Link>Common\Interop\Windows\Kernel32\Interop.CompletionPort.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ConditionVariable.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ConditionVariable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CopyFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CopyFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CopyFileEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CopyFileEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtCreateFile.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtCreateFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtStatus.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtStatus.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.IO_STATUS_BLOCK.cs">
<Link>Common\Interop\Windows\NtDll\Interop.IO_STATUS_BLOCK.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs">
<Link>Common\Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.DeleteFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.DeleteFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.DeleteVolumeMountPoint.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.DeleteVolumeMountPoint.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateFile_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateFile_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateSymbolicLink.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateSymbolicLink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CriticalSection.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CriticalSection.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.DeviceIoControl.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.DeviceIoControl.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ExpandEnvironmentStrings.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ExpandEnvironmentStrings.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_BASIC_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_BASIC_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_ALLOCATION_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_ALLOCATION_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_END_OF_FILE_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_END_OF_FILE_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_STANDARD_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_STANDARD_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_TIME.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_TIME.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileAttributes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileAttributes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FindNextFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FindNextFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileOperations.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileOperations.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileTimeToSystemTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileTimeToSystemTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileTypes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileTypes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FindClose.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FindClose.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FindFirstFileEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FindFirstFileEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FlushFileBuffers.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FlushFileBuffers.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FreeLibrary.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FreeLibrary.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GenericOperations.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GenericOperations.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetLastError.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetLastError.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GET_FILEEX_INFO_LEVELS.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GET_FILEEX_INFO_LEVELS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetComputerName.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetComputerName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetConsoleOutputCP.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetConsoleOutputCP.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetCPInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCPInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetCurrentDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCurrentDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetCurrentProcess.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCurrentProcess.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Kernel32\Interop.GetCurrentProcessId.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCurrentProcessId.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFileAttributesEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFileAttributesEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFileInformationByHandleEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFileInformationByHandleEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFileType_SafeHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFileType_SafeHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFinalPathNameByHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFinalPathNameByHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFullPathNameW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFullPathNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetLogicalDrives.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetLogicalDrives.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetLongPathNameW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetLongPathNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetModuleFileName.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetModuleFileName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetNativeSystemInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetNativeSystemInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetOverlappedResult.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetOverlappedResult.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetProcessMemoryInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetProcessMemoryInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetProcessTimes_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetProcessTimes_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetStdHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetStdHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemDirectoryW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemDirectoryW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemTimes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemTimes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetTempFileNameW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetTempFileNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetTempPathW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetTempPathW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetVolumeInformation.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetVolumeInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GlobalMemoryStatusEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GlobalMemoryStatusEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.HandleTypes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.HandleTypes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.IsWow64Process_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.IsWow64Process_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LoadLibraryEx_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.LoadLibraryEx_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LocalAlloc.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.LocalAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LockFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.LockFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MAX_PATH.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MAX_PATH.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MemOptions.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MemOptions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MEMORY_BASIC_INFORMATION.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MEMORY_BASIC_INFORMATION.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MEMORYSTATUSEX.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MEMORYSTATUSEX.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MultiByteToWideChar.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MultiByteToWideChar.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MoveFileEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MoveFileEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.OSVERSIONINFOEX.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.OSVERSIONINFOEX.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.OutputDebugString.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.OutputDebugString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.QueryPerformanceCounter.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.QueryPerformanceCounter.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.QueryPerformanceFrequency.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.QueryPerformanceFrequency.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.QueryUnbiasedInterruptTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.QueryUnbiasedInterruptTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_NativeOverlapped.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_NativeOverlapped.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileScatterGather.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileScatterGather.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.RemoveDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.RemoveDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.REPARSE_DATA_BUFFER.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.REPARSE_DATA_BUFFER.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ReplaceFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ReplaceFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SECURITY_ATTRIBUTES.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SECURITY_ATTRIBUTES.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.UNICODE_STRING.cs">
<Link>Common\Interop\Windows\Interop.UNICODE_STRING.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SecurityOptions.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SecurityOptions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.SECURITY_QUALITY_OF_SERVICE.cs">
<Link>Common\Interop\Windows\Interop.SECURITY_QUALITY_OF_SERVICE.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.OBJECT_ATTRIBUTES.cs">
<Link>Common\Interop\Windows\Interop.OBJECT_ATTRIBUTES.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetConsoleCtrlHandler.cs">
<Link>Common\Interop\Windows\Interop.SetConsoleCtrlHandler.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetCurrentDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetCurrentDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetFileAttributes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetFileAttributes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetFileInformationByHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetFileInformationByHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetFilePointerEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetFilePointerEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetLastError.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetLastError.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetThreadErrorMode.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetThreadErrorMode.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SYSTEM_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SYSTEM_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SystemTimeToFileTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SystemTimeToFileTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.TimeZone.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.TimeZone.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.TimeZone.Registry.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.TimeZone.Registry.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.TzSpecificLocalTimeToSystemTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.TzSpecificLocalTimeToSystemTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VerifyVersionExW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VerifyVersionExW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VerSetConditionMask.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VerSetConditionMask.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VirtualAlloc_Ptr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VirtualAlloc_Ptr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VirtualFree.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VirtualFree.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VirtualQuery_Ptr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VirtualQuery_Ptr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WideCharToMultiByte.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WideCharToMultiByte.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WIN32_FILE_ATTRIBUTE_DATA.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WIN32_FILE_ATTRIBUTE_DATA.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WIN32_FIND_DATA.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WIN32_FIND_DATA.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_NativeOverlapped.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_NativeOverlapped.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.FILE_FULL_DIR_INFORMATION.cs">
<Link>Common\Interop\Windows\NtDll\Interop.FILE_FULL_DIR_INFORMATION.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.FILE_INFORMATION_CLASS.cs">
<Link>Common\Interop\Windows\NtDll\Interop.FILE_INFORMATION_CLASS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtQueryDirectoryFile.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtQueryDirectoryFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtQueryInformationFile.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtQueryInformationFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtQuerySystemInformation.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtQuerySystemInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.RtlGetVersion.cs">
<Link>Common\Interop\Windows\NtDll\Interop.RtlGetVersion.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.SYSTEM_LEAP_SECOND_INFORMATION.cs">
<Link>Common\Interop\Windows\NtDll\Interop.SYSTEM_LEAP_SECOND_INFORMATION.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\OleAut32\Interop.SysAllocStringByteLen.cs">
<Link>Common\Interop\Windows\OleAut32\Interop.SysAllocStringByteLen.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\OleAut32\Interop.SysAllocStringLen.cs">
<Link>Common\Interop\Windows\OleAut32\Interop.SysAllocStringLen.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\OleAut32\Interop.SysFreeString.cs">
<Link>Common\Interop\Windows\OleAut32\Interop.SysFreeString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ole32\Interop.CLSIDFromProgID.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CLSIDFromProgID.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ole32\Interop.CoCreateGuid.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CoCreateGuid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Ole32\Interop.CoGetStandardMarshal.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CoGetStandardMarshal.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ole32\Interop.CoTaskMemAlloc.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CoTaskMemAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Secur32\Interop.GetUserNameExW.cs">
<Link>Common\Interop\Windows\Secur32\Interop.GetUserNameExW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Shell32\Interop.SHGetKnownFolderPath.cs">
<Link>Common\Interop\Windows\Shell32\Interop.SHGetKnownFolderPath.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ucrtbase\Interop.MemAlloc.cs">
<Link>Common\Interop\Windows\Ucrtbase\Interop.MemAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.Constants.cs">
<Link>Common\Interop\Windows\User32\Interop.Constants.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.LoadString.cs">
<Link>Common\Interop\Windows\User32\Interop.LoadString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.LongFileTime.cs">
<Link>Common\Interop\Windows\Interop.LongFileTime</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.SendMessageTimeout.cs">
<Link>Common\Interop\Windows\User32\Interop.SendMessageTimeout.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.GetProcessWindowStation.cs">
<Link>Common\Interop\Windows\User32\Interop.GetProcessWindowStation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.GetUserObjectInformation.cs">
<Link>Common\Interop\Windows\User32\Interop.GetUserObjectInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.USEROBJECTFLAGS.cs">
<Link>Common\Interop\Windows\User32\Interop.USEROBJECTFLAGS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\FileSystem.Attributes.Windows.cs">
<Link>Common\System\IO\FileSystem.Attributes.Windows.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\FileSystem.DirectoryCreation.Windows.cs">
<Link>Common\System\IO\FileSystem.DirectoryCreation.Windows.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.Windows.cs">
<Link>Common\System\IO\PathInternal.Windows.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Win32\RegistryKey.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.OverlappedValueTaskSource.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFindHandle.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeRegistryHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeRegistryHandle.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomain.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffer.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.Win32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Win32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\Win32Exception.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebugProvider.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Stopwatch.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\RuntimeEventSourceHelper.Windows.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureInfo.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HijriCalendar.Win32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Guid.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DisableMediaInsertionPrompt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DriveInfoInternal.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystemInfo.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Path.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PathHelper.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\RandomAccess.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEntry.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerator.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\AsyncWindowsFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamHelpers.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\SyncWindowsFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PasteArguments.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\LibraryNameVariation.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\MemoryFailPoint.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StandardOleMarshalObject.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecureString.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelMonitor.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimerQueue.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Win32.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureComWrappers)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComWrappers.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureCominterop)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.NoCom.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComEventsHelpers.NoCom.cs" />
</ItemGroup>
<!-- CoreCLR uses PAL layer that emulates Windows API on Unix. This is bridge for that PAL layer. See issue dotnet/runtime/#31721. -->
<ItemGroup Condition="'$(TargetsWindows)' == 'true' or '$(FeatureCoreCLR)'=='true'">
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeWaitHandle.Windows.cs" />
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CloseHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CloseHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Constants.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Constants.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.EventWaitHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.EventWaitHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetEnvironmentVariable.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetEnvironmentVariable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetEnvironmentStrings.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetEnvironmentStrings.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FreeEnvironmentStrings.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FreeEnvironmentStrings.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FormatMessage.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FormatMessage.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Mutex.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Mutex.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Semaphore.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Semaphore.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetEnvironmentVariable.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetEnvironmentVariable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WriteFile_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\Win32Marshal.cs">
<Link>Common\System\IO\Win32Marshal.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Memory\FixedBufferExtensions.cs">
<Link>Common\System\Memory\FixedBufferExtensions.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Variables.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Semaphore.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.Windows.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'">
<Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs">
<Link>Common\Interop\Unix\Interop.Errors.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\Interop.IOErrors.cs">
<Link>Common\Interop\Unix\Interop.IOErrors.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs">
<Link>Common\Interop\Unix\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\Interop.DefaultPathBufferSize.cs">
<Link>Common\Interop\Unix\Interop.DefaultPathBufferSize.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Access.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Access.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ChDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ChDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ChMod.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ChMod.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Close.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Close.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.CopyFile.cs">
<Link>Common\Interop\Unix\System.Native\Interop.CopyFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ErrNo.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ErrNo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.UnixFileSystemTypes.cs">
<Link>Common\Interop\Unix\System.Native\Interop.UnixFileSystemTypes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FLock.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FLock.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FSync.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FSync.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FTruncate.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FTruncate.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetCpuUtilization.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetCpuUtilization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetCwd.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetCwd.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetDefaultTimeZone.Android.cs" Condition="'$(TargetsAndroid)' == 'true'">
<Link>Common\Interop\Unix\System.Native\Interop.GetDefaultTimeZone.Android.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetHostName.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetHostName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetOSArchitecture.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetOSArchitecture.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetProcessPath.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetProcessPath.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetRandomBytes.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetRandomBytes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetSystemTimeAsTicks.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetSystemTimeAsTicks.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetTimestamp.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetTimestamp.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetUnixName.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetUnixName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetUnixVersion.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetUnixVersion.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetUnixRelease.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetUnixRelease.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.IOVector.cs">
<Link>Common\Interop\Unix\System.Native\Interop.IOVector.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LChflags.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LChflags.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Link.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Link.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LockFileRegion.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LockFileRegion.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Log.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Log.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LowLevelMonitor.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LowLevelMonitor.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LSeek.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LSeek.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MemAlloc.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MemAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MkDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MkDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MksTemps.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MksTemps.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MountPoints.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MountPoints.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Open.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Open.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.OpenFlags.cs">
<Link>Common\Interop\Unix\System.Native\Interop.OpenFlags.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PathConf.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PathConf.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Permissions.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Permissions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PosixFAdvise.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PosixFAdvise.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FAllocate.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FAllocate.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PRead.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PRead.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PReadV.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PReadV.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PWrite.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PWrite.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PWriteV.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PWriteV.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Read.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Read.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ReadDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ReadDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ReadLink.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ReadLink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Rename.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Rename.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.RmDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.RmDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Stat.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.Span.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Stat.Span.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SymLink.cs">
<Link>Common\Interop\Unix\System.Native\Interop.SymLink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SysConf.cs">
<Link>Common\Interop\Unix\System.Native\Interop.SysConf.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SysLog.cs">
<Link>Common\Interop\Unix\System.Native\Interop.SysLog.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Unlink.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Unlink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.UTimensat.cs">
<Link>Common\Interop\Unix\System.Native\Interop.UTimensat.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Write.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Write.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\ValueUtf8Converter.cs">
<Link>Common\System\Text\ValueUtf8Converter.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.Unix.cs">
<Link>Common\System\IO\PathInternal.Unix.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Unix.cs" Condition="'$(TargetsAndroid)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(CommonPath)Interop\Android\Interop.Logcat.cs" Condition="'$(TargetsAndroid)' == 'true'">
<Link>Common\Interop\Android\Interop.Logcat.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Android\Interop.Libraries.cs" Condition="'$(TargetsAndroid)' == 'true'">
<Link>Common\Interop\Android\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomain.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffer.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\Win32Exception.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebugProvider.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Stopwatch.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\RuntimeEventSourceHelper.Unix.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.NoRegistry.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.UnixOrBrowser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSVersion.OSX.cs" Condition="'$(IsOSXLike)' == 'true' AND '$(TargetsMacCatalyst)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSVersion.MacCatalyst.cs" Condition="'$(TargetsMacCatalyst)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.GetFolderPathCore.Unix.cs" Condition="'$(IsiOSLike)' != 'true' and '$(TargetsAndroid)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.LoadICU.Unix.cs" Condition="'$(IsiOSLike)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.LoadICU.iOS.cs" Condition="'$(IsiOSLike)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HijriCalendar.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Guid.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStatus.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.Exists.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystemInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Path.Unix.cs" />
<Compile Condition="'$(IsiOSLike)' == 'true'" Include="$(MSBuildThisFileDirectory)System\IO\Path.Unix.iOS.cs" />
<Compile Condition="'$(IsiOSLike)' != 'true'" Include="$(MSBuildThisFileDirectory)System\IO\Path.Unix.NoniOS.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PersistedFiles.Names.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\RandomAccess.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEntry.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerator.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamHelpers.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\UnixFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PasteArguments.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\LibraryNameVariation.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\MemoryFailPoint.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.Unix.cs" Condition="'$(TargetsBrowser)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StandardOleMarshalObject.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecureString.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelMonitor.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimerQueue.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Unix.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Unix.NonAndroid.cs" Condition="'$(TargetsAndroid)' != 'true'" />
</ItemGroup>
<ItemGroup Condition="('$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true') and '$(IsOSXLike)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStatus.SetTimes.OtherUnix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true'">
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetEUid.cs" Link="Common\Interop\Unix\Interop.GetEUid.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.IsMemberOfGroup.cs" Link="Common\Interop\Unix\Interop.IsMemberOfGroup.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetPwUid.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetPwUid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Unix\System.Native\Interop.GetPid.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetPid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.InitializeTerminalAndSignalHandling.cs" Link="Common\Interop\Unix\Interop.InitializeTerminalAndSignalHandling.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PosixSignal.cs" Link="Common\Interop\Unix\Interop.PosixSignal.cs" />
<Compile Include="$(CommonPath)Interop\FreeBSD\Interop.Process.GetProcInfo.cs" Condition="'$(TargetsFreeBSD)' == 'true'" Link="Common\Interop\FreeBSD\Interop.Process.GetProcInfo.cs" />
<Compile Include="$(CommonPath)Interop\BSD\System.Native\Interop.Sysctl.cs" Condition="'$(TargetsFreeBSD)' == 'true'" Link="Common\Interop\BSD\System.Native\Interop.Sysctl.cs" />
<Compile Include="$(CommonPath)Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs" Condition="'$(TargetsLinux)' == 'true'" Link="Common\Interop\Linux\Interop.ProcFsStat.TryReadStatusFile.cs" />
<Compile Include="$(CommonPath)System\IO\StringParser.cs" Condition="'$(TargetsLinux)' == 'true'" Link="Common\System\IO\StringParser.cs" />
<Compile Include="$(CommonPath)Interop\OSX\Interop.libproc.GetProcessInfoById.cs" Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true'" Link="Common\Interop\OSX\Interop.libproc.GetProcessInfoById.cs" />
<Compile Include="$(CommonPath)Interop\SunOS\procfs\Interop.ProcFsStat.TryReadProcessStatusInfo.cs" Condition="'$(Targetsillumos)' == 'true' or '$(TargetsSolaris)' == 'true'" Link="Common\Interop\SunOS\Interop.ProcFsStat.TryReadProcessStatusInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.FreeBSD.cs" Condition="'$(TargetsFreeBSD)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Linux.cs" Condition="'$(TargetsLinux)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSX.cs" Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.iOS.cs" Condition="'$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSVersion.Unix.cs" Condition="'$(IsOSXLike)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.SunOS.cs" Condition="'$(Targetsillumos)' == 'true' or '$(TargetsSolaris)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.FullGlobalizationData.Unix.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DriveInfoInternal.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PersistedFiles.Unix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true' and '$(IsMobileLike)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsBrowser)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\AppContext.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DriveInfoInternal.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PersistedFiles.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.Browser.cs" />
</ItemGroup>
<ItemGroup Condition="'$(UseMinimalGlobalizationData)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.MinimalGlobalizationData.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IsOSXLike)' == 'true'">
<Compile Include="$(CommonPath)Interop\OSX\Interop.libobjc.cs">
<Link>Common\Interop\OSX\Interop.libobjc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\OSX\Interop.Libraries.cs">
<Link>Common\Interop\OSX\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\OSX\Interop.libc.cs">
<Link>Common\Interop\OSX\Interop.libc.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStatus.SetTimes.OSX.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsMacCatalyst)' == 'true'">
<Compile Include="$(CommonPath)Interop\OSX\System.Native\Interop.iOSSupportVersion.cs" Link="Common\Interop\OSX\System.Native\Interop.iOSSupportVersion.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsX86Intrinsics)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Aes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\AvxVnni.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Fma.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Lzcnt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Pclmulqdq.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Popcnt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse41.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse42.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Ssse3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\X86Base.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsX86Intrinsics)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Aes.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx2.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\AvxVnni.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi1.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi2.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Fma.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Lzcnt.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Pclmulqdq.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Popcnt.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse2.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse3.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse41.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse42.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Ssse3.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\X86Base.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsArmIntrinsics)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\AdvSimd.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Aes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\ArmBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Crc32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Dp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Rdm.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha256.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsArmIntrinsics)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\AdvSimd.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Aes.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\ArmBase.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Crc32.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Dp.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Rdm.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha1.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha256.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeaturePortableThreadPool)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPool.Portable.cs" Condition="'$(FeatureCoreCLR)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPool.Portable.Windows.cs" Condition="'$(TargetsWindows)' == 'true' and '$(FeatureCoreCLR)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPool.Portable.Unix.cs" Condition="'$(TargetsUnix)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeRuntimeEventSource.PortableThreadPool.cs" Condition="'$(FeatureCoreCLR)' != 'true' and '$(FeatureMono)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeRuntimeEventSource.PortableThreadPool.NativeSinks.cs" Condition="'$(FeatureCoreCLR)' == 'true' or '$(FeatureMono)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.Blocking.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.GateThread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.HillClimbing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.HillClimbing.Complex.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.IO.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.ThreadCounts.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.WaitThread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.WorkerThread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.WorkerTracking.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.CpuUtilizationReader.Unix.cs" Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.CpuUtilizationReader.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelLifoSemaphore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelLifoSemaphore.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PreAllocatedOverlapped.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\RegisteredWaitHandle.Portable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandle.Unix.cs" Condition="'$(TargetsUnix)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandle.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandleOverlapped.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureObjCMarshal)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCTrackedTypeAttribute.cs" />
<Compile Include="$(CommonPath)Interop\OSX\System.Native\Interop.AutoreleasePool.cs" Link="Common\Interop\OSX\System.Native\Interop.AutoreleasePool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AutoreleasePool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolWorkQueue.AutoreleasePool.OSX.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureObjCMarshal)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCMarshal.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCTrackedTypeAttribute.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureCoreCLR)' != 'true' and ('$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true')">
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Thread.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeWaitHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Semaphore.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.HandleManager.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.ThreadWaitInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.WaitableObject.Unix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureCoreCLR)' != 'true' and '$(TargetsWindows)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Thread.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandle.Windows.cs" />
<Compile Include="$(CommonPath)\Interop\Windows\Kernel32\Interop.Threading.cs">
<Link>Interop\Windows\Kernel32\Interop.Threading.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(FeatureGenericMath)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\IAdditionOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IAdditiveIdentity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IBitwiseOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IComparisonOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IDecrementOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IDivisionOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IEqualityOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IFloatingPoint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IIncrementOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IInteger.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IMinMaxValue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IModulusOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IMultiplicativeIdentity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IMultiplyOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\INumber.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IParseable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IShiftOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ISpanParseable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ISubtractionOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IUnaryNegationOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IUnaryPlusOperators.cs" />
</ItemGroup>
</Project>
|
<Project>
<PropertyGroup>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>c5ed3c1d-b572-46f1-8f96-522a85ce1179</SharedGUID>
<StringResourcesName Condition="'$(StringResourcesName)' == ''">System.Private.CoreLib.Strings</StringResourcesName>
<GenerateResourcesSubstitutions>true</GenerateResourcesSubstitutions>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace />
</PropertyGroup>
<PropertyGroup>
<Nullable>enable</Nullable>
<IsOSXLike Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true' or '$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'">true</IsOSXLike>
<IsiOSLike Condition="'$(TargetsMacCatalyst)' == 'true' or '$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'">true</IsiOSLike>
<IsMobileLike Condition="'$(TargetsBrowser)' == 'true' or '$(IsiOSLike)' == 'true' or '$(TargetsAndroid)' == 'true'">true</IsMobileLike>
<SupportsArmIntrinsics Condition="'$(Platform)' == 'arm64'">true</SupportsArmIntrinsics>
<SupportsX86Intrinsics Condition="'$(Platform)' == 'x64' or ('$(Platform)' == 'x86' and '$(TargetsUnix)' != 'true')">true</SupportsX86Intrinsics>
<ILLinkSharedDirectory>$(MSBuildThisFileDirectory)ILLink\</ILLinkSharedDirectory>
<IsBigEndian Condition="'$(Platform)' == 's390x'">true</IsBigEndian>
<Is64Bit Condition="'$(Platform)' == 'arm64' or '$(Platform)' == 'x64' or '$(Platform)' == 's390x' or '$(Platform)' == 'loongarch64'">true</Is64Bit>
<UseMinimalGlobalizationData Condition="'$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true' or '$(TargetsBrowser)' == 'true'">true</UseMinimalGlobalizationData>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(IsBigEndian)' == 'true'">$(DefineConstants);BIGENDIAN</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(Is64Bit)' != 'true'">$(DefineConstants);TARGET_32BIT</DefineConstants>
<DefineConstants Condition="'$(Is64Bit)' == 'true'">$(DefineConstants);TARGET_64BIT</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(TargetsUnix)' == 'true'">$(DefineConstants);TARGET_UNIX</DefineConstants>
<DefineConstants Condition="'$(TargetsWindows)' == 'true'">$(DefineConstants);TARGET_WINDOWS</DefineConstants>
<DefineConstants Condition="'$(TargetsOSX)' == 'true'">$(DefineConstants);TARGET_OSX</DefineConstants>
<DefineConstants Condition="'$(TargetsMacCatalyst)' == 'true'">$(DefineConstants);TARGET_MACCATALYST</DefineConstants>
<DefineConstants Condition="'$(TargetsiOS)' == 'true'">$(DefineConstants);TARGET_IOS</DefineConstants>
<DefineConstants Condition="'$(TargetstvOS)' == 'true'">$(DefineConstants);TARGET_TVOS</DefineConstants>
<DefineConstants Condition="'$(TargetsBrowser)' == 'true'">$(DefineConstants);TARGET_BROWSER</DefineConstants>
<DefineConstants Condition="'$(TargetsAndroid)' == 'true'">$(DefineConstants);TARGET_ANDROID</DefineConstants>
<DefineConstants Condition="'$(TargetsLinux)' == 'true'">$(DefineConstants);TARGET_LINUX</DefineConstants>
<DefineConstants Condition="'$(TargetsFreeBSD)' == 'true'">$(DefineConstants);TARGET_FREEBSD</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.Shared.xml" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.LittleEndian.xml" Condition="'$(IsBigEndian)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.32bit.xml" Condition="'$(Is64Bit)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.64bit.xml" Condition="'$(Is64Bit)' == 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.NoArmIntrinsics.xml" Condition="'$(SupportsArmIntrinsics)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.NoX86Intrinsics.xml" Condition="'$(SupportsX86Intrinsics)' != 'true'" />
<ILLinkSubstitutionsXmls Include="$(ILLinkSharedDirectory)ILLink.Substitutions.OSX.xml" Condition="'$(IsOSXLike)' == 'true'" />
<ILLinkLinkAttributesXmls Include="$(ILLinkSharedDirectory)ILLink.LinkAttributes.Shared.xml" />
</ItemGroup>
<PropertyGroup>
<ILLinkDescriptorsLibraryBuildXml>$(ILLinkSharedDirectory)ILLink.Descriptors.LibraryBuild.xml</ILLinkDescriptorsLibraryBuildXml>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)Internal\AssemblyAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Padding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Runtime\InteropServices\ComponentActivator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Runtime\InteropServices\IsolatedComponentLoadContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\CriticalHandleMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\CriticalHandleZeroOrMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeHandleMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeWaitHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AccessViolationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Action.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Activator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Activator.RuntimeType.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\AggregateException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppContext.AnyOS.cs" Condition="'$(TargetsBrowser)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppContextConfigHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomain.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomainSetup.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomainUnloadedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ApplicationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ApplicationId.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArgumentException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArgumentNullException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArgumentOutOfRangeException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArithmeticException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Array.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Array.Enumerators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArraySegment.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ArrayTypeMismatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AssemblyLoadEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AssemblyLoadEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AsyncCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Attribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AttributeTargets.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AttributeUsageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\BadImageFormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\BitConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Boolean.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\ArrayPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\ArrayPoolEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\Reader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\ReaderBigEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\ReaderLittleEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\WriterBigEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Binary\WriterLittleEndian.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\ConfigurableArrayPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\IMemoryOwner.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\IPinnable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\MemoryHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\MemoryManager.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\OperationStatus.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\StandardFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\FormattingHelpers.CountDigits.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Constants.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\FormattingHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Boolean.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.G.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.L.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.O.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.R.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.E.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.F.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Decimal.G.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Float.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Guid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.Default.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Signed.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.Default.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.Unsigned.X.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\ParserHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Boolean.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Default.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.G.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.O.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Date.R.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Decimal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Guid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.BigG.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.C.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.LittleG.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpanSplitter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\TlsOverPerCoreLockedStacksArrayPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffers\Utilities.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ByReference.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Byte.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CannotUnloadAppDomainException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Char.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CharEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CLSCompliantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CodeDom\Compiler\GeneratedCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CodeDom\Compiler\IndentedTextWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ArrayList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Comparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\CompatibleComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\ConcurrentQueue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\ConcurrentQueueSegment.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\IProducerConsumerCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Concurrent\IProducerConsumerCollectionDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\DictionaryEntry.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ArraySortHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\Comparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\Dictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\EqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\HashSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\HashSetEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IAsyncEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IAsyncEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ICollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ICollectionDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IDictionaryDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IInternalStringEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\InsertionBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlyCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlyDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlyList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ISet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\IReadOnlySet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\KeyNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\KeyValuePair.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\List.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\Queue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\QueueDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\RandomizedStringEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ReferenceEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\NonRandomizedStringEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Generic\ValueListBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\HashHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\HashHelpers.SerializationInfoTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\Hashtable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ICollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IDictionaryEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IEqualityComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IHashCodeProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IList.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IStructuralComparable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\IStructuralEquatable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\KeyValuePairs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ListDictionaryInternal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\Collection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\CollectionHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\ReadOnlyCollection.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Collections\ObjectModel\ReadOnlyDictionary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\DefaultValueAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\EditorBrowsableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\EditorBrowsableState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\Win32Exception.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Configuration\Assemblies\AssemblyHashAlgorithm.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Configuration\Assemblies\AssemblyVersionCompatibility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Context.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Convert.Base64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Convert.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CoreLib.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\CurrentSystemTimeZone.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DataMisalignedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateOnly.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTimeKind.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTimeOffset.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DayOfWeek.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DBNull.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Decimal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Decimal.DecCalc.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DefaultBinder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Delegate.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\ConstantExpectedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\ExcludeFromCodeCoverageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\NullableAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\RequiresAssemblyFilesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\RequiresDynamicCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\SetsRequiredMembersAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\SuppressMessageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\ConditionalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Contracts\ContractException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Contracts\ContractFailedEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Contracts\Contracts.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Debug.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerBrowsableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerDisplayAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerHiddenAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerNonUserCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerStepperBoundaryAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerStepThroughAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerTypeProxyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebuggerVisualizerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebugProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackFrame.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackFrameExtensions.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackTrace.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackTraceHiddenAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Stopwatch.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\SymbolStore\ISymbolDocumentWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\UnreachableException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DivideByZeroException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DllNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Double.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DuplicateWaitObjectException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Empty.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EntryPointNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Enum.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Enum.EnumInfo.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.SpecialFolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.SpecialFolderOption.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EnvironmentVariableTarget.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Exception.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ExecutionEngineException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FieldAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FlagsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FormattableString.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Function.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\GCMemoryInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Gen2GcCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Calendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarAlgorithmType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarWeekRule.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendricalCalculationsHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CharUnicodeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CharUnicodeInfoData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\ChineseLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.Invariant.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareInfo.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CompareOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeFormatInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeFormatInfoScanner.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeParse.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DateTimeStyles.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DaylightTime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\DigitShapes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\EastAsianLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GregorianCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GregorianCalendarHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GregorianCalendarTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HebrewCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HebrewNumber.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HijriCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IcuLocaleData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IdnMapping.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IdnMapping.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\IdnMapping.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\InvariantModeCasing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\ISOWeek.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseCalendar.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseCalendar.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JapaneseLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\JulianCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\KoreanCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\KoreanLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Normalization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Normalization.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Normalization.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\NumberFormatInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\NumberStyles.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Ordinal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\OrdinalCasing.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\PersianCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\RegionInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\SortKey.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\SortVersion.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\StringInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\StrongBidiCategory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\SurrogateCasing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TaiwanCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TaiwanLunisolarCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextElementEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextInfo.Icu.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TextInfo.Nls.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\ThaiBuddhistCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TimeSpanFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TimeSpanParse.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\TimeSpanStyles.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\UmAlQuraCalendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\UnicodeCategory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Guid.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Half.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\HashCode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IAsyncDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IAsyncResult.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ICloneable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IComparable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IConvertible.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ICustomFormatter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IEquatable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IFormatProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IFormattable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Index.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IndexOutOfRangeException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InsufficientExecutionStackException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InsufficientMemoryException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Int16.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Int32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Int64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IntPtr.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidCastException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidOperationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidProgramException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\InvalidTimeZoneException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\BinaryReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\BinaryWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\BufferedStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Directory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DirectoryInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DirectoryNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\EncodingCache.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\EnumerationOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\EndOfStreamException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\File.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileAccess.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileLoadException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileShare.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStreamOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystemInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\HandleInheritability.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\InvalidDataException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\IOException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Iterator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\MatchCasing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\MatchType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\MemoryStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Path.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PathTooLongException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PinnedBufferMemoryStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\RandomAccess.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\ReadLinesIterator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\SearchOption.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\SearchTarget.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\SeekOrigin.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Stream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StreamReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StreamWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StringReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\StringWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\TextReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\TextWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\UnmanagedMemoryAccessor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\UnmanagedMemoryStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\UnmanagedMemoryStreamWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEntry.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerableFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\BufferedFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\DerivedFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\OSFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IObservable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IObserver.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IProgress.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ISpanFormattable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Lazy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LazyOfTTMetadata.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LoaderOptimization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LoaderOptimizationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LocalAppContextSwitches.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\LocalDataStoreSlot.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MarshalByRefObject.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Marvin.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Marvin.OrdinalIgnoreCase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Math.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MathF.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemberAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Memory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Globalization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Trim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MethodAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MidpointRounding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MissingFieldException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MissingMemberException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MissingMethodException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MulticastNotSupportedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Net\WebUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NonSerializedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NotFiniteNumberException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NotImplementedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NotSupportedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Nullable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\NullReferenceException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.BigInteger.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.DiyFp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Dragon4.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Formatting.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Grisu3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.NumberBuffer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.NumberToFloatingPointBits.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Number.Parsing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\BitOperations.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Matrix3x2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Matrix4x4.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Plane.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Quaternion.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\Vector4.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\VectorDebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Numerics\VectorMath.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Object.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ObjectDisposedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ObsoleteAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OperatingSystem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OperationCanceledException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OutOfMemoryException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\OverflowException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParamArrayAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParamsArray.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParseNumbers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PasteArguments.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PlatformID.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PlatformNotSupportedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ProbabilisticMap.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Progress.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Random.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Random.ImplBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Random.Net5CompatImpl.cs" />
<Compile Condition="'$(Is64Bit)' != 'true'" Include="$(MSBuildThisFileDirectory)System\Random.Xoshiro128StarStarImpl.cs" />
<Compile Condition="'$(Is64Bit)' == 'true'" Include="$(MSBuildThisFileDirectory)System\Random.Xoshiro256StarStarImpl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Range.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\RankException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ReadOnlyMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ReadOnlySpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AmbiguousMatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Assembly.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyAlgorithmIdAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyCompanyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyConfigurationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyContentType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyCopyrightAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyCultureAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyDefaultAliasAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyDelaySignAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyDescriptionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyFileVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyFlagsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyInformationalVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyKeyFileAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyKeyNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyMetadataAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameHelpers.StrongName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameParser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameFlags.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameFormatter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyNameProxy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyProductAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblySignatureKeyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyTitleAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyTrademarkAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Binder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\BindingFlags.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CallingConventions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ConstructorInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CorElementType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeFormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeNamedArgument.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\CustomAttributeTypedArgument.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\DefaultMemberAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\AssemblyBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\AssemblyBuilderAccess.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\EmptyCAHolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\FlowControl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\Label.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\Opcode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\OpCodes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\OpCodeType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\OperandType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\PackingSize.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\PEFileKinds.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\StackBehaviour.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Emit\TypeNameBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\EventAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\EventInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ExceptionHandlingClause.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ExceptionHandlingClauseOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\FieldAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\FieldInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\GenericParameterAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ICustomAttributeProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ImageFileMachine.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\InterfaceMapping.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\IntrospectionExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\InvalidFilterCriteriaException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\InvocationFlags.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\IReflect.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\IReflectableType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\LocalVariableInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ManifestResourceInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MemberFilter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MemberInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MemberTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodBody.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodImplAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\MethodInfo.Internal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Missing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Module.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ModuleResolveEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\NullabilityInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\NullabilityInfoContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ObfuscateAssemblyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ObfuscationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ParameterAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ParameterInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ParameterModifier.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Pointer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\PortableExecutableKinds.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ProcessorArchitecture.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\PropertyAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\PropertyInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ReflectionContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ReflectionTypeLoadException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ResourceAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ResourceLocation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeConstructorInfo.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeMethodBody.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeMethodInfo.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\RuntimeReflectionExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureArrayType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureByRefType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureConstructedGenericType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureGenericMethodParameterType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureGenericParameterType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureHasElementType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignaturePointerType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\SignatureTypeExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\StrongNameKeyPair.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TargetException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TargetInvocationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TargetParameterCountException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeDelegator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeFilter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Metadata\MetadataUpdateHandlerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ResolveEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ResolveEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\FastResourceComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\FileBasedResourceGroveler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\IResourceGroveler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\IResourceReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ManifestBasedResourceGroveler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\MissingManifestResourceException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\MissingSatelliteAssemblyException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\NeutralResourcesLanguageAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceFallbackManager.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceManager.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceReader.Core.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceReader.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\ResourceTypeCode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\RuntimeResourceSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\SatelliteContractVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Resources\UltimateResourceFallbackLocation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\AmbiguousImplementationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AccessedThroughPropertyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncIteratorMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncMethodBuilderAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncStateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncTaskMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncValueTaskMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncValueTaskMethodBuilderT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerArgumentExpressionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerFilePathAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerLineNumberAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallerMemberNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CallingConventions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilationRelaxations.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilationRelaxationsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilerGeneratedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CompilerGlobalScopeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConditionalWeakTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ContractHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CreateNewOnMetadataUpdateAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\CustomConstantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DateTimeConstantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DecimalConstantAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DefaultDependencyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DependencyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DisablePrivateReflectionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DisableRuntimeMarshallingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DiscardableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ExtensionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FixedAddressValueTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FixedBufferAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FormattableStringFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IAsyncStateMachine.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IAsyncStateMachineBox.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ICastable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IndexerNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\INotifyCompletion.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InternalsVisibleToAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IntrinsicAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsByRefLikeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsConst.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsReadOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsVolatile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InterpolatedStringHandlerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InterpolatedStringHandlerArgumentAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IteratorStateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ITuple.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\LoadHint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\MethodCodeType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\MethodImplAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\MethodImplOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ModuleInitializerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ReferenceAssemblyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\PreserveBaseOverridesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RequiredMemberAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeCompatibilityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeFeature.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeWrappedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SkipLocalsInitAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SpecialNameAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\StateMachineAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\StringFreezingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\StrongBox.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SuppressIldasmAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\SwitchExpressionException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TaskAwaiter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TupleElementNamesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TypeForwardedFromAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TypeForwardedToAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\Unsafe.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\UnsafeValueTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ValueTaskAwaiter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\YieldAwaitable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Cer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Consistency.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\CriticalFinalizerObject.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\PrePrepareMethodAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\ReliabilityContractAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\ExceptionNotification.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\HandleProcessCorruptedStateExceptionsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\GCSettings.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\AllowReversePInvokeCallsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Architecture.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ArrayWithOffset.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\BestFitMappingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\BStrWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CallingConvention.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CharSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ClassInterfaceAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ClassInterfaceType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CLong.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CoClassAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CollectionsMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComDefaultInterfaceAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComEventInterfaceAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\COMException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComImportAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComInterfaceType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComMemberType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComSourceInterfacesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IBindCtx.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IConnectionPoint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IConnectionPointContainer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumConnectionPoints.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumConnections.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumMoniker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumString.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IEnumVARIANT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IMoniker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IPersistFile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IRunningObjectTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\IStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeComp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeInfo2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeLib.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComTypes\ITypeLib2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComVisibleAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComWrappers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CriticalHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CULong.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CurrencyWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CustomQueryInterfaceMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\CustomQueryInterfaceResult.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DefaultCharSetAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DefaultDllImportSearchPathsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DefaultParameterValueAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DispatchWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DispIdAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DllImportAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\DllImportSearchPath.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ErrorWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ExternalException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\FieldOffsetAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\GCHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\GCHandleType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\GuidAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\HandleRef.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ICustomAdapter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ICustomFactory.cs" />
<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\InAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InterfaceTypeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InvalidComObjectException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\InvalidOleVariantTypeException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\LayoutKind.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\LCIDConversionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\LibraryImportAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MarshalAsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MarshalDirectiveException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\MemoryMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeLibrary.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NFloat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\OptionalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\OSPlatform.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\OutAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PreserveSigAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ProgIdAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.ProcessArchitecture.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeArrayRankMismatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeArrayTypeMismatchException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeBuffer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SafeHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SEHException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StringMarshalling.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StructLayoutAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\SuppressGCTransitionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\TypeIdentifierAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnknownWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedCallConvAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedFunctionPointerAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\VarEnum.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\VariantWrapper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Scalar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector128.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector128_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector128DebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector256.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector256_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector256DebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector64_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Vector64DebugView_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Enums.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\JitInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\AssemblyLoadContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\LibraryNameVariation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\MemoryFailPoint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\NgenServicingAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ProfileOptimization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Remoting\ObjectHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\DeserializationToken.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\DeserializationTracker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\IDeserializationCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\IFormatterConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\IObjectReference.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\ISafeSerializationData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\ISerializable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnDeserializedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnDeserializingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnSerializedAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OnSerializingAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\OptionalFieldAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SafeSerializationEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationInfo.SerializationGuard.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SerializationInfoEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\StreamingContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ComponentGuaranteesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ComponentGuaranteesOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\FrameworkName.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\PlatformAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\RequiresPreviewFeaturesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ResourceConsumptionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ResourceExposureAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\ResourceScope.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\TargetFrameworkAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\VersioningHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\RuntimeType.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\SByte.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\AllowPartiallyTrustedCallersAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\CryptographicException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\IPermission.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\ISecurityEncodable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\IStackWalk.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\PartialTrustVisibilityLevel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\CodeAccessSecurityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\PermissionState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityAction.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityPermissionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Permissions\SecurityPermissionFlag.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\PermissionSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\IIdentity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\IPrincipal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\PrincipalPolicy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\Principal\TokenImpersonationLevel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecureString.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityCriticalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityCriticalScope.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityElement.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityRulesAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityRuleSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecuritySafeCriticalAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityTransparentAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecurityTreatAsSafeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SuppressUnmanagedCodeSecurityAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\UnverifiableCodeAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\VerificationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SerializableAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Single.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Span.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.BinarySearch.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.Byte.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.Char.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.T.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SR.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StackOverflowException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Comparison.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Manipulation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Searching.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringComparer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringComparison.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringNormalizationExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StringSplitOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SystemException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ASCIIEncoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ASCIIUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ASCIIUtility.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\CodePageDataItem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Decoder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderExceptionFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderNLS.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\DecoderReplacementFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Encoder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderExceptionFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderLatin1BestFitFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderLatin1BestFitFallback.Data.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderNLS.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncoderReplacementFallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Encoding.Internal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingData.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingTable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Encoding.Sealed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Utility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Latin1Utility.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\NormalizationForm.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Rune.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\SpanLineEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\SpanRuneEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\StringBuilder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\StringBuilder.Debug.cs" Condition="'$(Configuration)' == 'Debug'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\StringRuneEnumerator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\TranscodingStream.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\TrimType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\GraphemeClusterBreakType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\TextSegmentationUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf16Utility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf16Utility.Validation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.Transcoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\Unicode\Utf8Utility.Validation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UnicodeDebug.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UnicodeEncoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UnicodeUtility.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF32Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF7Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF8Encoding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\UTF8Encoding.Sealed.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\ValueStringBuilder.AppendFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ThreadAttributes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AbandonedMutexException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ApartmentState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AsyncLocal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AutoResetEvent.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CancellationToken.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CancellationTokenRegistration.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CancellationTokenSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\CompressedStack.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\StackCrawlMark.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\DeferredDisposableLifetime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventResetMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ExecutionContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\IOCompletionCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\IThreadPoolWorkItem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Interlocked.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LazyInitializer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LazyThreadSafetyMode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LockRecursionException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelLock.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelSpinWaiter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelMonitor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ManualResetEvent.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ManualResetEventSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Monitor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeOverlapped.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Overlapped._IOCompletionCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ParameterizedThreadStart.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ReaderWriterLockSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Semaphore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SemaphoreFullException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SemaphoreSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SendOrPostCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SpinLock.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SpinWait.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SynchronizationContext.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\SynchronizationLockException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\AsyncCausalityTracerConstants.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\CachedCompletedInt32Task.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Future.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\FutureFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ProducerConsumerQueues.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Sources\IValueTaskSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Task.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskAsyncEnumerableExtensions.ToBlockingEnumerable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCache.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCanceledException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCompletionSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCompletionSource_T.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskContinuation.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskExceptionHolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskFactory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskScheduler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskSchedulerException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ThreadPoolTaskScheduler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TplEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ValueTask.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Thread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadAbortException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadExceptionEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadInt64PersistentCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadInterruptedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadLocal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolWorkQueue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPriority.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadStart.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadStartException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadState.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadStateException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Timeout.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimeoutHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PeriodicTimer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Timer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimerQueue.Portable.cs" Condition="'$(FeaturePortableTimer)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Volatile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandleCannotBeOpenedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandleExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ThreadStaticAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ThrowHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeOnly.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeoutException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeSpan.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZone.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.AdjustmentRule.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.FullGlobalizationData.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.StringSerializer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.TransitionTime.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Tuple.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TupleSlim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TupleExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Type.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Type.Enum.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Type.Helpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeCode.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypedReference.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeInitializationException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeLoadException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TypeUnloadedException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UInt16.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UInt32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UInt64.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UIntPtr.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnauthorizedAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnhandledExceptionEventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnhandledExceptionEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\UnitySerializationHolder.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ValueTuple.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Version.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Void.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\WeakReference.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\WeakReference.T.cs" />
<Compile Include="$(CommonPath)Interop\Interop.Calendar.cs">
<Link>Common\Interop\Interop.Calendar.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Casing.cs">
<Link>Common\Interop\Interop.Casing.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Collation.cs">
<Link>Common\Interop\Interop.Collation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.ICU.cs">
<Link>Common\Interop\Interop.ICU.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.ICU.iOS.cs" Condition="'$(IsiOSLike)' == 'true'">
<Link>Common\Interop\Interop.ICU.iOS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Idna.cs">
<Link>Common\Interop\Interop.Idna.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Locale.cs">
<Link>Common\Interop\Interop.Locale.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Normalization.cs">
<Link>Common\Interop\Interop.Normalization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.ResultCode.cs">
<Link>Common\Interop\Interop.ResultCode.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.TimeZoneDisplayNameType.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'">
<Link>Common\Interop\Interop.TimeZoneDisplayNameType.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.TimeZoneInfo.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'">
<Link>Common\Interop\Interop.TimeZoneInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Interop.Utils.cs">
<Link>Common\Interop\Interop.Utils.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.Errors.cs">
<Link>Common\Interop\Interop.Errors.cs</Link>
</Compile>
<!-- The CLR internally uses a BOOL type analogous to the Windows BOOL type on Unix -->
<Compile Include="$(CommonPath)Interop\Windows\Interop.BOOL.cs">
<Link>Common\Interop\Windows\Interop.BOOL.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Globalization.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Globalization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ResolveLocaleName.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ResolveLocaleName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Normaliz\Interop.Idna.cs">
<Link>Common\Interop\Windows\Normaliz\Interop.Idna.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Normaliz\Interop.Normalization.cs">
<Link>Common\Interop\Windows\Normaliz\Interop.Normalization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs">
<Link>Common\DisableRuntimeMarshalling.cs</Link>
</Compile>
<Compile Include="$(CommonPath)SkipLocalsInit.cs">
<Link>Common\SkipLocalsInit.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\LocalAppContextSwitches.Common.cs">
<Link>Common\System\LocalAppContextSwitches.Common.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\HResults.cs">
<Link>Common\System\HResults.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\NotImplemented.cs">
<Link>Common\System\NotImplemented.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Obsoletions.cs">
<Link>Common\System\Obsoletions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Sha1ForNonSecretPurposes.cs">
<Link>Common\System\Sha1ForNonSecretPurposes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\SR.cs">
<Link>Common\System\SR.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Collections\Generic\EnumerableHelpers.cs">
<Link>Common\System\Collections\Generic\EnumerableHelpers.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Collections\Generic\BitHelper.cs">
<Link>Common\System\Collections\Generic\BitHelper.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.cs">
<Link>Common\System\IO\PathInternal.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.CaseSensitivity.cs">
<Link>Common\System\IO\PathInternal.CaseSensitivity.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Runtime\Versioning\NonVersionableAttribute.cs">
<Link>Common\System\Runtime\Versioning\NonVersionableAttribute.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\StringBuilderCache.cs">
<Link>Common\System\Text\StringBuilderCache.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs">
<Link>Common\System\Text\ValueStringBuilder.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.AppendSpanFormattable.cs">
<Link>Common\System\Text\ValueStringBuilder.AppendSpanFormattable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Threading\OpenExistingResult.cs">
<Link>Common\System\Threading\OpenExistingResult.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Threading\Tasks\TaskToApm.cs">
<Link>Common\System\Threading\Tasks\TaskToApm.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(IsMobileLike)' != 'true' and '$(TargetsCoreRT)' != 'true'">
<Compile Include="$(CommonPath)Interop\Interop.HostPolicy.cs">
<Link>Common\Interop\Interop.HostPolicy.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\AssemblyDependencyResolver.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IsMobileLike)' == 'true' or '$(TargetsCoreRT)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\AssemblyDependencyResolver.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IsMobileLike)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.ActivityControl.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.ActivityControl.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EtwEnableCallback.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EtwEnableCallback.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EVENT_INFO_CLASS.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EVENT_INFO_CLASS.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\ActivityTracker.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\DiagnosticCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\CounterGroup.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\CounterPayload.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventActivityOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventDescriptor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipe.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipeEventDispatcher.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipeEventProvider.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventPipePayloadDecoder.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\EventSourceException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\FrameworkEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\IEventProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\IncrementingEventCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\IncrementingPollingCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\NativeRuntimeEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\PollingCounter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\RuntimeEventSource.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\Winmeta.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\ArrayTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\ConcurrentSet.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\ConcurrentSetItem.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\DataCollector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EmptyStruct.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EnumHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventDataAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventFieldAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventFieldFormat.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventIgnoreAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventPayload.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\EventSourceOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\InvokeTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\NameInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\PropertyAnalysis.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\SimpleEventTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\Statics.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingDataCollector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingDataType.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventHandleTable.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTraits.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs" Condition="'$(FeatureXplatEventSource)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\QCallHandles.cs" Condition="'$(TargetsCoreRT)' != 'true'" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)\..\..\Common\src\System\HexConverter.cs">
<Link>Common\System\HexConverter.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EncryptDecrypt.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EncryptDecrypt.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventActivityIdControl.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventActivityIdControl.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventRegister.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventRegister.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventSetInformation.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventSetInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventTraceGuidsEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventTraceGuidsEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventUnregister.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventUnregister.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventWriteString.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventWriteString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.EventWriteTransfer.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.EventWriteTransfer.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.LookupAccountNameW.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.LookupAccountNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegCloseKey.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegCloseKey.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegCreateKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegCreateKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegDeleteKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegDeleteKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegDeleteValue.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegDeleteValue.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegEnumKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegEnumKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegEnumValue.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegEnumValue.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegFlushKey.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegFlushKey.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegistryConstants.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegistryConstants.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegOpenKeyEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegOpenKeyEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegQueryValueEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegQueryValueEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.RegSetValueEx.cs">
<Link>Common\Interop\Windows\Advapi32\Interop.RegSetValueEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs">
<Link>Common\Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenRandom.GetRandomBytes.cs">
<Link>Common\Interop\Windows\BCrypt\Interop.BCryptGenRandom.GetRandomBytes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.NTSTATUS.cs">
<Link>Common\Interop\Windows\BCrypt\Interop.NTSTATUS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptProtectMemory.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.CryptProtectMemory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.BOOLEAN.cs">
<Link>Common\Interop\Windows\Interop.BOOLEAN.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs">
<Link>Common\Interop\Windows\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CancelIoEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CancelIoEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CompletionPort.cs" Condition="'$(FeaturePortableThreadPool)' == 'true'">
<Link>Common\Interop\Windows\Kernel32\Interop.CompletionPort.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ConditionVariable.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ConditionVariable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CopyFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CopyFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CopyFileEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CopyFileEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtCreateFile.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtCreateFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtStatus.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtStatus.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.IO_STATUS_BLOCK.cs">
<Link>Common\Interop\Windows\NtDll\Interop.IO_STATUS_BLOCK.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs">
<Link>Common\Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.DeleteFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.DeleteFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.DeleteVolumeMountPoint.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.DeleteVolumeMountPoint.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateFile_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateFile_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CreateSymbolicLink.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CreateSymbolicLink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CriticalSection.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CriticalSection.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.DeviceIoControl.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.DeviceIoControl.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ExpandEnvironmentStrings.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ExpandEnvironmentStrings.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_BASIC_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_BASIC_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_ALLOCATION_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_ALLOCATION_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_END_OF_FILE_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_END_OF_FILE_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_STANDARD_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_STANDARD_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FILE_TIME.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FILE_TIME.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileAttributes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileAttributes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FindNextFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FindNextFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileOperations.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileOperations.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileTimeToSystemTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileTimeToSystemTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileTypes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileTypes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FindClose.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FindClose.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FindFirstFileEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FindFirstFileEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FlushFileBuffers.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FlushFileBuffers.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FreeLibrary.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FreeLibrary.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GenericOperations.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GenericOperations.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetLastError.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetLastError.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GET_FILEEX_INFO_LEVELS.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GET_FILEEX_INFO_LEVELS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetComputerName.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetComputerName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetConsoleOutputCP.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetConsoleOutputCP.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetCPInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCPInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetCurrentDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCurrentDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetCurrentProcess.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCurrentProcess.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Kernel32\Interop.GetCurrentProcessId.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetCurrentProcessId.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFileAttributesEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFileAttributesEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFileInformationByHandleEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFileInformationByHandleEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFileType_SafeHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFileType_SafeHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFinalPathNameByHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFinalPathNameByHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetFullPathNameW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetFullPathNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetLogicalDrives.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetLogicalDrives.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetLongPathNameW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetLongPathNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetModuleFileName.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetModuleFileName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetNativeSystemInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetNativeSystemInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetOverlappedResult.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetOverlappedResult.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetProcessMemoryInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetProcessMemoryInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetProcessTimes_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetProcessTimes_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetStdHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetStdHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemDirectoryW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemDirectoryW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemInfo.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemInfo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetSystemTimes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetSystemTimes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetTempFileNameW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetTempFileNameW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetTempPathW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetTempPathW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetVolumeInformation.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetVolumeInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GlobalMemoryStatusEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GlobalMemoryStatusEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.HandleTypes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.HandleTypes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.IsWow64Process_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.IsWow64Process_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LoadLibraryEx_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.LoadLibraryEx_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LocalAlloc.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.LocalAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LockFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.LockFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MAX_PATH.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MAX_PATH.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MemOptions.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MemOptions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MEMORY_BASIC_INFORMATION.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MEMORY_BASIC_INFORMATION.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MEMORYSTATUSEX.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MEMORYSTATUSEX.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MultiByteToWideChar.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MultiByteToWideChar.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.MoveFileEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.MoveFileEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.OSVERSIONINFOEX.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.OSVERSIONINFOEX.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.OutputDebugString.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.OutputDebugString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.QueryPerformanceCounter.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.QueryPerformanceCounter.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.QueryPerformanceFrequency.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.QueryPerformanceFrequency.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.QueryUnbiasedInterruptTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.QueryUnbiasedInterruptTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_NativeOverlapped.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_NativeOverlapped.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FileScatterGather.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FileScatterGather.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.RemoveDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.RemoveDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.REPARSE_DATA_BUFFER.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.REPARSE_DATA_BUFFER.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.ReplaceFile.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.ReplaceFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SECURITY_ATTRIBUTES.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SECURITY_ATTRIBUTES.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.UNICODE_STRING.cs">
<Link>Common\Interop\Windows\Interop.UNICODE_STRING.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SecurityOptions.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SecurityOptions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.SECURITY_QUALITY_OF_SERVICE.cs">
<Link>Common\Interop\Windows\Interop.SECURITY_QUALITY_OF_SERVICE.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.OBJECT_ATTRIBUTES.cs">
<Link>Common\Interop\Windows\Interop.OBJECT_ATTRIBUTES.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetConsoleCtrlHandler.cs">
<Link>Common\Interop\Windows\Interop.SetConsoleCtrlHandler.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetCurrentDirectory.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetCurrentDirectory.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetFileAttributes.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetFileAttributes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetFileInformationByHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetFileInformationByHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetFilePointerEx.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetFilePointerEx.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetLastError.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetLastError.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetThreadErrorMode.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetThreadErrorMode.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SYSTEM_INFO.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SYSTEM_INFO.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SystemTimeToFileTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SystemTimeToFileTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.TimeZone.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.TimeZone.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.TimeZone.Registry.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.TimeZone.Registry.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.TzSpecificLocalTimeToSystemTime.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.TzSpecificLocalTimeToSystemTime.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VerifyVersionExW.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VerifyVersionExW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VerSetConditionMask.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VerSetConditionMask.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VirtualAlloc_Ptr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VirtualAlloc_Ptr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VirtualFree.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VirtualFree.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.VirtualQuery_Ptr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.VirtualQuery_Ptr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WideCharToMultiByte.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WideCharToMultiByte.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WIN32_FILE_ATTRIBUTE_DATA.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WIN32_FILE_ATTRIBUTE_DATA.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WIN32_FIND_DATA.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WIN32_FIND_DATA.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_NativeOverlapped.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_NativeOverlapped.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.FILE_FULL_DIR_INFORMATION.cs">
<Link>Common\Interop\Windows\NtDll\Interop.FILE_FULL_DIR_INFORMATION.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.FILE_INFORMATION_CLASS.cs">
<Link>Common\Interop\Windows\NtDll\Interop.FILE_INFORMATION_CLASS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtQueryDirectoryFile.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtQueryDirectoryFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtQueryInformationFile.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtQueryInformationFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.NtQuerySystemInformation.cs">
<Link>Common\Interop\Windows\NtDll\Interop.NtQuerySystemInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.RtlGetVersion.cs">
<Link>Common\Interop\Windows\NtDll\Interop.RtlGetVersion.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\NtDll\Interop.SYSTEM_LEAP_SECOND_INFORMATION.cs">
<Link>Common\Interop\Windows\NtDll\Interop.SYSTEM_LEAP_SECOND_INFORMATION.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\OleAut32\Interop.SysAllocStringByteLen.cs">
<Link>Common\Interop\Windows\OleAut32\Interop.SysAllocStringByteLen.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\OleAut32\Interop.SysAllocStringLen.cs">
<Link>Common\Interop\Windows\OleAut32\Interop.SysAllocStringLen.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\OleAut32\Interop.SysFreeString.cs">
<Link>Common\Interop\Windows\OleAut32\Interop.SysFreeString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ole32\Interop.CLSIDFromProgID.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CLSIDFromProgID.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ole32\Interop.CoCreateGuid.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CoCreateGuid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Ole32\Interop.CoGetStandardMarshal.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CoGetStandardMarshal.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ole32\Interop.CoTaskMemAlloc.cs">
<Link>Common\Interop\Windows\Ole32\Interop.CoTaskMemAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Secur32\Interop.GetUserNameExW.cs">
<Link>Common\Interop\Windows\Secur32\Interop.GetUserNameExW.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Shell32\Interop.SHGetKnownFolderPath.cs">
<Link>Common\Interop\Windows\Shell32\Interop.SHGetKnownFolderPath.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Ucrtbase\Interop.MemAlloc.cs">
<Link>Common\Interop\Windows\Ucrtbase\Interop.MemAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.Constants.cs">
<Link>Common\Interop\Windows\User32\Interop.Constants.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.LoadString.cs">
<Link>Common\Interop\Windows\User32\Interop.LoadString.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Interop.LongFileTime.cs">
<Link>Common\Interop\Windows\Interop.LongFileTime</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.SendMessageTimeout.cs">
<Link>Common\Interop\Windows\User32\Interop.SendMessageTimeout.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.GetProcessWindowStation.cs">
<Link>Common\Interop\Windows\User32\Interop.GetProcessWindowStation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.GetUserObjectInformation.cs">
<Link>Common\Interop\Windows\User32\Interop.GetUserObjectInformation.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\User32\Interop.USEROBJECTFLAGS.cs">
<Link>Common\Interop\Windows\User32\Interop.USEROBJECTFLAGS.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\FileSystem.Attributes.Windows.cs">
<Link>Common\System\IO\FileSystem.Attributes.Windows.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\FileSystem.DirectoryCreation.Windows.cs">
<Link>Common\System\IO\FileSystem.DirectoryCreation.Windows.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.Windows.cs">
<Link>Common\System\IO\PathInternal.Windows.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Win32\RegistryKey.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.OverlappedValueTaskSource.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFindHandle.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeRegistryHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeRegistryHandle.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomain.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffer.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.Win32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Win32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\Win32Exception.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebugProvider.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Stopwatch.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\RuntimeEventSourceHelper.Windows.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureInfo.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HijriCalendar.Win32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Guid.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DisableMediaInsertionPrompt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DriveInfoInternal.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystemInfo.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Path.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PathHelper.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\RandomAccess.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEntry.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerator.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\AsyncWindowsFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamHelpers.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\SyncWindowsFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PasteArguments.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\LibraryNameVariation.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\MemoryFailPoint.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StandardOleMarshalObject.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecureString.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelMonitor.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimerQueue.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Win32.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureComWrappers)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComWrappers.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureCominterop)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.NoCom.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ComEventsHelpers.NoCom.cs" />
</ItemGroup>
<!-- CoreCLR uses PAL layer that emulates Windows API on Unix. This is bridge for that PAL layer. See issue dotnet/runtime/#31721. -->
<ItemGroup Condition="'$(TargetsWindows)' == 'true' or '$(FeatureCoreCLR)'=='true'">
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeWaitHandle.Windows.cs" />
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.CloseHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.CloseHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Constants.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Constants.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.EventWaitHandle.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.EventWaitHandle.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetEnvironmentVariable.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetEnvironmentVariable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.GetEnvironmentStrings.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.GetEnvironmentStrings.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FreeEnvironmentStrings.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FreeEnvironmentStrings.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FormatMessage.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.FormatMessage.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Mutex.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Mutex.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.Semaphore.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.Semaphore.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.SetEnvironmentVariable.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.SetEnvironmentVariable.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.WriteFile_IntPtr.cs">
<Link>Common\Interop\Windows\Kernel32\Interop.WriteFile_SafeHandle_IntPtr.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\Win32Marshal.cs">
<Link>Common\System\IO\Win32Marshal.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Memory\FixedBufferExtensions.cs">
<Link>Common\System\Memory\FixedBufferExtensions.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Variables.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Semaphore.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.Windows.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'">
<Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs">
<Link>Common\Interop\Unix\Interop.Errors.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\Interop.IOErrors.cs">
<Link>Common\Interop\Unix\Interop.IOErrors.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs">
<Link>Common\Interop\Unix\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\Interop.DefaultPathBufferSize.cs">
<Link>Common\Interop\Unix\Interop.DefaultPathBufferSize.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Access.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Access.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ChDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ChDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ChMod.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ChMod.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Close.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Close.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.CopyFile.cs">
<Link>Common\Interop\Unix\System.Native\Interop.CopyFile.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ErrNo.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ErrNo.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.UnixFileSystemTypes.cs">
<Link>Common\Interop\Unix\System.Native\Interop.UnixFileSystemTypes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FLock.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FLock.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FSync.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FSync.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FTruncate.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FTruncate.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetCpuUtilization.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetCpuUtilization.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetCwd.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetCwd.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetDefaultTimeZone.Android.cs" Condition="'$(TargetsAndroid)' == 'true'">
<Link>Common\Interop\Unix\System.Native\Interop.GetDefaultTimeZone.Android.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetHostName.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetHostName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetOSArchitecture.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetOSArchitecture.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetProcessPath.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetProcessPath.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetRandomBytes.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetRandomBytes.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetSystemTimeAsTicks.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetSystemTimeAsTicks.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetTimestamp.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetTimestamp.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetUnixName.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetUnixName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetUnixVersion.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetUnixVersion.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetUnixRelease.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetUnixRelease.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.IOVector.cs">
<Link>Common\Interop\Unix\System.Native\Interop.IOVector.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LChflags.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LChflags.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Link.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Link.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LockFileRegion.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LockFileRegion.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Log.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Log.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LowLevelMonitor.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LowLevelMonitor.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.LSeek.cs">
<Link>Common\Interop\Unix\System.Native\Interop.LSeek.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MemAlloc.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MemAlloc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MkDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MkDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MksTemps.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MksTemps.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.MountPoints.cs">
<Link>Common\Interop\Unix\System.Native\Interop.MountPoints.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Open.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Open.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.OpenFlags.cs">
<Link>Common\Interop\Unix\System.Native\Interop.OpenFlags.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PathConf.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PathConf.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Permissions.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Permissions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PosixFAdvise.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PosixFAdvise.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FAllocate.cs">
<Link>Common\Interop\Unix\System.Native\Interop.FAllocate.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PRead.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PRead.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PReadV.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PReadV.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PWrite.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PWrite.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PWriteV.cs">
<Link>Common\Interop\Unix\System.Native\Interop.PWriteV.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Read.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Read.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ReadDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ReadDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ReadLink.cs">
<Link>Common\Interop\Unix\System.Native\Interop.ReadLink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Rename.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Rename.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.RmDir.cs">
<Link>Common\Interop\Unix\System.Native\Interop.RmDir.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Stat.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.Span.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Stat.Span.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SymLink.cs">
<Link>Common\Interop\Unix\System.Native\Interop.SymLink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SysConf.cs">
<Link>Common\Interop\Unix\System.Native\Interop.SysConf.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SysLog.cs">
<Link>Common\Interop\Unix\System.Native\Interop.SysLog.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Unlink.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Unlink.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.UTimensat.cs">
<Link>Common\Interop\Unix\System.Native\Interop.UTimensat.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Write.cs">
<Link>Common\Interop\Unix\System.Native\Interop.Write.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Text\ValueUtf8Converter.cs">
<Link>Common\System\Text\ValueUtf8Converter.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\IO\PathInternal.Unix.cs">
<Link>Common\System\IO\PathInternal.Unix.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Unix.cs" Condition="'$(TargetsAndroid)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)Internal\Console.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(CommonPath)Interop\Android\Interop.Logcat.cs" Condition="'$(TargetsAndroid)' == 'true'">
<Link>Common\Interop\Android\Interop.Logcat.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Android\Interop.Libraries.cs" Condition="'$(TargetsAndroid)' == 'true'">
<Link>Common\Interop\Android\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\AppDomain.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Buffer.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ComponentModel\Win32Exception.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DateTime.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\DebugProvider.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Stopwatch.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\Tracing\RuntimeEventSourceHelper.Unix.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.NoRegistry.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.UnixOrBrowser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSVersion.OSX.cs" Condition="'$(IsOSXLike)' == 'true' AND '$(TargetsMacCatalyst)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSVersion.MacCatalyst.cs" Condition="'$(TargetsMacCatalyst)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.GetFolderPathCore.Unix.cs" Condition="'$(IsiOSLike)' != 'true' and '$(TargetsAndroid)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarData.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureData.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CultureInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.LoadICU.Unix.cs" Condition="'$(IsiOSLike)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\GlobalizationMode.LoadICU.iOS.cs" Condition="'$(IsiOSLike)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\HijriCalendar.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Guid.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStatus.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystem.Exists.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileSystemInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Path.Unix.cs" />
<Compile Condition="'$(IsiOSLike)' == 'true'" Include="$(MSBuildThisFileDirectory)System\IO\Path.Unix.iOS.cs" />
<Compile Condition="'$(IsiOSLike)' != 'true'" Include="$(MSBuildThisFileDirectory)System\IO\Path.Unix.NoniOS.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PersistedFiles.Names.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\RandomAccess.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEntry.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Enumeration\FileSystemEnumerator.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\FileStreamHelpers.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\Strategies\UnixFileStreamStrategy.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\PasteArguments.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Loader\LibraryNameVariation.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\MemoryFailPoint.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\Marshal.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.Unix.cs" Condition="'$(TargetsBrowser)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StandardOleMarshalObject.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Security\SecureString.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelMonitor.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\TimerQueue.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Unix.Android.cs" Condition="'$(TargetsAndroid)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.Unix.NonAndroid.cs" Condition="'$(TargetsAndroid)' != 'true'" />
</ItemGroup>
<ItemGroup Condition="('$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true') and '$(IsOSXLike)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStatus.SetTimes.OtherUnix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true'">
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetEUid.cs" Link="Common\Interop\Unix\Interop.GetEUid.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.IsMemberOfGroup.cs" Link="Common\Interop\Unix\Interop.IsMemberOfGroup.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetPwUid.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetPwUid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Unix\System.Native\Interop.GetPid.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetPid.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.InitializeTerminalAndSignalHandling.cs" Link="Common\Interop\Unix\Interop.InitializeTerminalAndSignalHandling.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.PosixSignal.cs" Link="Common\Interop\Unix\Interop.PosixSignal.cs" />
<Compile Include="$(CommonPath)Interop\FreeBSD\Interop.Process.GetProcInfo.cs" Condition="'$(TargetsFreeBSD)' == 'true'" Link="Common\Interop\FreeBSD\Interop.Process.GetProcInfo.cs" />
<Compile Include="$(CommonPath)Interop\BSD\System.Native\Interop.Sysctl.cs" Condition="'$(TargetsFreeBSD)' == 'true'" Link="Common\Interop\BSD\System.Native\Interop.Sysctl.cs" />
<Compile Include="$(CommonPath)Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs" Condition="'$(TargetsLinux)' == 'true'" Link="Common\Interop\Linux\Interop.ProcFsStat.TryReadStatusFile.cs" />
<Compile Include="$(CommonPath)System\IO\StringParser.cs" Condition="'$(TargetsLinux)' == 'true'" Link="Common\System\IO\StringParser.cs" />
<Compile Include="$(CommonPath)Interop\OSX\Interop.libproc.GetProcessInfoById.cs" Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true'" Link="Common\Interop\OSX\Interop.libproc.GetProcessInfoById.cs" />
<Compile Include="$(CommonPath)Interop\SunOS\procfs\Interop.ProcFsStat.TryReadProcessStatusInfo.cs" Condition="'$(Targetsillumos)' == 'true' or '$(TargetsSolaris)' == 'true'" Link="Common\Interop\SunOS\Interop.ProcFsStat.TryReadProcessStatusInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.FreeBSD.cs" Condition="'$(TargetsFreeBSD)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Linux.cs" Condition="'$(TargetsLinux)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSX.cs" Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.iOS.cs" Condition="'$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.OSVersion.Unix.cs" Condition="'$(IsOSXLike)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.SunOS.cs" Condition="'$(Targetsillumos)' == 'true' or '$(TargetsSolaris)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.FullGlobalizationData.Unix.cs" Condition="'$(UseMinimalGlobalizationData)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DriveInfoInternal.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PersistedFiles.Unix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true' and '$(IsMobileLike)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsBrowser)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\AppContext.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Environment.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\DriveInfoInternal.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IO\PersistedFiles.Browser.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\RuntimeInformation.Browser.cs" />
</ItemGroup>
<ItemGroup Condition="'$(UseMinimalGlobalizationData)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\TimeZoneInfo.MinimalGlobalizationData.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IsOSXLike)' == 'true'">
<Compile Include="$(CommonPath)Interop\OSX\Interop.libobjc.cs">
<Link>Common\Interop\OSX\Interop.libobjc.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\OSX\Interop.Libraries.cs">
<Link>Common\Interop\OSX\Interop.Libraries.cs</Link>
</Compile>
<Compile Include="$(CommonPath)Interop\OSX\Interop.libc.cs">
<Link>Common\Interop\OSX\Interop.libc.cs</Link>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)System\IO\FileStatus.SetTimes.OSX.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsMacCatalyst)' == 'true'">
<Compile Include="$(CommonPath)Interop\OSX\System.Native\Interop.iOSSupportVersion.cs" Link="Common\Interop\OSX\System.Native\Interop.iOSSupportVersion.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsX86Intrinsics)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Aes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\AvxVnni.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Fma.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Lzcnt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Pclmulqdq.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Popcnt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse2.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse41.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse42.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Ssse3.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\X86Base.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsX86Intrinsics)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Aes.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Avx2.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\AvxVnni.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi1.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Bmi2.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Fma.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Lzcnt.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Pclmulqdq.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Popcnt.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse2.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse3.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse41.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Sse42.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\Ssse3.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\X86\X86Base.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsArmIntrinsics)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\AdvSimd.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Aes.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\ArmBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Crc32.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Dp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Rdm.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha256.cs" />
</ItemGroup>
<ItemGroup Condition="'$(SupportsArmIntrinsics)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\AdvSimd.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Aes.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\ArmBase.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Crc32.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Dp.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Rdm.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha1.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Intrinsics\Arm\Sha256.PlatformNotSupported.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeaturePortableThreadPool)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPool.Portable.cs" Condition="'$(FeatureCoreCLR)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPool.Portable.Windows.cs" Condition="'$(TargetsWindows)' == 'true' and '$(FeatureCoreCLR)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPool.Portable.Unix.cs" Condition="'$(TargetsUnix)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeRuntimeEventSource.PortableThreadPool.cs" Condition="'$(FeatureCoreCLR)' != 'true' and '$(FeatureMono)' != 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeRuntimeEventSource.PortableThreadPool.NativeSinks.cs" Condition="'$(FeatureCoreCLR)' == 'true' or '$(FeatureMono)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.Blocking.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.GateThread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.HillClimbing.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.HillClimbing.Complex.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.IO.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.ThreadCounts.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.WaitThread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.WorkerThread.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.WorkerTracking.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.CpuUtilizationReader.Unix.cs" Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PortableThreadPool.CpuUtilizationReader.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelLifoSemaphore.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\LowLevelLifoSemaphore.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\PreAllocatedOverlapped.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\RegisteredWaitHandle.Portable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandle.Unix.cs" Condition="'$(TargetsUnix)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandle.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolBoundHandleOverlapped.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureObjCMarshal)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCMarshal.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCTrackedTypeAttribute.cs" />
<Compile Include="$(CommonPath)Interop\OSX\System.Native\Interop.AutoreleasePool.cs" Link="Common\Interop\OSX\System.Native\Interop.AutoreleasePool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\AutoreleasePool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadPoolWorkQueue.AutoreleasePool.OSX.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureObjCMarshal)' != 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCMarshal.PlatformNotSupported.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\ObjectiveC\ObjectiveCTrackedTypeAttribute.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureCoreCLR)' != 'true' and ('$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true')">
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Thread.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Microsoft\Win32\SafeHandles\SafeWaitHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Semaphore.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandle.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.HandleManager.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.ThreadWaitInfo.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.Unix.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitSubsystem.WaitableObject.Unix.cs" />
</ItemGroup>
<ItemGroup Condition="'$(FeatureCoreCLR)' != 'true' and '$(TargetsWindows)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Thread.Windows.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\WaitHandle.Windows.cs" />
<Compile Include="$(CommonPath)\Interop\Windows\Kernel32\Interop.Threading.cs">
<Link>Interop\Windows\Kernel32\Interop.Threading.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(FeatureGenericMath)' == 'true'">
<Compile Include="$(MSBuildThisFileDirectory)System\IAdditionOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IAdditiveIdentity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IBitwiseOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IComparisonOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IDecrementOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IDivisionOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IEqualityOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IFloatingPoint.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IIncrementOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IInteger.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IMinMaxValue.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IModulusOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IMultiplicativeIdentity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IMultiplyOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\INumber.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IParseable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IShiftOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ISpanParseable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ISubtractionOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IUnaryNegationOperators.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\IUnaryPlusOperators.cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Interop.LibraryImportGenerator</AssemblyName>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>Preview</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Microsoft.Interop</RootNamespace>
<IsRoslynComponent>true</IsRoslynComponent>
<RunAnalyzers>true</RunAnalyzers>
<!-- Disable RS2008: Enable analyzer release tracking
Diagnostics in runtime use a different mechanism (docs/project/list-of-diagnostics.md) -->
<NoWarn>RS2008;$(NoWarn)</NoWarn>
<!-- Packaging properties -->
<!-- In the future LibraryImportGenerator might ship as part of a package, but meanwhile disable packaging. -->
<IsPackable>false</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<PackageProjectUrl>https://github.com/dotnet/runtime/tree/main/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator</PackageProjectUrl>
<Description>LibraryImportGenerator</Description>
<PackageTags>LibraryImportGenerator, analyzers</PackageTags>
<!-- TODO: Enable when this package shipped. -->
<DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
</PropertyGroup>
<ItemGroup>
<!-- Code included from System.Runtime.InteropServices -->
<Compile Include="$(CommonPath)System\Runtime\InteropServices\StringMarshalling.cs" Link="Production\StringMarshalling.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs"
DesignTime="True"
AutoGen="True"
DependentUpon="Resources.resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx"
Generator="ResXFileCodeGenerator"
LastGenOutput="Resources.Designer.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="$(TargetPath)" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(AssemblyName).props" Pack="true" PackagePath="build" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" Pack="true" PackagePath="analyzers/dotnet/cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Interop.LibraryImportGenerator</AssemblyName>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>Preview</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Microsoft.Interop</RootNamespace>
<IsRoslynComponent>true</IsRoslynComponent>
<RunAnalyzers>true</RunAnalyzers>
<!-- Disable RS2008: Enable analyzer release tracking
Diagnostics in runtime use a different mechanism (docs/project/list-of-diagnostics.md) -->
<NoWarn>RS2008;$(NoWarn)</NoWarn>
<!-- Packaging properties -->
<!-- In the future LibraryImportGenerator might ship as part of a package, but meanwhile disable packaging. -->
<IsPackable>false</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<PackageProjectUrl>https://github.com/dotnet/runtime/tree/main/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator</PackageProjectUrl>
<Description>LibraryImportGenerator</Description>
<PackageTags>LibraryImportGenerator, analyzers</PackageTags>
<!-- TODO: Enable when this package shipped. -->
<DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
</PropertyGroup>
<ItemGroup>
<!-- Code included from System.Runtime.InteropServices -->
<Compile Include="$(CoreLibSharedDir)System\Runtime\InteropServices\StringMarshalling.cs" Link="Production\StringMarshalling.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs"
DesignTime="True"
AutoGen="True"
DependentUpon="Resources.resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx"
Generator="ResXFileCodeGenerator"
LastGenOutput="Resources.Designer.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="$(TargetPath)" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(AssemblyName).props" Pack="true" PackagePath="build" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" Pack="true" PackagePath="analyzers/dotnet/cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System
{
public sealed partial class DataMisalignedException : System.SystemException
{
public DataMisalignedException() { }
public DataMisalignedException(string? message) { }
public DataMisalignedException(string? message, System.Exception? innerException) { }
}
public partial class DllNotFoundException : System.TypeLoadException
{
public DllNotFoundException() { }
protected DllNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public DllNotFoundException(string? message) { }
public DllNotFoundException(string? message, System.Exception? inner) { }
}
}
namespace System.IO
{
public partial class UnmanagedMemoryAccessor : System.IDisposable
{
protected UnmanagedMemoryAccessor() { }
public UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity) { }
public UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { }
public bool CanRead { get { throw null; } }
public bool CanWrite { get { throw null; } }
public long Capacity { get { throw null; } }
protected bool IsOpen { get { throw null; } }
public void Dispose() { }
protected virtual void Dispose(bool disposing) { }
protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { }
public int ReadArray<T>(long position, T[] array, int offset, int count) where T : struct { throw null; }
public bool ReadBoolean(long position) { throw null; }
public byte ReadByte(long position) { throw null; }
public char ReadChar(long position) { throw null; }
public decimal ReadDecimal(long position) { throw null; }
public double ReadDouble(long position) { throw null; }
public short ReadInt16(long position) { throw null; }
public int ReadInt32(long position) { throw null; }
public long ReadInt64(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public sbyte ReadSByte(long position) { throw null; }
public float ReadSingle(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public ushort ReadUInt16(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public uint ReadUInt32(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public ulong ReadUInt64(long position) { throw null; }
public void Read<T>(long position, out T structure) where T : struct { throw null; }
public void Write(long position, bool value) { }
public void Write(long position, byte value) { }
public void Write(long position, char value) { }
public void Write(long position, decimal value) { }
public void Write(long position, double value) { }
public void Write(long position, short value) { }
public void Write(long position, int value) { }
public void Write(long position, long value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, sbyte value) { }
public void Write(long position, float value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, ushort value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, uint value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, ulong value) { }
public void WriteArray<T>(long position, T[] array, int offset, int count) where T : struct { }
public void Write<T>(long position, ref T structure) where T : struct { }
}
}
namespace System.Runtime.CompilerServices
{
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
public sealed partial class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
{
public IDispatchConstantAttribute() { }
public override object Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
public sealed partial class IUnknownConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
{
public IUnknownConstantAttribute() { }
public override object Value { get { throw null; } }
}
}
namespace System.Runtime.InteropServices
{
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed partial class AllowReversePInvokeCallsAttribute : System.Attribute
{
public AllowReversePInvokeCallsAttribute() { }
}
public readonly partial struct ArrayWithOffset : System.IEquatable<System.Runtime.InteropServices.ArrayWithOffset>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public ArrayWithOffset(object? array, int offset) { throw null; }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; }
public bool Equals(System.Runtime.InteropServices.ArrayWithOffset obj) { throw null; }
public object? GetArray() { throw null; }
public override int GetHashCode() { throw null; }
public int GetOffset() { throw null; }
public static bool operator ==(System.Runtime.InteropServices.ArrayWithOffset a, System.Runtime.InteropServices.ArrayWithOffset b) { throw null; }
public static bool operator !=(System.Runtime.InteropServices.ArrayWithOffset a, System.Runtime.InteropServices.ArrayWithOffset b) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class AutomationProxyAttribute : System.Attribute
{
public AutomationProxyAttribute(bool val) { }
public bool Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false)]
public sealed partial class BestFitMappingAttribute : System.Attribute
{
public bool ThrowOnUnmappableChar;
public BestFitMappingAttribute(bool BestFitMapping) { }
public bool BestFitMapping { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class BStrWrapper
{
public BStrWrapper(object? value) { }
public BStrWrapper(string? value) { }
public string? WrappedObject { get { throw null; } }
}
public enum CallingConvention
{
Winapi = 1,
Cdecl = 2,
StdCall = 3,
ThisCall = 4,
FastCall = 5,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)]
public sealed partial class ClassInterfaceAttribute : System.Attribute
{
public ClassInterfaceAttribute(short classInterfaceType) { }
public ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType classInterfaceType) { }
public System.Runtime.InteropServices.ClassInterfaceType Value { get { throw null; } }
}
public enum ClassInterfaceType
{
None = 0,
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")]
AutoDispatch = 1,
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")]
AutoDual = 2,
}
[System.CLSCompliantAttribute(false)]
public readonly partial struct CLong : System.IEquatable<System.Runtime.InteropServices.CLong>
{
private readonly int _dummyPrimitive;
public CLong(int value) { throw null; }
public CLong(nint value) { throw null; }
public nint Value { get { throw null; } }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw null; }
public bool Equals(System.Runtime.InteropServices.CLong other) { throw null; }
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class CoClassAttribute : System.Attribute
{
public CoClassAttribute(System.Type coClass) { }
public System.Type CoClass { get { throw null; } }
}
public static partial class CollectionsMarshal
{
public static System.Span<T> AsSpan<T>(System.Collections.Generic.List<T>? list) { throw null; }
public static ref TValue GetValueRefOrNullRef<TKey, TValue>(System.Collections.Generic.Dictionary<TKey, TValue> dictionary, TKey key) where TKey : notnull { throw null; }
public static ref TValue? GetValueRefOrAddDefault<TKey, TValue>(System.Collections.Generic.Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) where TKey : notnull { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)]
public sealed partial class ComAliasNameAttribute : System.Attribute
{
public ComAliasNameAttribute(string alias) { }
public string Value { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public partial class ComAwareEventInfo : System.Reflection.EventInfo
{
public ComAwareEventInfo([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, string eventName) { }
public override System.Reflection.EventAttributes Attributes { get { throw null; } }
public override System.Type? DeclaringType { get { throw null; } }
public override int MetadataToken { get { throw null; } }
public override System.Reflection.Module Module { get { throw null; } }
public override string Name { get { throw null; } }
public override System.Type? ReflectedType { get { throw null; } }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public override void AddEventHandler(object target, System.Delegate handler) { }
public override System.Reflection.MethodInfo? GetAddMethod(bool nonPublic) { throw null; }
public override object[] GetCustomAttributes(bool inherit) { throw null; }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw null; }
public override System.Collections.Generic.IList<System.Reflection.CustomAttributeData> GetCustomAttributesData() { throw null; }
public override System.Reflection.MethodInfo[] GetOtherMethods(bool nonPublic) { throw null; }
public override System.Reflection.MethodInfo? GetRaiseMethod(bool nonPublic) { throw null; }
public override System.Reflection.MethodInfo? GetRemoveMethod(bool nonPublic) { throw null; }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public override void RemoveEventHandler(object target, System.Delegate handler) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)]
public sealed partial class ComCompatibleVersionAttribute : System.Attribute
{
public ComCompatibleVersionAttribute(int major, int minor, int build, int revision) { }
public int BuildNumber { get { throw null; } }
public int MajorVersion { get { throw null; } }
public int MinorVersion { get { throw null; } }
public int RevisionNumber { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=false)]
public sealed partial class ComConversionLossAttribute : System.Attribute
{
public ComConversionLossAttribute() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=false)]
public sealed partial class ComDefaultInterfaceAttribute : System.Attribute
{
public ComDefaultInterfaceAttribute(System.Type defaultInterface) { }
public System.Type Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class ComEventInterfaceAttribute : System.Attribute
{
public ComEventInterfaceAttribute([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)] System.Type SourceInterface, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] System.Type EventProvider) { }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
public System.Type EventProvider { get { throw null; } }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)]
public System.Type SourceInterface { get { throw null; } }
}
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static partial class ComEventsHelper
{
public static void Combine(object rcw, System.Guid iid, int dispid, System.Delegate d) { }
public static System.Delegate? Remove(object rcw, System.Guid iid, int dispid, System.Delegate d) { throw null; }
}
public partial class COMException : System.Runtime.InteropServices.ExternalException
{
public COMException() { }
protected COMException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public COMException(string? message) { }
public COMException(string? message, System.Exception? inner) { }
public COMException(string? message, int errorCode) { }
public override string ToString() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class ComImportAttribute : System.Attribute
{
public ComImportAttribute() { }
}
public enum ComInterfaceType
{
InterfaceIsDual = 0,
InterfaceIsIUnknown = 1,
InterfaceIsIDispatch = 2,
InterfaceIsIInspectable = 3,
}
public enum ComMemberType
{
Method = 0,
PropGet = 1,
PropSet = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class ComRegisterFunctionAttribute : System.Attribute
{
public ComRegisterFunctionAttribute() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=true)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class ComSourceInterfacesAttribute : System.Attribute
{
public ComSourceInterfacesAttribute(string sourceInterfaces) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3, System.Type sourceInterface4) { }
public string Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class ComUnregisterFunctionAttribute : System.Attribute
{
public ComUnregisterFunctionAttribute() { }
}
[System.CLSCompliantAttribute(false)]
public readonly partial struct CULong : System.IEquatable<System.Runtime.InteropServices.CULong>
{
private readonly int _dummyPrimitive;
public CULong(uint value) { throw null; }
public CULong(nuint value) { throw null; }
public nuint Value { get { throw null; } }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw null; }
public bool Equals(System.Runtime.InteropServices.CULong other) { throw null; }
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("CurrencyWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")]
public sealed partial class CurrencyWrapper
{
public CurrencyWrapper(decimal obj) { }
public CurrencyWrapper(object obj) { }
public decimal WrappedObject { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum CustomQueryInterfaceMode
{
Ignore = 0,
Allow = 1,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum CustomQueryInterfaceResult
{
Handled = 0,
NotHandled = 1,
Failed = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Module, Inherited=false)]
public sealed partial class DefaultCharSetAttribute : System.Attribute
{
public DefaultCharSetAttribute(System.Runtime.InteropServices.CharSet charSet) { }
public System.Runtime.InteropServices.CharSet CharSet { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Method, AllowMultiple=false)]
public sealed partial class DefaultDllImportSearchPathsAttribute : System.Attribute
{
public DefaultDllImportSearchPathsAttribute(System.Runtime.InteropServices.DllImportSearchPath paths) { }
public System.Runtime.InteropServices.DllImportSearchPath Paths { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Parameter)]
public sealed partial class DefaultParameterValueAttribute : System.Attribute
{
public DefaultParameterValueAttribute(object? value) { }
public object? Value { get { throw null; } }
}
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class DispatchWrapper
{
public DispatchWrapper(object? obj) { }
public object? WrappedObject { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)]
public sealed partial class DispIdAttribute : System.Attribute
{
public DispIdAttribute(int dispId) { }
public int Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class DllImportAttribute : System.Attribute
{
public bool BestFitMapping;
public System.Runtime.InteropServices.CallingConvention CallingConvention;
public System.Runtime.InteropServices.CharSet CharSet;
public string? EntryPoint;
public bool ExactSpelling;
public bool PreserveSig;
public bool SetLastError;
public bool ThrowOnUnmappableChar;
public DllImportAttribute(string dllName) { }
public string Value { get { throw null; } }
}
public delegate System.IntPtr DllImportResolver(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath);
[System.FlagsAttribute]
public enum DllImportSearchPath
{
LegacyBehavior = 0,
AssemblyDirectory = 2,
UseDllDirectoryForDependencies = 256,
ApplicationDirectory = 512,
UserDirectories = 1024,
System32 = 2048,
SafeDirectories = 4096,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)]
public sealed class DynamicInterfaceCastableImplementationAttribute : Attribute
{
public DynamicInterfaceCastableImplementationAttribute() { }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class ErrorWrapper
{
public ErrorWrapper(System.Exception e) { }
public ErrorWrapper(int errorCode) { }
public ErrorWrapper(object errorCode) { }
public int ErrorCode { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false)]
public sealed partial class GuidAttribute : System.Attribute
{
public GuidAttribute(string guid) { }
public string Value { get { throw null; } }
}
public sealed partial class HandleCollector
{
public HandleCollector(string? name, int initialThreshold) { }
public HandleCollector(string? name, int initialThreshold, int maximumThreshold) { }
public int Count { get { throw null; } }
public int InitialThreshold { get { throw null; } }
public int MaximumThreshold { get { throw null; } }
public string Name { get { throw null; } }
public void Add() { }
public void Remove() { }
}
public readonly partial struct HandleRef
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public HandleRef(object? wrapper, System.IntPtr handle) { throw null; }
public System.IntPtr Handle { get { throw null; } }
public object? Wrapper { get { throw null; } }
public static explicit operator System.IntPtr (System.Runtime.InteropServices.HandleRef value) { throw null; }
public static System.IntPtr ToIntPtr(System.Runtime.InteropServices.HandleRef value) { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public partial interface ICustomAdapter
{
object GetUnderlyingObject();
}
public partial interface ICustomFactory
{
System.MarshalByRefObject CreateInstance(System.Type serverType);
}
public partial interface ICustomMarshaler
{
void CleanUpManagedData(object ManagedObj);
void CleanUpNativeData(System.IntPtr pNativeData);
int GetNativeDataSize();
System.IntPtr MarshalManagedToNative(object ManagedObj);
object MarshalNativeToManaged(System.IntPtr pNativeData);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public partial interface ICustomQueryInterface
{
System.Runtime.InteropServices.CustomQueryInterfaceResult GetInterface(ref System.Guid iid, out System.IntPtr ppv);
}
public partial interface IDynamicInterfaceCastable
{
bool IsInterfaceImplemented(System.RuntimeTypeHandle interfaceType, bool throwIfNotImplemented);
System.RuntimeTypeHandle GetInterfaceImplementation(System.RuntimeTypeHandle interfaceType);
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)]
public sealed partial class ImportedFromTypeLibAttribute : System.Attribute
{
public ImportedFromTypeLibAttribute(string tlbFile) { }
public string Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class InterfaceTypeAttribute : System.Attribute
{
public InterfaceTypeAttribute(short interfaceType) { }
public InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType interfaceType) { }
public System.Runtime.InteropServices.ComInterfaceType Value { get { throw null; } }
}
public partial class InvalidComObjectException : System.SystemException
{
public InvalidComObjectException() { }
protected InvalidComObjectException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidComObjectException(string? message) { }
public InvalidComObjectException(string? message, System.Exception? inner) { }
}
public partial class InvalidOleVariantTypeException : System.SystemException
{
public InvalidOleVariantTypeException() { }
protected InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidOleVariantTypeException(string? message) { }
public InvalidOleVariantTypeException(string? message, System.Exception? inner) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class LCIDConversionAttribute : System.Attribute
{
public LCIDConversionAttribute(int lcid) { }
public int Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)]
public sealed partial class ManagedToNativeComInteropStubAttribute : System.Attribute
{
public ManagedToNativeComInteropStubAttribute(System.Type classType, string methodName) { }
public System.Type ClassType { get { throw null; } }
public string MethodName { get { throw null; } }
}
public static partial class Marshal
{
public static readonly int SystemDefaultCharSize;
public static readonly int SystemMaxDBCSCharSize;
public static int AddRef(System.IntPtr pUnk) { throw null; }
public static System.IntPtr AllocCoTaskMem(int cb) { throw null; }
public static System.IntPtr AllocHGlobal(int cb) { throw null; }
public static System.IntPtr AllocHGlobal(System.IntPtr cb) { throw null; }
public static bool AreComObjectsAvailableForCleanup() { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Built-in COM support is not trim compatible", Url = "https://aka.ms/dotnet-illink/com")]
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object BindToMoniker(string monikerName) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static void ChangeWrapperHandleStrength(object otp, bool fIsWeak) { }
public static void CleanupUnusedObjectsInCurrentContext() { }
public static void Copy(byte[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(char[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(double[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(short[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(int[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(long[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(System.IntPtr source, byte[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, char[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, double[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, short[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, int[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, long[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, System.IntPtr[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, float[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(float[] source, int startIndex, System.IntPtr destination, int length) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr CreateAggregatedObject(System.IntPtr pOuter, object o) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr CreateAggregatedObject<T>(System.IntPtr pOuter, T o) where T : notnull { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("o")]
public static object? CreateWrapperOfType(object? o, System.Type t) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static TWrapper CreateWrapperOfType<T, TWrapper>(T? o) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the DestroyStructure<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void DestroyStructure(System.IntPtr ptr, System.Type structuretype) { }
public static void DestroyStructure<T>(System.IntPtr ptr) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int FinalReleaseComObject(object o) { throw null; }
public static void FreeBSTR(System.IntPtr ptr) { }
public static void FreeCoTaskMem(System.IntPtr ptr) { }
public static void FreeHGlobal(System.IntPtr hglobal) { }
public static System.Guid GenerateGuidForType(System.Type type) { throw null; }
public static string? GenerateProgIdForType(System.Type type) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr GetComInterfaceForObject(object o, System.Type T) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr GetComInterfaceForObject<T, TInterface>([System.Diagnostics.CodeAnalysis.DisallowNullAttribute] T o) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object? GetComObjectData(object obj, object key) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the delegate might not be available. Use the GetDelegateForFunctionPointer<TDelegate> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.Delegate GetDelegateForFunctionPointer(System.IntPtr ptr, System.Type t) { throw null; }
public static TDelegate GetDelegateForFunctionPointer<TDelegate>(System.IntPtr ptr) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int GetEndComSlot(System.Type t) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("GetExceptionCode() may be unavailable in future releases.")]
public static int GetExceptionCode() { throw null; }
public static System.Exception? GetExceptionForHR(int errorCode) { throw null; }
public static System.Exception? GetExceptionForHR(int errorCode, System.IntPtr errorInfo) { throw null; }
public static System.IntPtr GetExceptionPointers() { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the delegate might not be available. Use the GetFunctionPointerForDelegate<TDelegate> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr GetFunctionPointerForDelegate(System.Delegate d) { throw null; }
public static System.IntPtr GetFunctionPointerForDelegate<TDelegate>(TDelegate d) where TDelegate : notnull { throw null; }
public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; }
public static int GetHRForException(System.Exception? e) { throw null; }
public static int GetHRForLastWin32Error() { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr GetIDispatchForObject(object o) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr GetIUnknownForObject(object o) { throw null; }
public static int GetLastPInvokeError() { throw null; }
public static int GetLastSystemError() { throw null; }
public static int GetLastWin32Error() { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void GetNativeVariantForObject(object? obj, System.IntPtr pDstNativeVariant) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void GetNativeVariantForObject<T>(T? obj, System.IntPtr pDstNativeVariant) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object GetObjectForIUnknown(System.IntPtr pUnk) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static object? GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static T? GetObjectForNativeVariant<T>(System.IntPtr pSrcNativeVariant) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static object?[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static T[] GetObjectsForNativeVariants<T>(System.IntPtr aSrcNativeVariant, int cVars) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int GetStartComSlot(System.Type t) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.Type? GetTypeFromCLSID(System.Guid clsid) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object GetUniqueObjectForIUnknown(System.IntPtr unknown) { throw null; }
public static void InitHandle(SafeHandle safeHandle, IntPtr handle) { }
public static bool IsComObject(object o) { throw null; }
public static bool IsTypeVisibleFromCom(System.Type t) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr OffsetOf(System.Type t, string fieldName) { throw null; }
public static System.IntPtr OffsetOf<T>(string fieldName) { throw null; }
public static void Prelink(System.Reflection.MethodInfo m) { }
public static void PrelinkAll(System.Type c) { }
public static string? PtrToStringAnsi(System.IntPtr ptr) { throw null; }
public static string PtrToStringAnsi(System.IntPtr ptr, int len) { throw null; }
public static string? PtrToStringAuto(System.IntPtr ptr) { throw null; }
public static string? PtrToStringAuto(System.IntPtr ptr, int len) { throw null; }
public static string PtrToStringBSTR(System.IntPtr ptr) { throw null; }
public static string? PtrToStringUni(System.IntPtr ptr) { throw null; }
public static string PtrToStringUni(System.IntPtr ptr, int len) { throw null; }
public static string? PtrToStringUTF8(System.IntPtr ptr) { throw null; }
public static string PtrToStringUTF8(System.IntPtr ptr, int byteLen) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void PtrToStructure(System.IntPtr ptr, object structure) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static object? PtrToStructure(System.IntPtr ptr, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors| System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] System.Type structureType) { throw null; }
public static T? PtrToStructure<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]T>(System.IntPtr ptr) { throw null; }
public static void PtrToStructure<T>(System.IntPtr ptr, [System.Diagnostics.CodeAnalysis.DisallowNullAttribute] T structure) { }
public static int QueryInterface(System.IntPtr pUnk, ref System.Guid iid, out System.IntPtr ppv) { throw null; }
public static byte ReadByte(System.IntPtr ptr) { throw null; }
public static byte ReadByte(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadByte(Object, Int32) may be unavailable in future releases.")]
public static byte ReadByte(object ptr, int ofs) { throw null; }
public static short ReadInt16(System.IntPtr ptr) { throw null; }
public static short ReadInt16(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadInt16(Object, Int32) may be unavailable in future releases.")]
public static short ReadInt16(object ptr, int ofs) { throw null; }
public static int ReadInt32(System.IntPtr ptr) { throw null; }
public static int ReadInt32(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadInt32(Object, Int32) may be unavailable in future releases.")]
public static int ReadInt32(object ptr, int ofs) { throw null; }
public static long ReadInt64(System.IntPtr ptr) { throw null; }
public static long ReadInt64(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadInt64(Object, Int32) may be unavailable in future releases.")]
public static long ReadInt64(object ptr, int ofs) { throw null; }
public static System.IntPtr ReadIntPtr(System.IntPtr ptr) { throw null; }
public static System.IntPtr ReadIntPtr(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadIntPtr(Object, Int32) may be unavailable in future releases.")]
public static System.IntPtr ReadIntPtr(object ptr, int ofs) { throw null; }
public static System.IntPtr ReAllocCoTaskMem(System.IntPtr pv, int cb) { throw null; }
public static System.IntPtr ReAllocHGlobal(System.IntPtr pv, System.IntPtr cb) { throw null; }
public static int Release(System.IntPtr pUnk) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int ReleaseComObject(object o) { throw null; }
public static System.IntPtr SecureStringToBSTR(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToCoTaskMemAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToCoTaskMemUnicode(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static bool SetComObjectData(object obj, object key, object? data) { throw null; }
public static void SetLastPInvokeError(int error) { throw null; }
public static void SetLastSystemError(int error) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the SizeOf<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static int SizeOf(object structure) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the SizeOf<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static int SizeOf(System.Type t) { throw null; }
public static int SizeOf<T>() { throw null; }
public static int SizeOf<T>(T structure) { throw null; }
public static System.IntPtr StringToBSTR(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemAnsi(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemAuto(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemUni(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemUTF8(string? s) { throw null; }
public static System.IntPtr StringToHGlobalAnsi(string? s) { throw null; }
public static System.IntPtr StringToHGlobalAuto(string? s) { throw null; }
public static System.IntPtr StringToHGlobalUni(string? s) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the StructureToPtr<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void StructureToPtr(object structure, System.IntPtr ptr, bool fDeleteOld) { }
public static void StructureToPtr<T>([System.Diagnostics.CodeAnalysis.DisallowNullAttribute] T structure, System.IntPtr ptr, bool fDeleteOld) { }
public static void ThrowExceptionForHR(int errorCode) { }
public static void ThrowExceptionForHR(int errorCode, System.IntPtr errorInfo) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr UnsafeAddrOfPinnedArrayElement(System.Array arr, int index) { throw null; }
public static System.IntPtr UnsafeAddrOfPinnedArrayElement<T>(T[] arr, int index) { throw null; }
public static void WriteByte(System.IntPtr ptr, byte val) { }
public static void WriteByte(System.IntPtr ptr, int ofs, byte val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteByte(Object, Int32, Byte) may be unavailable in future releases.")]
public static void WriteByte(object ptr, int ofs, byte val) { }
public static void WriteInt16(System.IntPtr ptr, char val) { }
public static void WriteInt16(System.IntPtr ptr, short val) { }
public static void WriteInt16(System.IntPtr ptr, int ofs, char val) { }
public static void WriteInt16(System.IntPtr ptr, int ofs, short val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt16(Object, Int32, Char) may be unavailable in future releases.")]
public static void WriteInt16(object ptr, int ofs, char val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt16(Object, Int32, Int16) may be unavailable in future releases.")]
public static void WriteInt16(object ptr, int ofs, short val) { }
public static void WriteInt32(System.IntPtr ptr, int val) { }
public static void WriteInt32(System.IntPtr ptr, int ofs, int val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt32(Object, Int32, Int32) may be unavailable in future releases.")]
public static void WriteInt32(object ptr, int ofs, int val) { }
public static void WriteInt64(System.IntPtr ptr, int ofs, long val) { }
public static void WriteInt64(System.IntPtr ptr, long val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt64(Object, Int32, Int64) may be unavailable in future releases.")]
public static void WriteInt64(object ptr, int ofs, long val) { }
public static void WriteIntPtr(System.IntPtr ptr, int ofs, System.IntPtr val) { }
public static void WriteIntPtr(System.IntPtr ptr, System.IntPtr val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteIntPtr(Object, Int32, IntPtr) may be unavailable in future releases.")]
public static void WriteIntPtr(object ptr, int ofs, System.IntPtr val) { }
public static void ZeroFreeBSTR(System.IntPtr s) { }
public static void ZeroFreeCoTaskMemAnsi(System.IntPtr s) { }
public static void ZeroFreeCoTaskMemUnicode(System.IntPtr s) { }
public static void ZeroFreeCoTaskMemUTF8(System.IntPtr s) { }
public static void ZeroFreeGlobalAllocAnsi(System.IntPtr s) { }
public static void ZeroFreeGlobalAllocUnicode(System.IntPtr s) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue, Inherited=false)]
public sealed partial class MarshalAsAttribute : System.Attribute
{
public System.Runtime.InteropServices.UnmanagedType ArraySubType;
public int IidParameterIndex;
public string? MarshalCookie;
public string? MarshalType;
public System.Type? MarshalTypeRef;
public System.Runtime.InteropServices.VarEnum SafeArraySubType;
public System.Type? SafeArrayUserDefinedSubType;
public int SizeConst;
public short SizeParamIndex;
public MarshalAsAttribute(short unmanagedType) { }
public MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType unmanagedType) { }
public System.Runtime.InteropServices.UnmanagedType Value { get { throw null; } }
}
public partial class MarshalDirectiveException : System.SystemException
{
public MarshalDirectiveException() { }
protected MarshalDirectiveException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public MarshalDirectiveException(string? message) { }
public MarshalDirectiveException(string? message, System.Exception? inner) { }
}
public static partial class NativeLibrary
{
public static void Free(System.IntPtr handle) { }
public static System.IntPtr GetExport(System.IntPtr handle, string name) { throw null; }
public static System.IntPtr Load(string libraryPath) { throw null; }
public static System.IntPtr Load(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath) { throw null; }
public static void SetDllImportResolver(System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportResolver resolver) { }
public static bool TryGetExport(System.IntPtr handle, string name, out System.IntPtr address) { throw null; }
public static bool TryLoad(string libraryPath, out System.IntPtr handle) { throw null; }
public static bool TryLoad(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath, out System.IntPtr handle) { throw null; }
}
public static unsafe partial class NativeMemory
{
[System.CLSCompliantAttribute(false)]
public static void* AlignedAlloc(nuint byteCount, nuint alignment) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void AlignedFree(void* ptr) { }
[System.CLSCompliantAttribute(false)]
public static void* AlignedRealloc(void* ptr, nuint byteCount, nuint alignment) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* Alloc(nuint byteCount) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* Alloc(nuint elementCount, nuint elementSize) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* AllocZeroed(nuint byteCount) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* AllocZeroed(nuint elementCount, nuint elementSize) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void Free(void* ptr) { }
[System.CLSCompliantAttribute(false)]
public static void* Realloc(void* ptr, nuint byteCount) { throw null; }
}
public readonly partial struct NFloat : System.IComparable, System.IComparable<System.Runtime.InteropServices.NFloat>, System.IEquatable<System.Runtime.InteropServices.NFloat>, System.IFormattable, System.ISpanFormattable
{
private readonly int _dummyPrimitive;
public NFloat(double value) { throw null; }
public NFloat(float value) { throw null; }
public static System.Runtime.InteropServices.NFloat Epsilon { get { throw null; } }
public static System.Runtime.InteropServices.NFloat MaxValue { get { throw null; } }
public static System.Runtime.InteropServices.NFloat MinValue { get { throw null; } }
public static System.Runtime.InteropServices.NFloat NaN { get { throw null; } }
public static System.Runtime.InteropServices.NFloat NegativeInfinity { get { throw null; } }
public static System.Runtime.InteropServices.NFloat PositiveInfinity { get { throw null; } }
public static int Size { get { throw null; } }
public double Value { get { throw null; } }
public int CompareTo(object? obj) { throw null; }
public int CompareTo(System.Runtime.InteropServices.NFloat other) { throw null; }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; }
public bool Equals(System.Runtime.InteropServices.NFloat other) { throw null; }
public override int GetHashCode() { throw null; }
public static bool IsFinite(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsInfinity(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNaN(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNegative(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNegativeInfinity(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNormal(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsPositiveInfinity(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsSubnormal(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator +(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator --(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator /(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator ==(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static explicit operator System.Runtime.InteropServices.NFloat (decimal value) { throw null; }
public static explicit operator System.Runtime.InteropServices.NFloat (double value) { throw null; }
public static explicit operator byte (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator char (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator decimal (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator short (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator int (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator long (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator nint (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator sbyte (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator float (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator ushort (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator uint (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator ulong (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator nuint (System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool operator >(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator >=(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (byte value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (char value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (short value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (int value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (long value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (nint value) { throw null; }
public static implicit operator double (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (sbyte value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (float value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (ushort value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (uint value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (ulong value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (nuint value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator ++(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool operator !=(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator <(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator <=(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator %(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator *(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator -(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator -(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator +(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(System.ReadOnlySpan<char> s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.AllowDecimalPoint | System.Globalization.NumberStyles.AllowExponent | System.Globalization.NumberStyles.AllowLeadingSign | System.Globalization.NumberStyles.AllowLeadingWhite | System.Globalization.NumberStyles.AllowThousands | System.Globalization.NumberStyles.AllowTrailingWhite, System.IFormatProvider? provider = null) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s, System.Globalization.NumberStyles style) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider? provider) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s, System.IFormatProvider? provider) { throw null; }
public override string ToString() { throw null; }
public string ToString(System.IFormatProvider? provider) { throw null; }
public string ToString(string? format) { throw null; }
public string ToString(string? format, System.IFormatProvider? provider) { throw null; }
public bool TryFormat(System.Span<char> destination, out int charsWritten, System.ReadOnlySpan<char> format = default(System.ReadOnlySpan<char>), System.IFormatProvider? provider = null) { throw null; }
public static bool TryParse(System.ReadOnlySpan<char> s, System.Globalization.NumberStyles style, System.IFormatProvider? provider, out System.Runtime.InteropServices.NFloat result) { throw null; }
public static bool TryParse(System.ReadOnlySpan<char> s, out System.Runtime.InteropServices.NFloat result) { throw null; }
public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? s, System.Globalization.NumberStyles style, System.IFormatProvider? provider, out System.Runtime.InteropServices.NFloat result) { throw null; }
public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? s, out System.Runtime.InteropServices.NFloat result) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)]
public sealed partial class OptionalAttribute : System.Attribute
{
public OptionalAttribute() { }
}
public enum PosixSignal
{
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGTSTP = -10,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGTTOU = -9,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGTTIN = -8,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGWINCH = -7,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGCONT = -6,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGCHLD = -5,
SIGTERM = -4,
SIGQUIT = -3,
SIGINT = -2,
SIGHUP = -1,
}
public sealed partial class PosixSignalContext
{
public PosixSignalContext(System.Runtime.InteropServices.PosixSignal signal) { }
public bool Cancel { get { throw null; } set { } }
public System.Runtime.InteropServices.PosixSignal Signal { get { throw null; } }
}
public sealed partial class PosixSignalRegistration : System.IDisposable
{
internal PosixSignalRegistration() { }
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static System.Runtime.InteropServices.PosixSignalRegistration Create(System.Runtime.InteropServices.PosixSignal signal, System.Action<System.Runtime.InteropServices.PosixSignalContext> handler) { throw null; }
public void Dispose() { }
~PosixSignalRegistration() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class PreserveSigAttribute : System.Attribute
{
public PreserveSigAttribute() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false, AllowMultiple=true)]
public sealed partial class PrimaryInteropAssemblyAttribute : System.Attribute
{
public PrimaryInteropAssemblyAttribute(int major, int minor) { }
public int MajorVersion { get { throw null; } }
public int MinorVersion { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=false)]
public sealed partial class ProgIdAttribute : System.Attribute
{
public ProgIdAttribute(string progId) { }
public string Value { get { throw null; } }
}
public static partial class RuntimeEnvironment
{
[System.ObsoleteAttribute("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId = "SYSLIB0019", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public static string SystemConfigurationFile { get { throw null; } }
public static bool FromGlobalAccessCache(System.Reflection.Assembly a) { throw null; }
public static string GetRuntimeDirectory() { throw null; }
[System.ObsoleteAttribute("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId = "SYSLIB0019", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public static System.IntPtr GetRuntimeInterfaceAsIntPtr(System.Guid clsid, System.Guid riid) { throw null; }
[System.ObsoleteAttribute("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId = "SYSLIB0019", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public static object GetRuntimeInterfaceAsObject(System.Guid clsid, System.Guid riid) { throw null; }
public static string GetSystemVersion() { throw null; }
}
public partial class SafeArrayRankMismatchException : System.SystemException
{
public SafeArrayRankMismatchException() { }
protected SafeArrayRankMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public SafeArrayRankMismatchException(string? message) { }
public SafeArrayRankMismatchException(string? message, System.Exception? inner) { }
}
public partial class SafeArrayTypeMismatchException : System.SystemException
{
public SafeArrayTypeMismatchException() { }
protected SafeArrayTypeMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public SafeArrayTypeMismatchException(string? message) { }
public SafeArrayTypeMismatchException(string? message, System.Exception? inner) { }
}
public partial class SEHException : System.Runtime.InteropServices.ExternalException
{
public SEHException() { }
protected SEHException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public SEHException(string? message) { }
public SEHException(string? message, System.Exception? inner) { }
public virtual bool CanResume() { throw null; }
}
public partial class StandardOleMarshalObject : System.MarshalByRefObject
{
protected StandardOleMarshalObject() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public sealed partial class TypeIdentifierAttribute : System.Attribute
{
public TypeIdentifierAttribute() { }
public TypeIdentifierAttribute(string? scope, string? identifier) { }
public string? Identifier { get { throw null; } }
public string? Scope { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class TypeLibFuncAttribute : System.Attribute
{
public TypeLibFuncAttribute(short flags) { }
public TypeLibFuncAttribute(System.Runtime.InteropServices.TypeLibFuncFlags flags) { }
public System.Runtime.InteropServices.TypeLibFuncFlags Value { get { throw null; } }
}
[System.FlagsAttribute]
public enum TypeLibFuncFlags
{
FRestricted = 1,
FSource = 2,
FBindable = 4,
FRequestEdit = 8,
FDisplayBind = 16,
FDefaultBind = 32,
FHidden = 64,
FUsesGetLastError = 128,
FDefaultCollelem = 256,
FUiDefault = 512,
FNonBrowsable = 1024,
FReplaceable = 2048,
FImmediateBind = 4096,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class TypeLibImportClassAttribute : System.Attribute
{
public TypeLibImportClassAttribute(System.Type importClass) { }
public string Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false)]
public sealed partial class TypeLibTypeAttribute : System.Attribute
{
public TypeLibTypeAttribute(short flags) { }
public TypeLibTypeAttribute(System.Runtime.InteropServices.TypeLibTypeFlags flags) { }
public System.Runtime.InteropServices.TypeLibTypeFlags Value { get { throw null; } }
}
[System.FlagsAttribute]
public enum TypeLibTypeFlags
{
FAppObject = 1,
FCanCreate = 2,
FLicensed = 4,
FPreDeclId = 8,
FHidden = 16,
FControl = 32,
FDual = 64,
FNonExtensible = 128,
FOleAutomation = 256,
FRestricted = 512,
FAggregatable = 1024,
FReplaceable = 2048,
FDispatchable = 4096,
FReverseBind = 8192,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)]
public sealed partial class TypeLibVarAttribute : System.Attribute
{
public TypeLibVarAttribute(short flags) { }
public TypeLibVarAttribute(System.Runtime.InteropServices.TypeLibVarFlags flags) { }
public System.Runtime.InteropServices.TypeLibVarFlags Value { get { throw null; } }
}
[System.FlagsAttribute]
public enum TypeLibVarFlags
{
FReadOnly = 1,
FSource = 2,
FBindable = 4,
FRequestEdit = 8,
FDisplayBind = 16,
FDefaultBind = 32,
FHidden = 64,
FRestricted = 128,
FDefaultCollelem = 256,
FUiDefault = 512,
FNonBrowsable = 1024,
FReplaceable = 2048,
FImmediateBind = 4096,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)]
public sealed partial class TypeLibVersionAttribute : System.Attribute
{
public TypeLibVersionAttribute(int major, int minor) { }
public int MajorVersion { get { throw null; } }
public int MinorVersion { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class UnknownWrapper
{
public UnknownWrapper(object? obj) { }
public object? WrappedObject { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)]
public sealed partial class UnmanagedFunctionPointerAttribute : System.Attribute
{
public bool BestFitMapping;
public System.Runtime.InteropServices.CharSet CharSet;
public bool SetLastError;
public bool ThrowOnUnmappableChar;
public UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention callingConvention) { }
public System.Runtime.InteropServices.CallingConvention CallingConvention { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum VarEnum
{
VT_EMPTY = 0,
VT_NULL = 1,
VT_I2 = 2,
VT_I4 = 3,
VT_R4 = 4,
VT_R8 = 5,
VT_CY = 6,
VT_DATE = 7,
VT_BSTR = 8,
VT_DISPATCH = 9,
VT_ERROR = 10,
VT_BOOL = 11,
VT_VARIANT = 12,
VT_UNKNOWN = 13,
VT_DECIMAL = 14,
VT_I1 = 16,
VT_UI1 = 17,
VT_UI2 = 18,
VT_UI4 = 19,
VT_I8 = 20,
VT_UI8 = 21,
VT_INT = 22,
VT_UINT = 23,
VT_VOID = 24,
VT_HRESULT = 25,
VT_PTR = 26,
VT_SAFEARRAY = 27,
VT_CARRAY = 28,
VT_USERDEFINED = 29,
VT_LPSTR = 30,
VT_LPWSTR = 31,
VT_RECORD = 36,
VT_FILETIME = 64,
VT_BLOB = 65,
VT_STREAM = 66,
VT_STORAGE = 67,
VT_STREAMED_OBJECT = 68,
VT_STORED_OBJECT = 69,
VT_BLOB_OBJECT = 70,
VT_CF = 71,
VT_CLSID = 72,
VT_VECTOR = 4096,
VT_ARRAY = 8192,
VT_BYREF = 16384,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class VariantWrapper
{
public VariantWrapper(object? obj) { }
public object? WrappedObject { get { throw null; } }
}
[System.FlagsAttribute]
public enum CreateComInterfaceFlags
{
None = 0,
CallerDefinedIUnknown = 1,
TrackerSupport = 2,
}
[System.FlagsAttribute]
public enum CreateObjectFlags
{
None = 0,
TrackerObject = 1,
UniqueInstance = 2,
Aggregation = 4,
Unwrap = 8,
}
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.CLSCompliantAttribute(false)]
public abstract class ComWrappers
{
public struct ComInterfaceEntry
{
public System.Guid IID;
public System.IntPtr Vtable;
}
public struct ComInterfaceDispatch
{
public System.IntPtr Vtable;
public unsafe static T GetInstance<T>(ComInterfaceDispatch* dispatchPtr) where T : class { throw null; }
}
public System.IntPtr GetOrCreateComInterfaceForObject(object instance, CreateComInterfaceFlags flags) { throw null; }
protected unsafe abstract ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count);
public object GetOrCreateObjectForComInstance(System.IntPtr externalComObject, CreateObjectFlags flags) { throw null; }
protected abstract object? CreateObject(System.IntPtr externalComObject, CreateObjectFlags flags);
public object GetOrRegisterObjectForComInstance(System.IntPtr externalComObject, CreateObjectFlags flags, object wrapper) { throw null; }
public object GetOrRegisterObjectForComInstance(System.IntPtr externalComObject, CreateObjectFlags flags, object wrapper, System.IntPtr inner) { throw null; }
protected abstract void ReleaseObjects(System.Collections.IEnumerable objects);
public static void RegisterForTrackerSupport(ComWrappers instance) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static void RegisterForMarshalling(ComWrappers instance) { }
protected static void GetIUnknownImpl(out System.IntPtr fpQueryInterface, out System.IntPtr fpAddRef, out System.IntPtr fpRelease) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class UnmanagedCallConvAttribute : System.Attribute
{
public UnmanagedCallConvAttribute() { }
public System.Type[]? CallConvs;
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited = false)]
public sealed class UnmanagedCallersOnlyAttribute : System.Attribute
{
public UnmanagedCallersOnlyAttribute() { }
public System.Type[]? CallConvs;
public string? EntryPoint;
}
}
namespace System.Runtime.InteropServices.ComTypes
{
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum ADVF
{
ADVF_NODATA = 1,
ADVF_PRIMEFIRST = 2,
ADVF_ONLYONCE = 4,
ADVFCACHE_NOHANDLER = 8,
ADVFCACHE_FORCEBUILTIN = 16,
ADVFCACHE_ONSAVE = 32,
ADVF_DATAONSTOP = 64,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public partial struct BINDPTR
{
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lpfuncdesc;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lptcomp;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lpvardesc;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct BIND_OPTS
{
public int cbStruct;
public int dwTickCountDeadline;
public int grfFlags;
public int grfMode;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum CALLCONV
{
CC_CDECL = 1,
CC_MSCPASCAL = 2,
CC_PASCAL = 2,
CC_MACPASCAL = 3,
CC_STDCALL = 4,
CC_RESERVED = 5,
CC_SYSCALL = 6,
CC_MPWCDECL = 7,
CC_MPWPASCAL = 8,
CC_MAX = 9,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct CONNECTDATA
{
public int dwCookie;
public object pUnk;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum DATADIR
{
DATADIR_GET = 1,
DATADIR_SET = 2,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum DESCKIND
{
DESCKIND_NONE = 0,
DESCKIND_FUNCDESC = 1,
DESCKIND_VARDESC = 2,
DESCKIND_TYPECOMP = 3,
DESCKIND_IMPLICITAPPOBJ = 4,
DESCKIND_MAX = 5,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct DISPPARAMS
{
public int cArgs;
public int cNamedArgs;
public System.IntPtr rgdispidNamedArgs;
public System.IntPtr rgvarg;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum DVASPECT
{
DVASPECT_CONTENT = 1,
DVASPECT_THUMBNAIL = 2,
DVASPECT_ICON = 4,
DVASPECT_DOCPRINT = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct ELEMDESC
{
public System.Runtime.InteropServices.ComTypes.ELEMDESC.DESCUNION desc;
public System.Runtime.InteropServices.ComTypes.TYPEDESC tdesc;
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public partial struct DESCUNION
{
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.Runtime.InteropServices.ComTypes.IDLDESC idldesc;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.Runtime.InteropServices.ComTypes.PARAMDESC paramdesc;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct EXCEPINFO
{
public string bstrDescription;
public string bstrHelpFile;
public string bstrSource;
public int dwHelpContext;
public System.IntPtr pfnDeferredFillIn;
public System.IntPtr pvReserved;
public int scode;
public short wCode;
public short wReserved;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct FILETIME
{
public int dwHighDateTime;
public int dwLowDateTime;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct FORMATETC
{
public short cfFormat;
public System.Runtime.InteropServices.ComTypes.DVASPECT dwAspect;
public int lindex;
public System.IntPtr ptd;
public System.Runtime.InteropServices.ComTypes.TYMED tymed;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct FUNCDESC
{
public System.Runtime.InteropServices.ComTypes.CALLCONV callconv;
public short cParams;
public short cParamsOpt;
public short cScodes;
public System.Runtime.InteropServices.ComTypes.ELEMDESC elemdescFunc;
public System.Runtime.InteropServices.ComTypes.FUNCKIND funckind;
public System.Runtime.InteropServices.ComTypes.INVOKEKIND invkind;
public System.IntPtr lprgelemdescParam;
public System.IntPtr lprgscode;
public int memid;
public short oVft;
public short wFuncFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum FUNCFLAGS : short
{
FUNCFLAG_FRESTRICTED = (short)1,
FUNCFLAG_FSOURCE = (short)2,
FUNCFLAG_FBINDABLE = (short)4,
FUNCFLAG_FREQUESTEDIT = (short)8,
FUNCFLAG_FDISPLAYBIND = (short)16,
FUNCFLAG_FDEFAULTBIND = (short)32,
FUNCFLAG_FHIDDEN = (short)64,
FUNCFLAG_FUSESGETLASTERROR = (short)128,
FUNCFLAG_FDEFAULTCOLLELEM = (short)256,
FUNCFLAG_FUIDEFAULT = (short)512,
FUNCFLAG_FNONBROWSABLE = (short)1024,
FUNCFLAG_FREPLACEABLE = (short)2048,
FUNCFLAG_FIMMEDIATEBIND = (short)4096,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum FUNCKIND
{
FUNC_VIRTUAL = 0,
FUNC_PUREVIRTUAL = 1,
FUNC_NONVIRTUAL = 2,
FUNC_STATIC = 3,
FUNC_DISPATCH = 4,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IAdviseSink
{
void OnClose();
void OnDataChange(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium);
void OnRename(System.Runtime.InteropServices.ComTypes.IMoniker moniker);
void OnSave();
void OnViewChange(int aspect, int index);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IBindCtx
{
void EnumObjectParam(out System.Runtime.InteropServices.ComTypes.IEnumString? ppenum);
void GetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts);
void GetObjectParam(string pszKey, out object? ppunk);
void GetRunningObjectTable(out System.Runtime.InteropServices.ComTypes.IRunningObjectTable? pprot);
void RegisterObjectBound(object punk);
void RegisterObjectParam(string pszKey, object punk);
void ReleaseBoundObjects();
void RevokeObjectBound(object punk);
int RevokeObjectParam(string pszKey);
void SetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IConnectionPoint
{
void Advise(object pUnkSink, out int pdwCookie);
void EnumConnections(out System.Runtime.InteropServices.ComTypes.IEnumConnections ppEnum);
void GetConnectionInterface(out System.Guid pIID);
void GetConnectionPointContainer(out System.Runtime.InteropServices.ComTypes.IConnectionPointContainer ppCPC);
void Unadvise(int dwCookie);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IConnectionPointContainer
{
void EnumConnectionPoints(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppEnum);
void FindConnectionPoint(ref System.Guid riid, out System.Runtime.InteropServices.ComTypes.IConnectionPoint? ppCP);
}
[System.CLSCompliantAttribute(false)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IDataObject
{
int DAdvise(ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink adviseSink, out int connection);
void DUnadvise(int connection);
int EnumDAdvise(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA? enumAdvise);
System.Runtime.InteropServices.ComTypes.IEnumFORMATETC EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR direction);
int GetCanonicalFormatEtc(ref System.Runtime.InteropServices.ComTypes.FORMATETC formatIn, out System.Runtime.InteropServices.ComTypes.FORMATETC formatOut);
void GetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, out System.Runtime.InteropServices.ComTypes.STGMEDIUM medium);
void GetDataHere(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium);
int QueryGetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC format);
void SetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC formatIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium, bool release);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct IDLDESC
{
public System.IntPtr dwReserved;
public System.Runtime.InteropServices.ComTypes.IDLFLAG wIDLFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum IDLFLAG : short
{
IDLFLAG_NONE = (short)0,
IDLFLAG_FIN = (short)1,
IDLFLAG_FOUT = (short)2,
IDLFLAG_FLCID = (short)4,
IDLFLAG_FRETVAL = (short)8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumConnectionPoints
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppenum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.IConnectionPoint[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumConnections
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumConnections ppenum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.CONNECTDATA[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumFORMATETC
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumFORMATETC newEnum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.FORMATETC[] rgelt, int[] pceltFetched);
int Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumMoniker
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumMoniker ppenum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.IMoniker[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumSTATDATA
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA newEnum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.STATDATA[] rgelt, int[] pceltFetched);
int Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumString
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumString ppenum);
int Next(int celt, string[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumVARIANT
{
System.Runtime.InteropServices.ComTypes.IEnumVARIANT Clone();
int Next(int celt, object?[] rgVar, System.IntPtr pceltFetched);
int Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IMoniker
{
void BindToObject(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, ref System.Guid riidResult, out object ppvResult);
void BindToStorage(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, ref System.Guid riid, out object ppvObj);
void CommonPrefixWith(System.Runtime.InteropServices.ComTypes.IMoniker pmkOther, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkPrefix);
void ComposeWith(System.Runtime.InteropServices.ComTypes.IMoniker pmkRight, bool fOnlyIfNotGeneric, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkComposite);
void Enum(bool fForward, out System.Runtime.InteropServices.ComTypes.IEnumMoniker? ppenumMoniker);
void GetClassID(out System.Guid pClassID);
void GetDisplayName(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, out string ppszDisplayName);
void GetSizeMax(out long pcbSize);
void GetTimeOfLastChange(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, out System.Runtime.InteropServices.ComTypes.FILETIME pFileTime);
void Hash(out int pdwHash);
void Inverse(out System.Runtime.InteropServices.ComTypes.IMoniker ppmk);
int IsDirty();
int IsEqual(System.Runtime.InteropServices.ComTypes.IMoniker pmkOtherMoniker);
int IsRunning(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, System.Runtime.InteropServices.ComTypes.IMoniker? pmkNewlyRunning);
int IsSystemMoniker(out int pdwMksys);
void Load(System.Runtime.InteropServices.ComTypes.IStream pStm);
void ParseDisplayName(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker pmkToLeft, string pszDisplayName, out int pchEaten, out System.Runtime.InteropServices.ComTypes.IMoniker ppmkOut);
void Reduce(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, int dwReduceHowFar, ref System.Runtime.InteropServices.ComTypes.IMoniker? ppmkToLeft, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkReduced);
void RelativePathTo(System.Runtime.InteropServices.ComTypes.IMoniker pmkOther, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkRelPath);
void Save(System.Runtime.InteropServices.ComTypes.IStream pStm, bool fClearDirty);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum IMPLTYPEFLAGS
{
IMPLTYPEFLAG_FDEFAULT = 1,
IMPLTYPEFLAG_FSOURCE = 2,
IMPLTYPEFLAG_FRESTRICTED = 4,
IMPLTYPEFLAG_FDEFAULTVTABLE = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum INVOKEKIND
{
INVOKE_FUNC = 1,
INVOKE_PROPERTYGET = 2,
INVOKE_PROPERTYPUT = 4,
INVOKE_PROPERTYPUTREF = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IPersistFile
{
void GetClassID(out System.Guid pClassID);
void GetCurFile(out string ppszFileName);
int IsDirty();
void Load(string pszFileName, int dwMode);
void Save(string? pszFileName, bool fRemember);
void SaveCompleted(string pszFileName);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IRunningObjectTable
{
void EnumRunning(out System.Runtime.InteropServices.ComTypes.IEnumMoniker ppenumMoniker);
int GetObject(System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName, out object ppunkObject);
int GetTimeOfLastChange(System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName, out System.Runtime.InteropServices.ComTypes.FILETIME pfiletime);
int IsRunning(System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName);
void NoteChangeTime(int dwRegister, ref System.Runtime.InteropServices.ComTypes.FILETIME pfiletime);
int Register(int grfFlags, object punkObject, System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName);
void Revoke(int dwRegister);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IStream
{
void Clone(out System.Runtime.InteropServices.ComTypes.IStream ppstm);
void Commit(int grfCommitFlags);
void CopyTo(System.Runtime.InteropServices.ComTypes.IStream pstm, long cb, System.IntPtr pcbRead, System.IntPtr pcbWritten);
void LockRegion(long libOffset, long cb, int dwLockType);
void Read(byte[] pv, int cb, System.IntPtr pcbRead);
void Revert();
void Seek(long dlibMove, int dwOrigin, System.IntPtr plibNewPosition);
void SetSize(long libNewSize);
void Stat(out System.Runtime.InteropServices.ComTypes.STATSTG pstatstg, int grfStatFlag);
void UnlockRegion(long libOffset, long cb, int dwLockType);
void Write(byte[] pv, int cb, System.IntPtr pcbWritten);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeComp
{
void Bind(string szName, int lHashVal, short wFlags, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo, out System.Runtime.InteropServices.ComTypes.DESCKIND pDescKind, out System.Runtime.InteropServices.ComTypes.BINDPTR pBindPtr);
void BindType(string szName, int lHashVal, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo, out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeInfo
{
void AddressOfMember(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, out System.IntPtr ppv);
void CreateInstance(object? pUnkOuter, ref System.Guid riid, out object ppvObj);
void GetContainingTypeLib(out System.Runtime.InteropServices.ComTypes.ITypeLib ppTLB, out int pIndex);
void GetDllEntry(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, System.IntPtr pBstrDllName, System.IntPtr pBstrName, System.IntPtr pwOrdinal);
void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetFuncDesc(int index, out System.IntPtr ppFuncDesc);
void GetIDsOfNames(string[] rgszNames, int cNames, int[] pMemId);
void GetImplTypeFlags(int index, out System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS pImplTypeFlags);
void GetMops(int memid, out string? pBstrMops);
void GetNames(int memid, string[] rgBstrNames, int cMaxNames, out int pcNames);
void GetRefTypeInfo(int hRef, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
void GetRefTypeOfImplType(int index, out int href);
void GetTypeAttr(out System.IntPtr ppTypeAttr);
void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
void GetVarDesc(int index, out System.IntPtr ppVarDesc);
void Invoke(object pvInstance, int memid, short wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, System.IntPtr pVarResult, System.IntPtr pExcepInfo, out int puArgErr);
void ReleaseFuncDesc(System.IntPtr pFuncDesc);
void ReleaseTypeAttr(System.IntPtr pTypeAttr);
void ReleaseVarDesc(System.IntPtr pVarDesc);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeInfo2 : System.Runtime.InteropServices.ComTypes.ITypeInfo
{
new void AddressOfMember(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, out System.IntPtr ppv);
new void CreateInstance(object? pUnkOuter, ref System.Guid riid, out object ppvObj);
void GetAllCustData(System.IntPtr pCustData);
void GetAllFuncCustData(int index, System.IntPtr pCustData);
void GetAllImplTypeCustData(int index, System.IntPtr pCustData);
void GetAllParamCustData(int indexFunc, int indexParam, System.IntPtr pCustData);
void GetAllVarCustData(int index, System.IntPtr pCustData);
new void GetContainingTypeLib(out System.Runtime.InteropServices.ComTypes.ITypeLib ppTLB, out int pIndex);
void GetCustData(ref System.Guid guid, out object pVarVal);
new void GetDllEntry(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, System.IntPtr pBstrDllName, System.IntPtr pBstrName, System.IntPtr pwOrdinal);
new void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetDocumentation2(int memid, out string pbstrHelpString, out int pdwHelpStringContext, out string pbstrHelpStringDll);
void GetFuncCustData(int index, ref System.Guid guid, out object pVarVal);
new void GetFuncDesc(int index, out System.IntPtr ppFuncDesc);
void GetFuncIndexOfMemId(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, out int pFuncIndex);
new void GetIDsOfNames(string[] rgszNames, int cNames, int[] pMemId);
void GetImplTypeCustData(int index, ref System.Guid guid, out object pVarVal);
new void GetImplTypeFlags(int index, out System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS pImplTypeFlags);
new void GetMops(int memid, out string? pBstrMops);
new void GetNames(int memid, string[] rgBstrNames, int cMaxNames, out int pcNames);
void GetParamCustData(int indexFunc, int indexParam, ref System.Guid guid, out object pVarVal);
new void GetRefTypeInfo(int hRef, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
new void GetRefTypeOfImplType(int index, out int href);
new void GetTypeAttr(out System.IntPtr ppTypeAttr);
new void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
void GetTypeFlags(out int pTypeFlags);
void GetTypeKind(out System.Runtime.InteropServices.ComTypes.TYPEKIND pTypeKind);
void GetVarCustData(int index, ref System.Guid guid, out object pVarVal);
new void GetVarDesc(int index, out System.IntPtr ppVarDesc);
void GetVarIndexOfMemId(int memid, out int pVarIndex);
new void Invoke(object pvInstance, int memid, short wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, System.IntPtr pVarResult, System.IntPtr pExcepInfo, out int puArgErr);
new void ReleaseFuncDesc(System.IntPtr pFuncDesc);
new void ReleaseTypeAttr(System.IntPtr pTypeAttr);
new void ReleaseVarDesc(System.IntPtr pVarDesc);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeLib
{
void FindName(string szNameBuf, int lHashVal, System.Runtime.InteropServices.ComTypes.ITypeInfo[] ppTInfo, int[] rgMemId, ref short pcFound);
void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetLibAttr(out System.IntPtr ppTLibAttr);
void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
void GetTypeInfo(int index, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
int GetTypeInfoCount();
void GetTypeInfoOfGuid(ref System.Guid guid, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo);
void GetTypeInfoType(int index, out System.Runtime.InteropServices.ComTypes.TYPEKIND pTKind);
bool IsName(string szNameBuf, int lHashVal);
void ReleaseTLibAttr(System.IntPtr pTLibAttr);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
{
new void FindName(string szNameBuf, int lHashVal, System.Runtime.InteropServices.ComTypes.ITypeInfo[] ppTInfo, int[] rgMemId, ref short pcFound);
void GetAllCustData(System.IntPtr pCustData);
void GetCustData(ref System.Guid guid, out object pVarVal);
new void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetDocumentation2(int index, out string pbstrHelpString, out int pdwHelpStringContext, out string pbstrHelpStringDll);
new void GetLibAttr(out System.IntPtr ppTLibAttr);
void GetLibStatistics(System.IntPtr pcUniqueNames, out int pcchUniqueNames);
new void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
new void GetTypeInfo(int index, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
new int GetTypeInfoCount();
new void GetTypeInfoOfGuid(ref System.Guid guid, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo);
new void GetTypeInfoType(int index, out System.Runtime.InteropServices.ComTypes.TYPEKIND pTKind);
new bool IsName(string szNameBuf, int lHashVal);
new void ReleaseTLibAttr(System.IntPtr pTLibAttr);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum LIBFLAGS : short
{
LIBFLAG_FRESTRICTED = (short)1,
LIBFLAG_FCONTROL = (short)2,
LIBFLAG_FHIDDEN = (short)4,
LIBFLAG_FHASDISKIMAGE = (short)8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct PARAMDESC
{
public System.IntPtr lpVarValue;
public System.Runtime.InteropServices.ComTypes.PARAMFLAG wParamFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum PARAMFLAG : short
{
PARAMFLAG_NONE = (short)0,
PARAMFLAG_FIN = (short)1,
PARAMFLAG_FOUT = (short)2,
PARAMFLAG_FLCID = (short)4,
PARAMFLAG_FRETVAL = (short)8,
PARAMFLAG_FOPT = (short)16,
PARAMFLAG_FHASDEFAULT = (short)32,
PARAMFLAG_FHASCUSTDATA = (short)64,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct STATDATA
{
public System.Runtime.InteropServices.ComTypes.ADVF advf;
public System.Runtime.InteropServices.ComTypes.IAdviseSink advSink;
public int connection;
public System.Runtime.InteropServices.ComTypes.FORMATETC formatetc;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct STATSTG
{
public System.Runtime.InteropServices.ComTypes.FILETIME atime;
public long cbSize;
public System.Guid clsid;
public System.Runtime.InteropServices.ComTypes.FILETIME ctime;
public int grfLocksSupported;
public int grfMode;
public int grfStateBits;
public System.Runtime.InteropServices.ComTypes.FILETIME mtime;
public string pwcsName;
public int reserved;
public int type;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct STGMEDIUM
{
public object? pUnkForRelease;
public System.Runtime.InteropServices.ComTypes.TYMED tymed;
public System.IntPtr unionmember;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum SYSKIND
{
SYS_WIN16 = 0,
SYS_WIN32 = 1,
SYS_MAC = 2,
SYS_WIN64 = 3,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum TYMED
{
TYMED_NULL = 0,
TYMED_HGLOBAL = 1,
TYMED_FILE = 2,
TYMED_ISTREAM = 4,
TYMED_ISTORAGE = 8,
TYMED_GDI = 16,
TYMED_MFPICT = 32,
TYMED_ENHMF = 64,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TYPEATTR
{
public short cbAlignment;
public int cbSizeInstance;
public short cbSizeVft;
public short cFuncs;
public short cImplTypes;
public short cVars;
public int dwReserved;
public System.Guid guid;
public System.Runtime.InteropServices.ComTypes.IDLDESC idldescType;
public int lcid;
public System.IntPtr lpstrSchema;
public const int MEMBER_ID_NIL = -1;
public int memidConstructor;
public int memidDestructor;
public System.Runtime.InteropServices.ComTypes.TYPEDESC tdescAlias;
public System.Runtime.InteropServices.ComTypes.TYPEKIND typekind;
public short wMajorVerNum;
public short wMinorVerNum;
public System.Runtime.InteropServices.ComTypes.TYPEFLAGS wTypeFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TYPEDESC
{
public System.IntPtr lpValue;
public short vt;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum TYPEFLAGS : short
{
TYPEFLAG_FAPPOBJECT = (short)1,
TYPEFLAG_FCANCREATE = (short)2,
TYPEFLAG_FLICENSED = (short)4,
TYPEFLAG_FPREDECLID = (short)8,
TYPEFLAG_FHIDDEN = (short)16,
TYPEFLAG_FCONTROL = (short)32,
TYPEFLAG_FDUAL = (short)64,
TYPEFLAG_FNONEXTENSIBLE = (short)128,
TYPEFLAG_FOLEAUTOMATION = (short)256,
TYPEFLAG_FRESTRICTED = (short)512,
TYPEFLAG_FAGGREGATABLE = (short)1024,
TYPEFLAG_FREPLACEABLE = (short)2048,
TYPEFLAG_FDISPATCHABLE = (short)4096,
TYPEFLAG_FREVERSEBIND = (short)8192,
TYPEFLAG_FPROXY = (short)16384,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum TYPEKIND
{
TKIND_ENUM = 0,
TKIND_RECORD = 1,
TKIND_MODULE = 2,
TKIND_INTERFACE = 3,
TKIND_DISPATCH = 4,
TKIND_COCLASS = 5,
TKIND_ALIAS = 6,
TKIND_UNION = 7,
TKIND_MAX = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TYPELIBATTR
{
public System.Guid guid;
public int lcid;
public System.Runtime.InteropServices.ComTypes.SYSKIND syskind;
public System.Runtime.InteropServices.ComTypes.LIBFLAGS wLibFlags;
public short wMajorVerNum;
public short wMinorVerNum;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct VARDESC
{
public System.Runtime.InteropServices.ComTypes.VARDESC.DESCUNION desc;
public System.Runtime.InteropServices.ComTypes.ELEMDESC elemdescVar;
public string lpstrSchema;
public int memid;
public System.Runtime.InteropServices.ComTypes.VARKIND varkind;
public short wVarFlags;
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public partial struct DESCUNION
{
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lpvarValue;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public int oInst;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum VARFLAGS : short
{
VARFLAG_FREADONLY = (short)1,
VARFLAG_FSOURCE = (short)2,
VARFLAG_FBINDABLE = (short)4,
VARFLAG_FREQUESTEDIT = (short)8,
VARFLAG_FDISPLAYBIND = (short)16,
VARFLAG_FDEFAULTBIND = (short)32,
VARFLAG_FHIDDEN = (short)64,
VARFLAG_FRESTRICTED = (short)128,
VARFLAG_FDEFAULTCOLLELEM = (short)256,
VARFLAG_FUIDEFAULT = (short)512,
VARFLAG_FNONBROWSABLE = (short)1024,
VARFLAG_FREPLACEABLE = (short)2048,
VARFLAG_FIMMEDIATEBIND = (short)4096,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum VARKIND
{
VAR_PERINSTANCE = 0,
VAR_STATIC = 1,
VAR_CONST = 2,
VAR_DISPATCH = 3,
}
}
namespace System.Runtime.InteropServices.ObjectiveC
{
[System.Runtime.Versioning.SupportedOSPlatformAttribute("macos")]
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public sealed class ObjectiveCTrackedTypeAttribute : System.Attribute
{
public ObjectiveCTrackedTypeAttribute() { }
}
[System.Runtime.Versioning.SupportedOSPlatformAttribute("macos")]
[System.CLSCompliantAttribute(false)]
public static class ObjectiveCMarshal
{
public unsafe delegate delegate* unmanaged<System.IntPtr, void> UnhandledExceptionPropagationHandler(
System.Exception exception,
System.RuntimeMethodHandle lastMethod,
out System.IntPtr context);
public static unsafe void Initialize(
delegate* unmanaged<void> beginEndCallback,
delegate* unmanaged<System.IntPtr, int> isReferencedCallback,
delegate* unmanaged<System.IntPtr, void> trackedObjectEnteredFinalization,
UnhandledExceptionPropagationHandler unhandledExceptionPropagationHandler) => throw null;
public static GCHandle CreateReferenceTrackingHandle(
object obj,
out System.Span<System.IntPtr> taggedMemory) => throw null;
public enum MessageSendFunction
{
MsgSend,
MsgSendFpret,
MsgSendStret,
MsgSendSuper,
MsgSendSuperStret,
}
public static void SetMessageSendCallback(MessageSendFunction msgSendFunction, System.IntPtr func) => throw null;
public static void SetMessageSendPendingException(Exception? exception) => throw null;
}
}
namespace System.Security
{
public sealed partial class SecureString : System.IDisposable
{
public SecureString() { }
[System.CLSCompliantAttribute(false)]
public unsafe SecureString(char* value, int length) { }
public int Length { get { throw null; } }
public void AppendChar(char c) { }
public void Clear() { }
public System.Security.SecureString Copy() { throw null; }
public void Dispose() { }
public void InsertAt(int index, char c) { }
public bool IsReadOnly() { throw null; }
public void MakeReadOnly() { }
public void RemoveAt(int index) { }
public void SetAt(int index, char c) { }
}
public static partial class SecureStringMarshal
{
public static System.IntPtr SecureStringToCoTaskMemAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToCoTaskMemUnicode(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s) { throw null; }
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System
{
public sealed partial class DataMisalignedException : System.SystemException
{
public DataMisalignedException() { }
public DataMisalignedException(string? message) { }
public DataMisalignedException(string? message, System.Exception? innerException) { }
}
public partial class DllNotFoundException : System.TypeLoadException
{
public DllNotFoundException() { }
protected DllNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public DllNotFoundException(string? message) { }
public DllNotFoundException(string? message, System.Exception? inner) { }
}
}
namespace System.IO
{
public partial class UnmanagedMemoryAccessor : System.IDisposable
{
protected UnmanagedMemoryAccessor() { }
public UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity) { }
public UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { }
public bool CanRead { get { throw null; } }
public bool CanWrite { get { throw null; } }
public long Capacity { get { throw null; } }
protected bool IsOpen { get { throw null; } }
public void Dispose() { }
protected virtual void Dispose(bool disposing) { }
protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { }
public int ReadArray<T>(long position, T[] array, int offset, int count) where T : struct { throw null; }
public bool ReadBoolean(long position) { throw null; }
public byte ReadByte(long position) { throw null; }
public char ReadChar(long position) { throw null; }
public decimal ReadDecimal(long position) { throw null; }
public double ReadDouble(long position) { throw null; }
public short ReadInt16(long position) { throw null; }
public int ReadInt32(long position) { throw null; }
public long ReadInt64(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public sbyte ReadSByte(long position) { throw null; }
public float ReadSingle(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public ushort ReadUInt16(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public uint ReadUInt32(long position) { throw null; }
[System.CLSCompliantAttribute(false)]
public ulong ReadUInt64(long position) { throw null; }
public void Read<T>(long position, out T structure) where T : struct { throw null; }
public void Write(long position, bool value) { }
public void Write(long position, byte value) { }
public void Write(long position, char value) { }
public void Write(long position, decimal value) { }
public void Write(long position, double value) { }
public void Write(long position, short value) { }
public void Write(long position, int value) { }
public void Write(long position, long value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, sbyte value) { }
public void Write(long position, float value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, ushort value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, uint value) { }
[System.CLSCompliantAttribute(false)]
public void Write(long position, ulong value) { }
public void WriteArray<T>(long position, T[] array, int offset, int count) where T : struct { }
public void Write<T>(long position, ref T structure) where T : struct { }
}
}
namespace System.Runtime.CompilerServices
{
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
public sealed partial class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
{
public IDispatchConstantAttribute() { }
public override object Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
public sealed partial class IUnknownConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
{
public IUnknownConstantAttribute() { }
public override object Value { get { throw null; } }
}
}
namespace System.Runtime.InteropServices
{
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed partial class AllowReversePInvokeCallsAttribute : System.Attribute
{
public AllowReversePInvokeCallsAttribute() { }
}
public readonly partial struct ArrayWithOffset : System.IEquatable<System.Runtime.InteropServices.ArrayWithOffset>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public ArrayWithOffset(object? array, int offset) { throw null; }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; }
public bool Equals(System.Runtime.InteropServices.ArrayWithOffset obj) { throw null; }
public object? GetArray() { throw null; }
public override int GetHashCode() { throw null; }
public int GetOffset() { throw null; }
public static bool operator ==(System.Runtime.InteropServices.ArrayWithOffset a, System.Runtime.InteropServices.ArrayWithOffset b) { throw null; }
public static bool operator !=(System.Runtime.InteropServices.ArrayWithOffset a, System.Runtime.InteropServices.ArrayWithOffset b) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class AutomationProxyAttribute : System.Attribute
{
public AutomationProxyAttribute(bool val) { }
public bool Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false)]
public sealed partial class BestFitMappingAttribute : System.Attribute
{
public bool ThrowOnUnmappableChar;
public BestFitMappingAttribute(bool BestFitMapping) { }
public bool BestFitMapping { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class BStrWrapper
{
public BStrWrapper(object? value) { }
public BStrWrapper(string? value) { }
public string? WrappedObject { get { throw null; } }
}
public enum CallingConvention
{
Winapi = 1,
Cdecl = 2,
StdCall = 3,
ThisCall = 4,
FastCall = 5,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)]
public sealed partial class ClassInterfaceAttribute : System.Attribute
{
public ClassInterfaceAttribute(short classInterfaceType) { }
public ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType classInterfaceType) { }
public System.Runtime.InteropServices.ClassInterfaceType Value { get { throw null; } }
}
public enum ClassInterfaceType
{
None = 0,
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")]
AutoDispatch = 1,
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")]
AutoDual = 2,
}
[System.CLSCompliantAttribute(false)]
public readonly partial struct CLong : System.IEquatable<System.Runtime.InteropServices.CLong>
{
private readonly int _dummyPrimitive;
public CLong(int value) { throw null; }
public CLong(nint value) { throw null; }
public nint Value { get { throw null; } }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw null; }
public bool Equals(System.Runtime.InteropServices.CLong other) { throw null; }
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class CoClassAttribute : System.Attribute
{
public CoClassAttribute(System.Type coClass) { }
public System.Type CoClass { get { throw null; } }
}
public static partial class CollectionsMarshal
{
public static System.Span<T> AsSpan<T>(System.Collections.Generic.List<T>? list) { throw null; }
public static ref TValue GetValueRefOrNullRef<TKey, TValue>(System.Collections.Generic.Dictionary<TKey, TValue> dictionary, TKey key) where TKey : notnull { throw null; }
public static ref TValue? GetValueRefOrAddDefault<TKey, TValue>(System.Collections.Generic.Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) where TKey : notnull { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)]
public sealed partial class ComAliasNameAttribute : System.Attribute
{
public ComAliasNameAttribute(string alias) { }
public string Value { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public partial class ComAwareEventInfo : System.Reflection.EventInfo
{
public ComAwareEventInfo([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, string eventName) { }
public override System.Reflection.EventAttributes Attributes { get { throw null; } }
public override System.Type? DeclaringType { get { throw null; } }
public override int MetadataToken { get { throw null; } }
public override System.Reflection.Module Module { get { throw null; } }
public override string Name { get { throw null; } }
public override System.Type? ReflectedType { get { throw null; } }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public override void AddEventHandler(object target, System.Delegate handler) { }
public override System.Reflection.MethodInfo? GetAddMethod(bool nonPublic) { throw null; }
public override object[] GetCustomAttributes(bool inherit) { throw null; }
public override object[] GetCustomAttributes(System.Type attributeType, bool inherit) { throw null; }
public override System.Collections.Generic.IList<System.Reflection.CustomAttributeData> GetCustomAttributesData() { throw null; }
public override System.Reflection.MethodInfo[] GetOtherMethods(bool nonPublic) { throw null; }
public override System.Reflection.MethodInfo? GetRaiseMethod(bool nonPublic) { throw null; }
public override System.Reflection.MethodInfo? GetRemoveMethod(bool nonPublic) { throw null; }
public override bool IsDefined(System.Type attributeType, bool inherit) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public override void RemoveEventHandler(object target, System.Delegate handler) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)]
public sealed partial class ComCompatibleVersionAttribute : System.Attribute
{
public ComCompatibleVersionAttribute(int major, int minor, int build, int revision) { }
public int BuildNumber { get { throw null; } }
public int MajorVersion { get { throw null; } }
public int MinorVersion { get { throw null; } }
public int RevisionNumber { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=false)]
public sealed partial class ComConversionLossAttribute : System.Attribute
{
public ComConversionLossAttribute() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=false)]
public sealed partial class ComDefaultInterfaceAttribute : System.Attribute
{
public ComDefaultInterfaceAttribute(System.Type defaultInterface) { }
public System.Type Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class ComEventInterfaceAttribute : System.Attribute
{
public ComEventInterfaceAttribute([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)] System.Type SourceInterface, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] System.Type EventProvider) { }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
public System.Type EventProvider { get { throw null; } }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)]
public System.Type SourceInterface { get { throw null; } }
}
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static partial class ComEventsHelper
{
public static void Combine(object rcw, System.Guid iid, int dispid, System.Delegate d) { }
public static System.Delegate? Remove(object rcw, System.Guid iid, int dispid, System.Delegate d) { throw null; }
}
public partial class COMException : System.Runtime.InteropServices.ExternalException
{
public COMException() { }
protected COMException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public COMException(string? message) { }
public COMException(string? message, System.Exception? inner) { }
public COMException(string? message, int errorCode) { }
public override string ToString() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class ComImportAttribute : System.Attribute
{
public ComImportAttribute() { }
}
public enum ComInterfaceType
{
InterfaceIsDual = 0,
InterfaceIsIUnknown = 1,
InterfaceIsIDispatch = 2,
InterfaceIsIInspectable = 3,
}
public enum ComMemberType
{
Method = 0,
PropGet = 1,
PropSet = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class ComRegisterFunctionAttribute : System.Attribute
{
public ComRegisterFunctionAttribute() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=true)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class ComSourceInterfacesAttribute : System.Attribute
{
public ComSourceInterfacesAttribute(string sourceInterfaces) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3) { }
public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3, System.Type sourceInterface4) { }
public string Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class ComUnregisterFunctionAttribute : System.Attribute
{
public ComUnregisterFunctionAttribute() { }
}
[System.CLSCompliantAttribute(false)]
public readonly partial struct CULong : System.IEquatable<System.Runtime.InteropServices.CULong>
{
private readonly int _dummyPrimitive;
public CULong(uint value) { throw null; }
public CULong(nuint value) { throw null; }
public nuint Value { get { throw null; } }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw null; }
public bool Equals(System.Runtime.InteropServices.CULong other) { throw null; }
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("CurrencyWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")]
public sealed partial class CurrencyWrapper
{
public CurrencyWrapper(decimal obj) { }
public CurrencyWrapper(object obj) { }
public decimal WrappedObject { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum CustomQueryInterfaceMode
{
Ignore = 0,
Allow = 1,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum CustomQueryInterfaceResult
{
Handled = 0,
NotHandled = 1,
Failed = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Module, Inherited=false)]
public sealed partial class DefaultCharSetAttribute : System.Attribute
{
public DefaultCharSetAttribute(System.Runtime.InteropServices.CharSet charSet) { }
public System.Runtime.InteropServices.CharSet CharSet { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Method, AllowMultiple=false)]
public sealed partial class DefaultDllImportSearchPathsAttribute : System.Attribute
{
public DefaultDllImportSearchPathsAttribute(System.Runtime.InteropServices.DllImportSearchPath paths) { }
public System.Runtime.InteropServices.DllImportSearchPath Paths { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Parameter)]
public sealed partial class DefaultParameterValueAttribute : System.Attribute
{
public DefaultParameterValueAttribute(object? value) { }
public object? Value { get { throw null; } }
}
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class DispatchWrapper
{
public DispatchWrapper(object? obj) { }
public object? WrappedObject { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)]
public sealed partial class DispIdAttribute : System.Attribute
{
public DispIdAttribute(int dispId) { }
public int Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class DllImportAttribute : System.Attribute
{
public bool BestFitMapping;
public System.Runtime.InteropServices.CallingConvention CallingConvention;
public System.Runtime.InteropServices.CharSet CharSet;
public string? EntryPoint;
public bool ExactSpelling;
public bool PreserveSig;
public bool SetLastError;
public bool ThrowOnUnmappableChar;
public DllImportAttribute(string dllName) { }
public string Value { get { throw null; } }
}
public delegate System.IntPtr DllImportResolver(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath);
[System.FlagsAttribute]
public enum DllImportSearchPath
{
LegacyBehavior = 0,
AssemblyDirectory = 2,
UseDllDirectoryForDependencies = 256,
ApplicationDirectory = 512,
UserDirectories = 1024,
System32 = 2048,
SafeDirectories = 4096,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)]
public sealed class DynamicInterfaceCastableImplementationAttribute : Attribute
{
public DynamicInterfaceCastableImplementationAttribute() { }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class ErrorWrapper
{
public ErrorWrapper(System.Exception e) { }
public ErrorWrapper(int errorCode) { }
public ErrorWrapper(object errorCode) { }
public int ErrorCode { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false)]
public sealed partial class GuidAttribute : System.Attribute
{
public GuidAttribute(string guid) { }
public string Value { get { throw null; } }
}
public sealed partial class HandleCollector
{
public HandleCollector(string? name, int initialThreshold) { }
public HandleCollector(string? name, int initialThreshold, int maximumThreshold) { }
public int Count { get { throw null; } }
public int InitialThreshold { get { throw null; } }
public int MaximumThreshold { get { throw null; } }
public string Name { get { throw null; } }
public void Add() { }
public void Remove() { }
}
public readonly partial struct HandleRef
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public HandleRef(object? wrapper, System.IntPtr handle) { throw null; }
public System.IntPtr Handle { get { throw null; } }
public object? Wrapper { get { throw null; } }
public static explicit operator System.IntPtr (System.Runtime.InteropServices.HandleRef value) { throw null; }
public static System.IntPtr ToIntPtr(System.Runtime.InteropServices.HandleRef value) { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public partial interface ICustomAdapter
{
object GetUnderlyingObject();
}
public partial interface ICustomFactory
{
System.MarshalByRefObject CreateInstance(System.Type serverType);
}
public partial interface ICustomMarshaler
{
void CleanUpManagedData(object ManagedObj);
void CleanUpNativeData(System.IntPtr pNativeData);
int GetNativeDataSize();
System.IntPtr MarshalManagedToNative(object ManagedObj);
object MarshalNativeToManaged(System.IntPtr pNativeData);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public partial interface ICustomQueryInterface
{
System.Runtime.InteropServices.CustomQueryInterfaceResult GetInterface(ref System.Guid iid, out System.IntPtr ppv);
}
public partial interface IDynamicInterfaceCastable
{
bool IsInterfaceImplemented(System.RuntimeTypeHandle interfaceType, bool throwIfNotImplemented);
System.RuntimeTypeHandle GetInterfaceImplementation(System.RuntimeTypeHandle interfaceType);
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)]
public sealed partial class ImportedFromTypeLibAttribute : System.Attribute
{
public ImportedFromTypeLibAttribute(string tlbFile) { }
public string Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class InterfaceTypeAttribute : System.Attribute
{
public InterfaceTypeAttribute(short interfaceType) { }
public InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType interfaceType) { }
public System.Runtime.InteropServices.ComInterfaceType Value { get { throw null; } }
}
public partial class InvalidComObjectException : System.SystemException
{
public InvalidComObjectException() { }
protected InvalidComObjectException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidComObjectException(string? message) { }
public InvalidComObjectException(string? message, System.Exception? inner) { }
}
public partial class InvalidOleVariantTypeException : System.SystemException
{
public InvalidOleVariantTypeException() { }
protected InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidOleVariantTypeException(string? message) { }
public InvalidOleVariantTypeException(string? message, System.Exception? inner) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class LCIDConversionAttribute : System.Attribute
{
public LCIDConversionAttribute(int lcid) { }
public int Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple = false, Inherited=false)]
public sealed partial class LibraryImportAttribute : System.Attribute
{
public LibraryImportAttribute(string libraryName) { }
public string LibraryName { get { throw null; } }
public string? EntryPoint { get { throw null; } set { } }
public bool SetLastError { get { throw null; } set { }}
public System.Runtime.InteropServices.StringMarshalling StringMarshalling { get { throw null; } set { } }
public System.Type? StringMarshallingCustomType { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)]
public sealed partial class ManagedToNativeComInteropStubAttribute : System.Attribute
{
public ManagedToNativeComInteropStubAttribute(System.Type classType, string methodName) { }
public System.Type ClassType { get { throw null; } }
public string MethodName { get { throw null; } }
}
public static partial class Marshal
{
public static readonly int SystemDefaultCharSize;
public static readonly int SystemMaxDBCSCharSize;
public static int AddRef(System.IntPtr pUnk) { throw null; }
public static System.IntPtr AllocCoTaskMem(int cb) { throw null; }
public static System.IntPtr AllocHGlobal(int cb) { throw null; }
public static System.IntPtr AllocHGlobal(System.IntPtr cb) { throw null; }
public static bool AreComObjectsAvailableForCleanup() { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Built-in COM support is not trim compatible", Url = "https://aka.ms/dotnet-illink/com")]
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object BindToMoniker(string monikerName) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static void ChangeWrapperHandleStrength(object otp, bool fIsWeak) { }
public static void CleanupUnusedObjectsInCurrentContext() { }
public static void Copy(byte[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(char[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(double[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(short[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(int[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(long[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(System.IntPtr source, byte[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, char[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, double[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, short[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, int[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, long[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, System.IntPtr[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr source, float[] destination, int startIndex, int length) { }
public static void Copy(System.IntPtr[] source, int startIndex, System.IntPtr destination, int length) { }
public static void Copy(float[] source, int startIndex, System.IntPtr destination, int length) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr CreateAggregatedObject(System.IntPtr pOuter, object o) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr CreateAggregatedObject<T>(System.IntPtr pOuter, T o) where T : notnull { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("o")]
public static object? CreateWrapperOfType(object? o, System.Type t) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static TWrapper CreateWrapperOfType<T, TWrapper>(T? o) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the DestroyStructure<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void DestroyStructure(System.IntPtr ptr, System.Type structuretype) { }
public static void DestroyStructure<T>(System.IntPtr ptr) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int FinalReleaseComObject(object o) { throw null; }
public static void FreeBSTR(System.IntPtr ptr) { }
public static void FreeCoTaskMem(System.IntPtr ptr) { }
public static void FreeHGlobal(System.IntPtr hglobal) { }
public static System.Guid GenerateGuidForType(System.Type type) { throw null; }
public static string? GenerateProgIdForType(System.Type type) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr GetComInterfaceForObject(object o, System.Type T) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr GetComInterfaceForObject<T, TInterface>([System.Diagnostics.CodeAnalysis.DisallowNullAttribute] T o) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object? GetComObjectData(object obj, object key) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the delegate might not be available. Use the GetDelegateForFunctionPointer<TDelegate> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.Delegate GetDelegateForFunctionPointer(System.IntPtr ptr, System.Type t) { throw null; }
public static TDelegate GetDelegateForFunctionPointer<TDelegate>(System.IntPtr ptr) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int GetEndComSlot(System.Type t) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("GetExceptionCode() may be unavailable in future releases.")]
public static int GetExceptionCode() { throw null; }
public static System.Exception? GetExceptionForHR(int errorCode) { throw null; }
public static System.Exception? GetExceptionForHR(int errorCode, System.IntPtr errorInfo) { throw null; }
public static System.IntPtr GetExceptionPointers() { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the delegate might not be available. Use the GetFunctionPointerForDelegate<TDelegate> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr GetFunctionPointerForDelegate(System.Delegate d) { throw null; }
public static System.IntPtr GetFunctionPointerForDelegate<TDelegate>(TDelegate d) where TDelegate : notnull { throw null; }
public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; }
public static int GetHRForException(System.Exception? e) { throw null; }
public static int GetHRForLastWin32Error() { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr GetIDispatchForObject(object o) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.IntPtr GetIUnknownForObject(object o) { throw null; }
public static int GetLastPInvokeError() { throw null; }
public static int GetLastSystemError() { throw null; }
public static int GetLastWin32Error() { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void GetNativeVariantForObject(object? obj, System.IntPtr pDstNativeVariant) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void GetNativeVariantForObject<T>(T? obj, System.IntPtr pDstNativeVariant) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object GetObjectForIUnknown(System.IntPtr pUnk) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static object? GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static T? GetObjectForNativeVariant<T>(System.IntPtr pSrcNativeVariant) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static object?[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static T[] GetObjectsForNativeVariants<T>(System.IntPtr aSrcNativeVariant, int cVars) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int GetStartComSlot(System.Type t) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static System.Type? GetTypeFromCLSID(System.Guid clsid) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static object GetUniqueObjectForIUnknown(System.IntPtr unknown) { throw null; }
public static void InitHandle(SafeHandle safeHandle, IntPtr handle) { }
public static bool IsComObject(object o) { throw null; }
public static bool IsTypeVisibleFromCom(System.Type t) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr OffsetOf(System.Type t, string fieldName) { throw null; }
public static System.IntPtr OffsetOf<T>(string fieldName) { throw null; }
public static void Prelink(System.Reflection.MethodInfo m) { }
public static void PrelinkAll(System.Type c) { }
public static string? PtrToStringAnsi(System.IntPtr ptr) { throw null; }
public static string PtrToStringAnsi(System.IntPtr ptr, int len) { throw null; }
public static string? PtrToStringAuto(System.IntPtr ptr) { throw null; }
public static string? PtrToStringAuto(System.IntPtr ptr, int len) { throw null; }
public static string PtrToStringBSTR(System.IntPtr ptr) { throw null; }
public static string? PtrToStringUni(System.IntPtr ptr) { throw null; }
public static string PtrToStringUni(System.IntPtr ptr, int len) { throw null; }
public static string? PtrToStringUTF8(System.IntPtr ptr) { throw null; }
public static string PtrToStringUTF8(System.IntPtr ptr, int byteLen) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void PtrToStructure(System.IntPtr ptr, object structure) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static object? PtrToStructure(System.IntPtr ptr, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors| System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] System.Type structureType) { throw null; }
public static T? PtrToStructure<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]T>(System.IntPtr ptr) { throw null; }
public static void PtrToStructure<T>(System.IntPtr ptr, [System.Diagnostics.CodeAnalysis.DisallowNullAttribute] T structure) { }
public static int QueryInterface(System.IntPtr pUnk, ref System.Guid iid, out System.IntPtr ppv) { throw null; }
public static byte ReadByte(System.IntPtr ptr) { throw null; }
public static byte ReadByte(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadByte(Object, Int32) may be unavailable in future releases.")]
public static byte ReadByte(object ptr, int ofs) { throw null; }
public static short ReadInt16(System.IntPtr ptr) { throw null; }
public static short ReadInt16(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadInt16(Object, Int32) may be unavailable in future releases.")]
public static short ReadInt16(object ptr, int ofs) { throw null; }
public static int ReadInt32(System.IntPtr ptr) { throw null; }
public static int ReadInt32(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadInt32(Object, Int32) may be unavailable in future releases.")]
public static int ReadInt32(object ptr, int ofs) { throw null; }
public static long ReadInt64(System.IntPtr ptr) { throw null; }
public static long ReadInt64(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadInt64(Object, Int32) may be unavailable in future releases.")]
public static long ReadInt64(object ptr, int ofs) { throw null; }
public static System.IntPtr ReadIntPtr(System.IntPtr ptr) { throw null; }
public static System.IntPtr ReadIntPtr(System.IntPtr ptr, int ofs) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("ReadIntPtr(Object, Int32) may be unavailable in future releases.")]
public static System.IntPtr ReadIntPtr(object ptr, int ofs) { throw null; }
public static System.IntPtr ReAllocCoTaskMem(System.IntPtr pv, int cb) { throw null; }
public static System.IntPtr ReAllocHGlobal(System.IntPtr pv, System.IntPtr cb) { throw null; }
public static int Release(System.IntPtr pUnk) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static int ReleaseComObject(object o) { throw null; }
public static System.IntPtr SecureStringToBSTR(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToCoTaskMemAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToCoTaskMemUnicode(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s) { throw null; }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static bool SetComObjectData(object obj, object key, object? data) { throw null; }
public static void SetLastPInvokeError(int error) { throw null; }
public static void SetLastSystemError(int error) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the SizeOf<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static int SizeOf(object structure) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the SizeOf<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static int SizeOf(System.Type t) { throw null; }
public static int SizeOf<T>() { throw null; }
public static int SizeOf<T>(T structure) { throw null; }
public static System.IntPtr StringToBSTR(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemAnsi(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemAuto(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemUni(string? s) { throw null; }
public static System.IntPtr StringToCoTaskMemUTF8(string? s) { throw null; }
public static System.IntPtr StringToHGlobalAnsi(string? s) { throw null; }
public static System.IntPtr StringToHGlobalAuto(string? s) { throw null; }
public static System.IntPtr StringToHGlobalUni(string? s) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available. Use the StructureToPtr<T> overload instead.")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static void StructureToPtr(object structure, System.IntPtr ptr, bool fDeleteOld) { }
public static void StructureToPtr<T>([System.Diagnostics.CodeAnalysis.DisallowNullAttribute] T structure, System.IntPtr ptr, bool fDeleteOld) { }
public static void ThrowExceptionForHR(int errorCode) { }
public static void ThrowExceptionForHR(int errorCode, System.IntPtr errorInfo) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static System.IntPtr UnsafeAddrOfPinnedArrayElement(System.Array arr, int index) { throw null; }
public static System.IntPtr UnsafeAddrOfPinnedArrayElement<T>(T[] arr, int index) { throw null; }
public static void WriteByte(System.IntPtr ptr, byte val) { }
public static void WriteByte(System.IntPtr ptr, int ofs, byte val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteByte(Object, Int32, Byte) may be unavailable in future releases.")]
public static void WriteByte(object ptr, int ofs, byte val) { }
public static void WriteInt16(System.IntPtr ptr, char val) { }
public static void WriteInt16(System.IntPtr ptr, short val) { }
public static void WriteInt16(System.IntPtr ptr, int ofs, char val) { }
public static void WriteInt16(System.IntPtr ptr, int ofs, short val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt16(Object, Int32, Char) may be unavailable in future releases.")]
public static void WriteInt16(object ptr, int ofs, char val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt16(Object, Int32, Int16) may be unavailable in future releases.")]
public static void WriteInt16(object ptr, int ofs, short val) { }
public static void WriteInt32(System.IntPtr ptr, int val) { }
public static void WriteInt32(System.IntPtr ptr, int ofs, int val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt32(Object, Int32, Int32) may be unavailable in future releases.")]
public static void WriteInt32(object ptr, int ofs, int val) { }
public static void WriteInt64(System.IntPtr ptr, int ofs, long val) { }
public static void WriteInt64(System.IntPtr ptr, long val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteInt64(Object, Int32, Int64) may be unavailable in future releases.")]
public static void WriteInt64(object ptr, int ofs, long val) { }
public static void WriteIntPtr(System.IntPtr ptr, int ofs, System.IntPtr val) { }
public static void WriteIntPtr(System.IntPtr ptr, System.IntPtr val) { }
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Marshalling code for the object might not be available")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("WriteIntPtr(Object, Int32, IntPtr) may be unavailable in future releases.")]
public static void WriteIntPtr(object ptr, int ofs, System.IntPtr val) { }
public static void ZeroFreeBSTR(System.IntPtr s) { }
public static void ZeroFreeCoTaskMemAnsi(System.IntPtr s) { }
public static void ZeroFreeCoTaskMemUnicode(System.IntPtr s) { }
public static void ZeroFreeCoTaskMemUTF8(System.IntPtr s) { }
public static void ZeroFreeGlobalAllocAnsi(System.IntPtr s) { }
public static void ZeroFreeGlobalAllocUnicode(System.IntPtr s) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue, Inherited=false)]
public sealed partial class MarshalAsAttribute : System.Attribute
{
public System.Runtime.InteropServices.UnmanagedType ArraySubType;
public int IidParameterIndex;
public string? MarshalCookie;
public string? MarshalType;
public System.Type? MarshalTypeRef;
public System.Runtime.InteropServices.VarEnum SafeArraySubType;
public System.Type? SafeArrayUserDefinedSubType;
public int SizeConst;
public short SizeParamIndex;
public MarshalAsAttribute(short unmanagedType) { }
public MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType unmanagedType) { }
public System.Runtime.InteropServices.UnmanagedType Value { get { throw null; } }
}
public partial class MarshalDirectiveException : System.SystemException
{
public MarshalDirectiveException() { }
protected MarshalDirectiveException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public MarshalDirectiveException(string? message) { }
public MarshalDirectiveException(string? message, System.Exception? inner) { }
}
public static partial class NativeLibrary
{
public static void Free(System.IntPtr handle) { }
public static System.IntPtr GetExport(System.IntPtr handle, string name) { throw null; }
public static System.IntPtr Load(string libraryPath) { throw null; }
public static System.IntPtr Load(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath) { throw null; }
public static void SetDllImportResolver(System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportResolver resolver) { }
public static bool TryGetExport(System.IntPtr handle, string name, out System.IntPtr address) { throw null; }
public static bool TryLoad(string libraryPath, out System.IntPtr handle) { throw null; }
public static bool TryLoad(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath, out System.IntPtr handle) { throw null; }
}
public static unsafe partial class NativeMemory
{
[System.CLSCompliantAttribute(false)]
public static void* AlignedAlloc(nuint byteCount, nuint alignment) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void AlignedFree(void* ptr) { }
[System.CLSCompliantAttribute(false)]
public static void* AlignedRealloc(void* ptr, nuint byteCount, nuint alignment) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* Alloc(nuint byteCount) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* Alloc(nuint elementCount, nuint elementSize) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* AllocZeroed(nuint byteCount) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void* AllocZeroed(nuint elementCount, nuint elementSize) { throw null; }
[System.CLSCompliantAttribute(false)]
public static void Free(void* ptr) { }
[System.CLSCompliantAttribute(false)]
public static void* Realloc(void* ptr, nuint byteCount) { throw null; }
}
public readonly partial struct NFloat : System.IComparable, System.IComparable<System.Runtime.InteropServices.NFloat>, System.IEquatable<System.Runtime.InteropServices.NFloat>, System.IFormattable, System.ISpanFormattable
{
private readonly int _dummyPrimitive;
public NFloat(double value) { throw null; }
public NFloat(float value) { throw null; }
public static System.Runtime.InteropServices.NFloat Epsilon { get { throw null; } }
public static System.Runtime.InteropServices.NFloat MaxValue { get { throw null; } }
public static System.Runtime.InteropServices.NFloat MinValue { get { throw null; } }
public static System.Runtime.InteropServices.NFloat NaN { get { throw null; } }
public static System.Runtime.InteropServices.NFloat NegativeInfinity { get { throw null; } }
public static System.Runtime.InteropServices.NFloat PositiveInfinity { get { throw null; } }
public static int Size { get { throw null; } }
public double Value { get { throw null; } }
public int CompareTo(object? obj) { throw null; }
public int CompareTo(System.Runtime.InteropServices.NFloat other) { throw null; }
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; }
public bool Equals(System.Runtime.InteropServices.NFloat other) { throw null; }
public override int GetHashCode() { throw null; }
public static bool IsFinite(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsInfinity(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNaN(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNegative(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNegativeInfinity(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsNormal(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsPositiveInfinity(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool IsSubnormal(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator +(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator --(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator /(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator ==(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static explicit operator System.Runtime.InteropServices.NFloat (decimal value) { throw null; }
public static explicit operator System.Runtime.InteropServices.NFloat (double value) { throw null; }
public static explicit operator byte (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator char (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator decimal (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator short (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator int (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator long (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator nint (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator sbyte (System.Runtime.InteropServices.NFloat value) { throw null; }
public static explicit operator float (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator ushort (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator uint (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator ulong (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static explicit operator nuint (System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool operator >(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator >=(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (byte value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (char value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (short value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (int value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (long value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (nint value) { throw null; }
public static implicit operator double (System.Runtime.InteropServices.NFloat value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (sbyte value) { throw null; }
public static implicit operator System.Runtime.InteropServices.NFloat (float value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (ushort value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (uint value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (ulong value) { throw null; }
[System.CLSCompliantAttribute(false)]
public static implicit operator System.Runtime.InteropServices.NFloat (nuint value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator ++(System.Runtime.InteropServices.NFloat value) { throw null; }
public static bool operator !=(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator <(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static bool operator <=(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator %(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator *(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator -(System.Runtime.InteropServices.NFloat left, System.Runtime.InteropServices.NFloat right) { throw null; }
public static System.Runtime.InteropServices.NFloat operator -(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat operator +(System.Runtime.InteropServices.NFloat value) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(System.ReadOnlySpan<char> s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.AllowDecimalPoint | System.Globalization.NumberStyles.AllowExponent | System.Globalization.NumberStyles.AllowLeadingSign | System.Globalization.NumberStyles.AllowLeadingWhite | System.Globalization.NumberStyles.AllowThousands | System.Globalization.NumberStyles.AllowTrailingWhite, System.IFormatProvider? provider = null) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s, System.Globalization.NumberStyles style) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s, System.Globalization.NumberStyles style, System.IFormatProvider? provider) { throw null; }
public static System.Runtime.InteropServices.NFloat Parse(string s, System.IFormatProvider? provider) { throw null; }
public override string ToString() { throw null; }
public string ToString(System.IFormatProvider? provider) { throw null; }
public string ToString(string? format) { throw null; }
public string ToString(string? format, System.IFormatProvider? provider) { throw null; }
public bool TryFormat(System.Span<char> destination, out int charsWritten, System.ReadOnlySpan<char> format = default(System.ReadOnlySpan<char>), System.IFormatProvider? provider = null) { throw null; }
public static bool TryParse(System.ReadOnlySpan<char> s, System.Globalization.NumberStyles style, System.IFormatProvider? provider, out System.Runtime.InteropServices.NFloat result) { throw null; }
public static bool TryParse(System.ReadOnlySpan<char> s, out System.Runtime.InteropServices.NFloat result) { throw null; }
public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? s, System.Globalization.NumberStyles style, System.IFormatProvider? provider, out System.Runtime.InteropServices.NFloat result) { throw null; }
public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? s, out System.Runtime.InteropServices.NFloat result) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)]
public sealed partial class OptionalAttribute : System.Attribute
{
public OptionalAttribute() { }
}
public enum PosixSignal
{
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGTSTP = -10,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGTTOU = -9,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGTTIN = -8,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGWINCH = -7,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGCONT = -6,
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
SIGCHLD = -5,
SIGTERM = -4,
SIGQUIT = -3,
SIGINT = -2,
SIGHUP = -1,
}
public sealed partial class PosixSignalContext
{
public PosixSignalContext(System.Runtime.InteropServices.PosixSignal signal) { }
public bool Cancel { get { throw null; } set { } }
public System.Runtime.InteropServices.PosixSignal Signal { get { throw null; } }
}
public sealed partial class PosixSignalRegistration : System.IDisposable
{
internal PosixSignalRegistration() { }
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static System.Runtime.InteropServices.PosixSignalRegistration Create(System.Runtime.InteropServices.PosixSignal signal, System.Action<System.Runtime.InteropServices.PosixSignalContext> handler) { throw null; }
public void Dispose() { }
~PosixSignalRegistration() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class PreserveSigAttribute : System.Attribute
{
public PreserveSigAttribute() { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false, AllowMultiple=true)]
public sealed partial class PrimaryInteropAssemblyAttribute : System.Attribute
{
public PrimaryInteropAssemblyAttribute(int major, int minor) { }
public int MajorVersion { get { throw null; } }
public int MinorVersion { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, Inherited=false)]
public sealed partial class ProgIdAttribute : System.Attribute
{
public ProgIdAttribute(string progId) { }
public string Value { get { throw null; } }
}
public static partial class RuntimeEnvironment
{
[System.ObsoleteAttribute("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId = "SYSLIB0019", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public static string SystemConfigurationFile { get { throw null; } }
public static bool FromGlobalAccessCache(System.Reflection.Assembly a) { throw null; }
public static string GetRuntimeDirectory() { throw null; }
[System.ObsoleteAttribute("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId = "SYSLIB0019", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public static System.IntPtr GetRuntimeInterfaceAsIntPtr(System.Guid clsid, System.Guid riid) { throw null; }
[System.ObsoleteAttribute("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId = "SYSLIB0019", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public static object GetRuntimeInterfaceAsObject(System.Guid clsid, System.Guid riid) { throw null; }
public static string GetSystemVersion() { throw null; }
}
public partial class SafeArrayRankMismatchException : System.SystemException
{
public SafeArrayRankMismatchException() { }
protected SafeArrayRankMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public SafeArrayRankMismatchException(string? message) { }
public SafeArrayRankMismatchException(string? message, System.Exception? inner) { }
}
public partial class SafeArrayTypeMismatchException : System.SystemException
{
public SafeArrayTypeMismatchException() { }
protected SafeArrayTypeMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public SafeArrayTypeMismatchException(string? message) { }
public SafeArrayTypeMismatchException(string? message, System.Exception? inner) { }
}
public partial class SEHException : System.Runtime.InteropServices.ExternalException
{
public SEHException() { }
protected SEHException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public SEHException(string? message) { }
public SEHException(string? message, System.Exception? inner) { }
public virtual bool CanResume() { throw null; }
}
public partial class StandardOleMarshalObject : System.MarshalByRefObject
{
protected StandardOleMarshalObject() { }
}
public enum StringMarshalling
{
Custom = 0,
Utf8 = 1,
Utf16 = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public sealed partial class TypeIdentifierAttribute : System.Attribute
{
public TypeIdentifierAttribute() { }
public TypeIdentifierAttribute(string? scope, string? identifier) { }
public string? Identifier { get { throw null; } }
public string? Scope { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)]
public sealed partial class TypeLibFuncAttribute : System.Attribute
{
public TypeLibFuncAttribute(short flags) { }
public TypeLibFuncAttribute(System.Runtime.InteropServices.TypeLibFuncFlags flags) { }
public System.Runtime.InteropServices.TypeLibFuncFlags Value { get { throw null; } }
}
[System.FlagsAttribute]
public enum TypeLibFuncFlags
{
FRestricted = 1,
FSource = 2,
FBindable = 4,
FRequestEdit = 8,
FDisplayBind = 16,
FDefaultBind = 32,
FHidden = 64,
FUsesGetLastError = 128,
FDefaultCollelem = 256,
FUiDefault = 512,
FNonBrowsable = 1024,
FReplaceable = 2048,
FImmediateBind = 4096,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Interface, Inherited=false)]
public sealed partial class TypeLibImportClassAttribute : System.Attribute
{
public TypeLibImportClassAttribute(System.Type importClass) { }
public string Value { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false)]
public sealed partial class TypeLibTypeAttribute : System.Attribute
{
public TypeLibTypeAttribute(short flags) { }
public TypeLibTypeAttribute(System.Runtime.InteropServices.TypeLibTypeFlags flags) { }
public System.Runtime.InteropServices.TypeLibTypeFlags Value { get { throw null; } }
}
[System.FlagsAttribute]
public enum TypeLibTypeFlags
{
FAppObject = 1,
FCanCreate = 2,
FLicensed = 4,
FPreDeclId = 8,
FHidden = 16,
FControl = 32,
FDual = 64,
FNonExtensible = 128,
FOleAutomation = 256,
FRestricted = 512,
FAggregatable = 1024,
FReplaceable = 2048,
FDispatchable = 4096,
FReverseBind = 8192,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)]
public sealed partial class TypeLibVarAttribute : System.Attribute
{
public TypeLibVarAttribute(short flags) { }
public TypeLibVarAttribute(System.Runtime.InteropServices.TypeLibVarFlags flags) { }
public System.Runtime.InteropServices.TypeLibVarFlags Value { get { throw null; } }
}
[System.FlagsAttribute]
public enum TypeLibVarFlags
{
FReadOnly = 1,
FSource = 2,
FBindable = 4,
FRequestEdit = 8,
FDisplayBind = 16,
FDefaultBind = 32,
FHidden = 64,
FRestricted = 128,
FDefaultCollelem = 256,
FUiDefault = 512,
FNonBrowsable = 1024,
FReplaceable = 2048,
FImmediateBind = 4096,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)]
public sealed partial class TypeLibVersionAttribute : System.Attribute
{
public TypeLibVersionAttribute(int major, int minor) { }
public int MajorVersion { get { throw null; } }
public int MinorVersion { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class UnknownWrapper
{
public UnknownWrapper(object? obj) { }
public object? WrappedObject { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)]
public sealed partial class UnmanagedFunctionPointerAttribute : System.Attribute
{
public bool BestFitMapping;
public System.Runtime.InteropServices.CharSet CharSet;
public bool SetLastError;
public bool ThrowOnUnmappableChar;
public UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention callingConvention) { }
public System.Runtime.InteropServices.CallingConvention CallingConvention { get { throw null; } }
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum VarEnum
{
VT_EMPTY = 0,
VT_NULL = 1,
VT_I2 = 2,
VT_I4 = 3,
VT_R4 = 4,
VT_R8 = 5,
VT_CY = 6,
VT_DATE = 7,
VT_BSTR = 8,
VT_DISPATCH = 9,
VT_ERROR = 10,
VT_BOOL = 11,
VT_VARIANT = 12,
VT_UNKNOWN = 13,
VT_DECIMAL = 14,
VT_I1 = 16,
VT_UI1 = 17,
VT_UI2 = 18,
VT_UI4 = 19,
VT_I8 = 20,
VT_UI8 = 21,
VT_INT = 22,
VT_UINT = 23,
VT_VOID = 24,
VT_HRESULT = 25,
VT_PTR = 26,
VT_SAFEARRAY = 27,
VT_CARRAY = 28,
VT_USERDEFINED = 29,
VT_LPSTR = 30,
VT_LPWSTR = 31,
VT_RECORD = 36,
VT_FILETIME = 64,
VT_BLOB = 65,
VT_STREAM = 66,
VT_STORAGE = 67,
VT_STREAMED_OBJECT = 68,
VT_STORED_OBJECT = 69,
VT_BLOB_OBJECT = 70,
VT_CF = 71,
VT_CLSID = 72,
VT_VECTOR = 4096,
VT_ARRAY = 8192,
VT_BYREF = 16384,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed partial class VariantWrapper
{
public VariantWrapper(object? obj) { }
public object? WrappedObject { get { throw null; } }
}
[System.FlagsAttribute]
public enum CreateComInterfaceFlags
{
None = 0,
CallerDefinedIUnknown = 1,
TrackerSupport = 2,
}
[System.FlagsAttribute]
public enum CreateObjectFlags
{
None = 0,
TrackerObject = 1,
UniqueInstance = 2,
Aggregation = 4,
Unwrap = 8,
}
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.CLSCompliantAttribute(false)]
public abstract class ComWrappers
{
public struct ComInterfaceEntry
{
public System.Guid IID;
public System.IntPtr Vtable;
}
public struct ComInterfaceDispatch
{
public System.IntPtr Vtable;
public unsafe static T GetInstance<T>(ComInterfaceDispatch* dispatchPtr) where T : class { throw null; }
}
public System.IntPtr GetOrCreateComInterfaceForObject(object instance, CreateComInterfaceFlags flags) { throw null; }
protected unsafe abstract ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count);
public object GetOrCreateObjectForComInstance(System.IntPtr externalComObject, CreateObjectFlags flags) { throw null; }
protected abstract object? CreateObject(System.IntPtr externalComObject, CreateObjectFlags flags);
public object GetOrRegisterObjectForComInstance(System.IntPtr externalComObject, CreateObjectFlags flags, object wrapper) { throw null; }
public object GetOrRegisterObjectForComInstance(System.IntPtr externalComObject, CreateObjectFlags flags, object wrapper, System.IntPtr inner) { throw null; }
protected abstract void ReleaseObjects(System.Collections.IEnumerable objects);
public static void RegisterForTrackerSupport(ComWrappers instance) { }
[System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]
public static void RegisterForMarshalling(ComWrappers instance) { }
protected static void GetIUnknownImpl(out System.IntPtr fpQueryInterface, out System.IntPtr fpAddRef, out System.IntPtr fpRelease) { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class UnmanagedCallConvAttribute : System.Attribute
{
public UnmanagedCallConvAttribute() { }
public System.Type[]? CallConvs;
}
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited = false)]
public sealed class UnmanagedCallersOnlyAttribute : System.Attribute
{
public UnmanagedCallersOnlyAttribute() { }
public System.Type[]? CallConvs;
public string? EntryPoint;
}
}
namespace System.Runtime.InteropServices.ComTypes
{
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum ADVF
{
ADVF_NODATA = 1,
ADVF_PRIMEFIRST = 2,
ADVF_ONLYONCE = 4,
ADVFCACHE_NOHANDLER = 8,
ADVFCACHE_FORCEBUILTIN = 16,
ADVFCACHE_ONSAVE = 32,
ADVF_DATAONSTOP = 64,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public partial struct BINDPTR
{
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lpfuncdesc;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lptcomp;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lpvardesc;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct BIND_OPTS
{
public int cbStruct;
public int dwTickCountDeadline;
public int grfFlags;
public int grfMode;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum CALLCONV
{
CC_CDECL = 1,
CC_MSCPASCAL = 2,
CC_PASCAL = 2,
CC_MACPASCAL = 3,
CC_STDCALL = 4,
CC_RESERVED = 5,
CC_SYSCALL = 6,
CC_MPWCDECL = 7,
CC_MPWPASCAL = 8,
CC_MAX = 9,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct CONNECTDATA
{
public int dwCookie;
public object pUnk;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum DATADIR
{
DATADIR_GET = 1,
DATADIR_SET = 2,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum DESCKIND
{
DESCKIND_NONE = 0,
DESCKIND_FUNCDESC = 1,
DESCKIND_VARDESC = 2,
DESCKIND_TYPECOMP = 3,
DESCKIND_IMPLICITAPPOBJ = 4,
DESCKIND_MAX = 5,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct DISPPARAMS
{
public int cArgs;
public int cNamedArgs;
public System.IntPtr rgdispidNamedArgs;
public System.IntPtr rgvarg;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum DVASPECT
{
DVASPECT_CONTENT = 1,
DVASPECT_THUMBNAIL = 2,
DVASPECT_ICON = 4,
DVASPECT_DOCPRINT = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct ELEMDESC
{
public System.Runtime.InteropServices.ComTypes.ELEMDESC.DESCUNION desc;
public System.Runtime.InteropServices.ComTypes.TYPEDESC tdesc;
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public partial struct DESCUNION
{
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.Runtime.InteropServices.ComTypes.IDLDESC idldesc;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.Runtime.InteropServices.ComTypes.PARAMDESC paramdesc;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct EXCEPINFO
{
public string bstrDescription;
public string bstrHelpFile;
public string bstrSource;
public int dwHelpContext;
public System.IntPtr pfnDeferredFillIn;
public System.IntPtr pvReserved;
public int scode;
public short wCode;
public short wReserved;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct FILETIME
{
public int dwHighDateTime;
public int dwLowDateTime;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct FORMATETC
{
public short cfFormat;
public System.Runtime.InteropServices.ComTypes.DVASPECT dwAspect;
public int lindex;
public System.IntPtr ptd;
public System.Runtime.InteropServices.ComTypes.TYMED tymed;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct FUNCDESC
{
public System.Runtime.InteropServices.ComTypes.CALLCONV callconv;
public short cParams;
public short cParamsOpt;
public short cScodes;
public System.Runtime.InteropServices.ComTypes.ELEMDESC elemdescFunc;
public System.Runtime.InteropServices.ComTypes.FUNCKIND funckind;
public System.Runtime.InteropServices.ComTypes.INVOKEKIND invkind;
public System.IntPtr lprgelemdescParam;
public System.IntPtr lprgscode;
public int memid;
public short oVft;
public short wFuncFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum FUNCFLAGS : short
{
FUNCFLAG_FRESTRICTED = (short)1,
FUNCFLAG_FSOURCE = (short)2,
FUNCFLAG_FBINDABLE = (short)4,
FUNCFLAG_FREQUESTEDIT = (short)8,
FUNCFLAG_FDISPLAYBIND = (short)16,
FUNCFLAG_FDEFAULTBIND = (short)32,
FUNCFLAG_FHIDDEN = (short)64,
FUNCFLAG_FUSESGETLASTERROR = (short)128,
FUNCFLAG_FDEFAULTCOLLELEM = (short)256,
FUNCFLAG_FUIDEFAULT = (short)512,
FUNCFLAG_FNONBROWSABLE = (short)1024,
FUNCFLAG_FREPLACEABLE = (short)2048,
FUNCFLAG_FIMMEDIATEBIND = (short)4096,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum FUNCKIND
{
FUNC_VIRTUAL = 0,
FUNC_PUREVIRTUAL = 1,
FUNC_NONVIRTUAL = 2,
FUNC_STATIC = 3,
FUNC_DISPATCH = 4,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IAdviseSink
{
void OnClose();
void OnDataChange(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium);
void OnRename(System.Runtime.InteropServices.ComTypes.IMoniker moniker);
void OnSave();
void OnViewChange(int aspect, int index);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IBindCtx
{
void EnumObjectParam(out System.Runtime.InteropServices.ComTypes.IEnumString? ppenum);
void GetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts);
void GetObjectParam(string pszKey, out object? ppunk);
void GetRunningObjectTable(out System.Runtime.InteropServices.ComTypes.IRunningObjectTable? pprot);
void RegisterObjectBound(object punk);
void RegisterObjectParam(string pszKey, object punk);
void ReleaseBoundObjects();
void RevokeObjectBound(object punk);
int RevokeObjectParam(string pszKey);
void SetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IConnectionPoint
{
void Advise(object pUnkSink, out int pdwCookie);
void EnumConnections(out System.Runtime.InteropServices.ComTypes.IEnumConnections ppEnum);
void GetConnectionInterface(out System.Guid pIID);
void GetConnectionPointContainer(out System.Runtime.InteropServices.ComTypes.IConnectionPointContainer ppCPC);
void Unadvise(int dwCookie);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IConnectionPointContainer
{
void EnumConnectionPoints(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppEnum);
void FindConnectionPoint(ref System.Guid riid, out System.Runtime.InteropServices.ComTypes.IConnectionPoint? ppCP);
}
[System.CLSCompliantAttribute(false)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IDataObject
{
int DAdvise(ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink adviseSink, out int connection);
void DUnadvise(int connection);
int EnumDAdvise(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA? enumAdvise);
System.Runtime.InteropServices.ComTypes.IEnumFORMATETC EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR direction);
int GetCanonicalFormatEtc(ref System.Runtime.InteropServices.ComTypes.FORMATETC formatIn, out System.Runtime.InteropServices.ComTypes.FORMATETC formatOut);
void GetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, out System.Runtime.InteropServices.ComTypes.STGMEDIUM medium);
void GetDataHere(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium);
int QueryGetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC format);
void SetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC formatIn, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM medium, bool release);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct IDLDESC
{
public System.IntPtr dwReserved;
public System.Runtime.InteropServices.ComTypes.IDLFLAG wIDLFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum IDLFLAG : short
{
IDLFLAG_NONE = (short)0,
IDLFLAG_FIN = (short)1,
IDLFLAG_FOUT = (short)2,
IDLFLAG_FLCID = (short)4,
IDLFLAG_FRETVAL = (short)8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumConnectionPoints
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppenum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.IConnectionPoint[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumConnections
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumConnections ppenum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.CONNECTDATA[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumFORMATETC
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumFORMATETC newEnum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.FORMATETC[] rgelt, int[] pceltFetched);
int Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumMoniker
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumMoniker ppenum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.IMoniker[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumSTATDATA
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA newEnum);
int Next(int celt, System.Runtime.InteropServices.ComTypes.STATDATA[] rgelt, int[] pceltFetched);
int Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumString
{
void Clone(out System.Runtime.InteropServices.ComTypes.IEnumString ppenum);
int Next(int celt, string[] rgelt, System.IntPtr pceltFetched);
void Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IEnumVARIANT
{
System.Runtime.InteropServices.ComTypes.IEnumVARIANT Clone();
int Next(int celt, object?[] rgVar, System.IntPtr pceltFetched);
int Reset();
int Skip(int celt);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IMoniker
{
void BindToObject(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, ref System.Guid riidResult, out object ppvResult);
void BindToStorage(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, ref System.Guid riid, out object ppvObj);
void CommonPrefixWith(System.Runtime.InteropServices.ComTypes.IMoniker pmkOther, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkPrefix);
void ComposeWith(System.Runtime.InteropServices.ComTypes.IMoniker pmkRight, bool fOnlyIfNotGeneric, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkComposite);
void Enum(bool fForward, out System.Runtime.InteropServices.ComTypes.IEnumMoniker? ppenumMoniker);
void GetClassID(out System.Guid pClassID);
void GetDisplayName(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, out string ppszDisplayName);
void GetSizeMax(out long pcbSize);
void GetTimeOfLastChange(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, out System.Runtime.InteropServices.ComTypes.FILETIME pFileTime);
void Hash(out int pdwHash);
void Inverse(out System.Runtime.InteropServices.ComTypes.IMoniker ppmk);
int IsDirty();
int IsEqual(System.Runtime.InteropServices.ComTypes.IMoniker pmkOtherMoniker);
int IsRunning(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, System.Runtime.InteropServices.ComTypes.IMoniker? pmkNewlyRunning);
int IsSystemMoniker(out int pdwMksys);
void Load(System.Runtime.InteropServices.ComTypes.IStream pStm);
void ParseDisplayName(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker pmkToLeft, string pszDisplayName, out int pchEaten, out System.Runtime.InteropServices.ComTypes.IMoniker ppmkOut);
void Reduce(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, int dwReduceHowFar, ref System.Runtime.InteropServices.ComTypes.IMoniker? ppmkToLeft, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkReduced);
void RelativePathTo(System.Runtime.InteropServices.ComTypes.IMoniker pmkOther, out System.Runtime.InteropServices.ComTypes.IMoniker? ppmkRelPath);
void Save(System.Runtime.InteropServices.ComTypes.IStream pStm, bool fClearDirty);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum IMPLTYPEFLAGS
{
IMPLTYPEFLAG_FDEFAULT = 1,
IMPLTYPEFLAG_FSOURCE = 2,
IMPLTYPEFLAG_FRESTRICTED = 4,
IMPLTYPEFLAG_FDEFAULTVTABLE = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum INVOKEKIND
{
INVOKE_FUNC = 1,
INVOKE_PROPERTYGET = 2,
INVOKE_PROPERTYPUT = 4,
INVOKE_PROPERTYPUTREF = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IPersistFile
{
void GetClassID(out System.Guid pClassID);
void GetCurFile(out string ppszFileName);
int IsDirty();
void Load(string pszFileName, int dwMode);
void Save(string? pszFileName, bool fRemember);
void SaveCompleted(string pszFileName);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IRunningObjectTable
{
void EnumRunning(out System.Runtime.InteropServices.ComTypes.IEnumMoniker ppenumMoniker);
int GetObject(System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName, out object ppunkObject);
int GetTimeOfLastChange(System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName, out System.Runtime.InteropServices.ComTypes.FILETIME pfiletime);
int IsRunning(System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName);
void NoteChangeTime(int dwRegister, ref System.Runtime.InteropServices.ComTypes.FILETIME pfiletime);
int Register(int grfFlags, object punkObject, System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName);
void Revoke(int dwRegister);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IStream
{
void Clone(out System.Runtime.InteropServices.ComTypes.IStream ppstm);
void Commit(int grfCommitFlags);
void CopyTo(System.Runtime.InteropServices.ComTypes.IStream pstm, long cb, System.IntPtr pcbRead, System.IntPtr pcbWritten);
void LockRegion(long libOffset, long cb, int dwLockType);
void Read(byte[] pv, int cb, System.IntPtr pcbRead);
void Revert();
void Seek(long dlibMove, int dwOrigin, System.IntPtr plibNewPosition);
void SetSize(long libNewSize);
void Stat(out System.Runtime.InteropServices.ComTypes.STATSTG pstatstg, int grfStatFlag);
void UnlockRegion(long libOffset, long cb, int dwLockType);
void Write(byte[] pv, int cb, System.IntPtr pcbWritten);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeComp
{
void Bind(string szName, int lHashVal, short wFlags, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo, out System.Runtime.InteropServices.ComTypes.DESCKIND pDescKind, out System.Runtime.InteropServices.ComTypes.BINDPTR pBindPtr);
void BindType(string szName, int lHashVal, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo, out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeInfo
{
void AddressOfMember(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, out System.IntPtr ppv);
void CreateInstance(object? pUnkOuter, ref System.Guid riid, out object ppvObj);
void GetContainingTypeLib(out System.Runtime.InteropServices.ComTypes.ITypeLib ppTLB, out int pIndex);
void GetDllEntry(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, System.IntPtr pBstrDllName, System.IntPtr pBstrName, System.IntPtr pwOrdinal);
void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetFuncDesc(int index, out System.IntPtr ppFuncDesc);
void GetIDsOfNames(string[] rgszNames, int cNames, int[] pMemId);
void GetImplTypeFlags(int index, out System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS pImplTypeFlags);
void GetMops(int memid, out string? pBstrMops);
void GetNames(int memid, string[] rgBstrNames, int cMaxNames, out int pcNames);
void GetRefTypeInfo(int hRef, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
void GetRefTypeOfImplType(int index, out int href);
void GetTypeAttr(out System.IntPtr ppTypeAttr);
void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
void GetVarDesc(int index, out System.IntPtr ppVarDesc);
void Invoke(object pvInstance, int memid, short wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, System.IntPtr pVarResult, System.IntPtr pExcepInfo, out int puArgErr);
void ReleaseFuncDesc(System.IntPtr pFuncDesc);
void ReleaseTypeAttr(System.IntPtr pTypeAttr);
void ReleaseVarDesc(System.IntPtr pVarDesc);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeInfo2 : System.Runtime.InteropServices.ComTypes.ITypeInfo
{
new void AddressOfMember(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, out System.IntPtr ppv);
new void CreateInstance(object? pUnkOuter, ref System.Guid riid, out object ppvObj);
void GetAllCustData(System.IntPtr pCustData);
void GetAllFuncCustData(int index, System.IntPtr pCustData);
void GetAllImplTypeCustData(int index, System.IntPtr pCustData);
void GetAllParamCustData(int indexFunc, int indexParam, System.IntPtr pCustData);
void GetAllVarCustData(int index, System.IntPtr pCustData);
new void GetContainingTypeLib(out System.Runtime.InteropServices.ComTypes.ITypeLib ppTLB, out int pIndex);
void GetCustData(ref System.Guid guid, out object pVarVal);
new void GetDllEntry(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, System.IntPtr pBstrDllName, System.IntPtr pBstrName, System.IntPtr pwOrdinal);
new void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetDocumentation2(int memid, out string pbstrHelpString, out int pdwHelpStringContext, out string pbstrHelpStringDll);
void GetFuncCustData(int index, ref System.Guid guid, out object pVarVal);
new void GetFuncDesc(int index, out System.IntPtr ppFuncDesc);
void GetFuncIndexOfMemId(int memid, System.Runtime.InteropServices.ComTypes.INVOKEKIND invKind, out int pFuncIndex);
new void GetIDsOfNames(string[] rgszNames, int cNames, int[] pMemId);
void GetImplTypeCustData(int index, ref System.Guid guid, out object pVarVal);
new void GetImplTypeFlags(int index, out System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS pImplTypeFlags);
new void GetMops(int memid, out string? pBstrMops);
new void GetNames(int memid, string[] rgBstrNames, int cMaxNames, out int pcNames);
void GetParamCustData(int indexFunc, int indexParam, ref System.Guid guid, out object pVarVal);
new void GetRefTypeInfo(int hRef, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
new void GetRefTypeOfImplType(int index, out int href);
new void GetTypeAttr(out System.IntPtr ppTypeAttr);
new void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
void GetTypeFlags(out int pTypeFlags);
void GetTypeKind(out System.Runtime.InteropServices.ComTypes.TYPEKIND pTypeKind);
void GetVarCustData(int index, ref System.Guid guid, out object pVarVal);
new void GetVarDesc(int index, out System.IntPtr ppVarDesc);
void GetVarIndexOfMemId(int memid, out int pVarIndex);
new void Invoke(object pvInstance, int memid, short wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, System.IntPtr pVarResult, System.IntPtr pExcepInfo, out int puArgErr);
new void ReleaseFuncDesc(System.IntPtr pFuncDesc);
new void ReleaseTypeAttr(System.IntPtr pTypeAttr);
new void ReleaseVarDesc(System.IntPtr pVarDesc);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeLib
{
void FindName(string szNameBuf, int lHashVal, System.Runtime.InteropServices.ComTypes.ITypeInfo[] ppTInfo, int[] rgMemId, ref short pcFound);
void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetLibAttr(out System.IntPtr ppTLibAttr);
void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
void GetTypeInfo(int index, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
int GetTypeInfoCount();
void GetTypeInfoOfGuid(ref System.Guid guid, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo);
void GetTypeInfoType(int index, out System.Runtime.InteropServices.ComTypes.TYPEKIND pTKind);
bool IsName(string szNameBuf, int lHashVal);
void ReleaseTLibAttr(System.IntPtr pTLibAttr);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public partial interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
{
new void FindName(string szNameBuf, int lHashVal, System.Runtime.InteropServices.ComTypes.ITypeInfo[] ppTInfo, int[] rgMemId, ref short pcFound);
void GetAllCustData(System.IntPtr pCustData);
void GetCustData(ref System.Guid guid, out object pVarVal);
new void GetDocumentation(int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
void GetDocumentation2(int index, out string pbstrHelpString, out int pdwHelpStringContext, out string pbstrHelpStringDll);
new void GetLibAttr(out System.IntPtr ppTLibAttr);
void GetLibStatistics(System.IntPtr pcUniqueNames, out int pcchUniqueNames);
new void GetTypeComp(out System.Runtime.InteropServices.ComTypes.ITypeComp ppTComp);
new void GetTypeInfo(int index, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTI);
new int GetTypeInfoCount();
new void GetTypeInfoOfGuid(ref System.Guid guid, out System.Runtime.InteropServices.ComTypes.ITypeInfo ppTInfo);
new void GetTypeInfoType(int index, out System.Runtime.InteropServices.ComTypes.TYPEKIND pTKind);
new bool IsName(string szNameBuf, int lHashVal);
new void ReleaseTLibAttr(System.IntPtr pTLibAttr);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum LIBFLAGS : short
{
LIBFLAG_FRESTRICTED = (short)1,
LIBFLAG_FCONTROL = (short)2,
LIBFLAG_FHIDDEN = (short)4,
LIBFLAG_FHASDISKIMAGE = (short)8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct PARAMDESC
{
public System.IntPtr lpVarValue;
public System.Runtime.InteropServices.ComTypes.PARAMFLAG wParamFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum PARAMFLAG : short
{
PARAMFLAG_NONE = (short)0,
PARAMFLAG_FIN = (short)1,
PARAMFLAG_FOUT = (short)2,
PARAMFLAG_FLCID = (short)4,
PARAMFLAG_FRETVAL = (short)8,
PARAMFLAG_FOPT = (short)16,
PARAMFLAG_FHASDEFAULT = (short)32,
PARAMFLAG_FHASCUSTDATA = (short)64,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct STATDATA
{
public System.Runtime.InteropServices.ComTypes.ADVF advf;
public System.Runtime.InteropServices.ComTypes.IAdviseSink advSink;
public int connection;
public System.Runtime.InteropServices.ComTypes.FORMATETC formatetc;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct STATSTG
{
public System.Runtime.InteropServices.ComTypes.FILETIME atime;
public long cbSize;
public System.Guid clsid;
public System.Runtime.InteropServices.ComTypes.FILETIME ctime;
public int grfLocksSupported;
public int grfMode;
public int grfStateBits;
public System.Runtime.InteropServices.ComTypes.FILETIME mtime;
public string pwcsName;
public int reserved;
public int type;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct STGMEDIUM
{
public object? pUnkForRelease;
public System.Runtime.InteropServices.ComTypes.TYMED tymed;
public System.IntPtr unionmember;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum SYSKIND
{
SYS_WIN16 = 0,
SYS_WIN32 = 1,
SYS_MAC = 2,
SYS_WIN64 = 3,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum TYMED
{
TYMED_NULL = 0,
TYMED_HGLOBAL = 1,
TYMED_FILE = 2,
TYMED_ISTREAM = 4,
TYMED_ISTORAGE = 8,
TYMED_GDI = 16,
TYMED_MFPICT = 32,
TYMED_ENHMF = 64,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TYPEATTR
{
public short cbAlignment;
public int cbSizeInstance;
public short cbSizeVft;
public short cFuncs;
public short cImplTypes;
public short cVars;
public int dwReserved;
public System.Guid guid;
public System.Runtime.InteropServices.ComTypes.IDLDESC idldescType;
public int lcid;
public System.IntPtr lpstrSchema;
public const int MEMBER_ID_NIL = -1;
public int memidConstructor;
public int memidDestructor;
public System.Runtime.InteropServices.ComTypes.TYPEDESC tdescAlias;
public System.Runtime.InteropServices.ComTypes.TYPEKIND typekind;
public short wMajorVerNum;
public short wMinorVerNum;
public System.Runtime.InteropServices.ComTypes.TYPEFLAGS wTypeFlags;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TYPEDESC
{
public System.IntPtr lpValue;
public short vt;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum TYPEFLAGS : short
{
TYPEFLAG_FAPPOBJECT = (short)1,
TYPEFLAG_FCANCREATE = (short)2,
TYPEFLAG_FLICENSED = (short)4,
TYPEFLAG_FPREDECLID = (short)8,
TYPEFLAG_FHIDDEN = (short)16,
TYPEFLAG_FCONTROL = (short)32,
TYPEFLAG_FDUAL = (short)64,
TYPEFLAG_FNONEXTENSIBLE = (short)128,
TYPEFLAG_FOLEAUTOMATION = (short)256,
TYPEFLAG_FRESTRICTED = (short)512,
TYPEFLAG_FAGGREGATABLE = (short)1024,
TYPEFLAG_FREPLACEABLE = (short)2048,
TYPEFLAG_FDISPATCHABLE = (short)4096,
TYPEFLAG_FREVERSEBIND = (short)8192,
TYPEFLAG_FPROXY = (short)16384,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum TYPEKIND
{
TKIND_ENUM = 0,
TKIND_RECORD = 1,
TKIND_MODULE = 2,
TKIND_INTERFACE = 3,
TKIND_DISPATCH = 4,
TKIND_COCLASS = 5,
TKIND_ALIAS = 6,
TKIND_UNION = 7,
TKIND_MAX = 8,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TYPELIBATTR
{
public System.Guid guid;
public int lcid;
public System.Runtime.InteropServices.ComTypes.SYSKIND syskind;
public System.Runtime.InteropServices.ComTypes.LIBFLAGS wLibFlags;
public short wMajorVerNum;
public short wMinorVerNum;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct VARDESC
{
public System.Runtime.InteropServices.ComTypes.VARDESC.DESCUNION desc;
public System.Runtime.InteropServices.ComTypes.ELEMDESC elemdescVar;
public string lpstrSchema;
public int memid;
public System.Runtime.InteropServices.ComTypes.VARKIND varkind;
public short wVarFlags;
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public partial struct DESCUNION
{
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public System.IntPtr lpvarValue;
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public int oInst;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.FlagsAttribute]
public enum VARFLAGS : short
{
VARFLAG_FREADONLY = (short)1,
VARFLAG_FSOURCE = (short)2,
VARFLAG_FBINDABLE = (short)4,
VARFLAG_FREQUESTEDIT = (short)8,
VARFLAG_FDISPLAYBIND = (short)16,
VARFLAG_FDEFAULTBIND = (short)32,
VARFLAG_FHIDDEN = (short)64,
VARFLAG_FRESTRICTED = (short)128,
VARFLAG_FDEFAULTCOLLELEM = (short)256,
VARFLAG_FUIDEFAULT = (short)512,
VARFLAG_FNONBROWSABLE = (short)1024,
VARFLAG_FREPLACEABLE = (short)2048,
VARFLAG_FIMMEDIATEBIND = (short)4096,
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public enum VARKIND
{
VAR_PERINSTANCE = 0,
VAR_STATIC = 1,
VAR_CONST = 2,
VAR_DISPATCH = 3,
}
}
namespace System.Runtime.InteropServices.ObjectiveC
{
[System.Runtime.Versioning.SupportedOSPlatformAttribute("macos")]
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public sealed class ObjectiveCTrackedTypeAttribute : System.Attribute
{
public ObjectiveCTrackedTypeAttribute() { }
}
[System.Runtime.Versioning.SupportedOSPlatformAttribute("macos")]
[System.CLSCompliantAttribute(false)]
public static class ObjectiveCMarshal
{
public unsafe delegate delegate* unmanaged<System.IntPtr, void> UnhandledExceptionPropagationHandler(
System.Exception exception,
System.RuntimeMethodHandle lastMethod,
out System.IntPtr context);
public static unsafe void Initialize(
delegate* unmanaged<void> beginEndCallback,
delegate* unmanaged<System.IntPtr, int> isReferencedCallback,
delegate* unmanaged<System.IntPtr, void> trackedObjectEnteredFinalization,
UnhandledExceptionPropagationHandler unhandledExceptionPropagationHandler) => throw null;
public static GCHandle CreateReferenceTrackingHandle(
object obj,
out System.Span<System.IntPtr> taggedMemory) => throw null;
public enum MessageSendFunction
{
MsgSend,
MsgSendFpret,
MsgSendStret,
MsgSendSuper,
MsgSendSuperStret,
}
public static void SetMessageSendCallback(MessageSendFunction msgSendFunction, System.IntPtr func) => throw null;
public static void SetMessageSendPendingException(Exception? exception) => throw null;
}
}
namespace System.Security
{
public sealed partial class SecureString : System.IDisposable
{
public SecureString() { }
[System.CLSCompliantAttribute(false)]
public unsafe SecureString(char* value, int length) { }
public int Length { get { throw null; } }
public void AppendChar(char c) { }
public void Clear() { }
public System.Security.SecureString Copy() { throw null; }
public void Dispose() { }
public void InsertAt(int index, char c) { }
public bool IsReadOnly() { throw null; }
public void MakeReadOnly() { }
public void RemoveAt(int index) { }
public void SetAt(int index, char c) { }
}
public static partial class SecureStringMarshal
{
public static System.IntPtr SecureStringToCoTaskMemAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToCoTaskMemUnicode(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocAnsi(System.Security.SecureString s) { throw null; }
public static System.IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s) { throw null; }
}
}
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Runtime.InteropServices/tests/Ancillary.Interop/Ancillary.Interop.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Interop.Ancillary</AssemblyName>
<TargetFramework>$(NetCoreAppMinimum)</TargetFramework>
<RootNamespace>System.Runtime.InteropServices</RootNamespace>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>APIs required for usage of the LibraryImportGenerator and related tools.</Description>
<DefineConstants>$(DefineConstants);LIBRARYIMPORT_GENERATOR_TEST</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(LibrariesProjectRoot)Common/src/System/Runtime/InteropServices/LibraryImportAttribute.cs" Link="LibraryImportAttribute.cs" />
<Compile Include="$(LibrariesProjectRoot)Common/src/System/Runtime/InteropServices/GeneratedMarshallingAttribute.cs" Link="GeneratedMarshallingAttribute.cs" />
<Compile Include="$(LibrariesProjectRoot)Common/src/System/Runtime/InteropServices/ArrayMarshaller.cs" Link="ArrayMarshaller.cs" />
<Compile Include="$(LibrariesProjectRoot)Common/src/System/Runtime/InteropServices/StringMarshalling.cs" Link="StringMarshalling.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Interop.Ancillary</AssemblyName>
<TargetFramework>$(NetCoreAppMinimum)</TargetFramework>
<RootNamespace>System.Runtime.InteropServices</RootNamespace>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>APIs required for usage of the LibraryImportGenerator and related tools.</Description>
<DefineConstants>$(DefineConstants);LIBRARYIMPORT_GENERATOR_TEST</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(LibrariesProjectRoot)Common/src/System/Runtime/InteropServices/GeneratedMarshallingAttribute.cs" Link="GeneratedMarshallingAttribute.cs" />
<Compile Include="$(LibrariesProjectRoot)Common/src/System/Runtime/InteropServices/ArrayMarshaller.cs" Link="ArrayMarshaller.cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.DotNet.XUnitExtensions;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace LibraryImportGenerator.UnitTests
{
/// <summary>
/// The target framework to compile against.
/// </summary>
/// <remarks>
/// This enumeration is for testing only and is not to be confused with the product's TargetFramework enum.
/// </remarks>
public enum TestTargetFramework
{
/// <summary>
/// The latest supported .NET Framework version.
/// </summary>
Framework,
/// <summary>
/// The latest supported .NET Core version.
/// </summary>
Core,
/// <summary>
/// The latest supported .NET Standard version.
/// </summary>
Standard,
/// <summary>
/// The latest supported (live-built) .NET version.
/// </summary>
Net,
/// <summary>
/// .NET version 5.0.
/// </summary>
Net5,
/// <summary>
/// .NET version 6.0.
/// </summary>
Net6,
}
public static class TestUtils
{
/// <summary>
/// Disable binding redirect warnings. They are disabled by default by the .NET SDK, but not by Roslyn.
/// See https://github.com/dotnet/roslyn/issues/19640.
/// </summary>
internal static ImmutableDictionary<string, ReportDiagnostic> BindingRedirectWarnings { get; } = new Dictionary<string, ReportDiagnostic>()
{
{ "CS1701", ReportDiagnostic.Suppress },
{ "CS1702", ReportDiagnostic.Suppress },
}.ToImmutableDictionary();
/// <summary>
/// Assert the pre-srouce generator compilation has only
/// the expected failure diagnostics.
/// </summary>
/// <param name="comp"></param>
public static void AssertPreSourceGeneratorCompilation(Compilation comp, params string[] additionalAllowedDiagnostics)
{
var allowedDiagnostics = new HashSet<string>()
{
"CS8795", // Partial method impl missing
"CS0234", // Missing type or namespace - LibraryImportAttribute
"CS0246", // Missing type or namespace - LibraryImportAttribute
"CS8019", // Unnecessary using
};
foreach (string diagnostic in additionalAllowedDiagnostics)
{
allowedDiagnostics.Add(diagnostic);
}
var compDiags = comp.GetDiagnostics();
Assert.All(compDiags, diag =>
{
Assert.Subset(allowedDiagnostics, new HashSet<string> { diag.Id });
});
}
/// <summary>
/// Create a compilation given source
/// </summary>
/// <param name="source">Source to compile</param>
/// <param name="targetFramework">Target framework of the compilation</param>
/// <param name="outputKind">Output type</param>
/// <returns>The resulting compilation</returns>
public static Task<Compilation> CreateCompilation(string source, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null)
{
return CreateCompilation(new[] { source }, targetFramework, outputKind, preprocessorSymbols);
}
/// <summary>
/// Create a compilation given sources
/// </summary>
/// <param name="sources">Sources to compile</param>
/// <param name="targetFramework">Target framework of the compilation</param>
/// <param name="outputKind">Output type</param>
/// <returns>The resulting compilation</returns>
public static Task<Compilation> CreateCompilation(string[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null)
{
return CreateCompilation(
sources.Select(source =>
CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(LanguageVersion.Preview, preprocessorSymbols: preprocessorSymbols))).ToArray(),
targetFramework,
outputKind);
}
/// <summary>
/// Create a compilation given sources
/// </summary>
/// <param name="sources">Sources to compile</param>
/// <param name="targetFramework">Target framework of the compilation</param>
/// <param name="outputKind">Output type</param>
/// <returns>The resulting compilation</returns>
public static async Task<Compilation> CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary)
{
var referenceAssemblies = await GetReferenceAssemblies(targetFramework);
// [TODO] Can remove once ancillary logic is removed.
if (targetFramework is TestTargetFramework.Net6 or TestTargetFramework.Net)
{
referenceAssemblies = referenceAssemblies.Add(GetAncillaryReference());
}
return CSharpCompilation.Create("compilation",
sources,
referenceAssemblies,
new CSharpCompilationOptions(outputKind, allowUnsafe: true, specificDiagnosticOptions: BindingRedirectWarnings));
}
/// <summary>
/// Get the reference assembly collection for the <see cref="TestTargetFramework"/>.
/// </summary>
/// <param name="targetFramework">The target framework.</param>
/// <returns>The reference assembly collection and metadata references</returns>
private static async Task<ImmutableArray<MetadataReference>> GetReferenceAssemblies(TestTargetFramework targetFramework = TestTargetFramework.Net)
{
// Compute the reference assemblies for the target framework.
if (targetFramework == TestTargetFramework.Net)
{
return SourceGenerators.Tests.LiveReferencePack.GetMetadataReferences();
}
else
{
var referenceAssembliesSdk = targetFramework switch
{
TestTargetFramework.Framework => ReferenceAssemblies.NetFramework.Net48.Default,
TestTargetFramework.Standard => ReferenceAssemblies.NetStandard.NetStandard21,
TestTargetFramework.Core => ReferenceAssemblies.NetCore.NetCoreApp31,
TestTargetFramework.Net5 => ReferenceAssemblies.Net.Net50,
TestTargetFramework.Net6 => ReferenceAssemblies.Net.Net60,
_ => ReferenceAssemblies.Default
};
// Update the reference assemblies to include details from the NuGet.config.
var referenceAssemblies = referenceAssembliesSdk
.WithNuGetConfigFilePath(Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "NuGet.config"));
return await ResolveReferenceAssemblies(referenceAssemblies);
}
}
/// <summary>
/// Get the metadata reference for the ancillary interop helper assembly.
/// </summary>
/// <returns></returns>
internal static MetadataReference GetAncillaryReference()
{
// Include the assembly containing the new attribute and all of its references.
// [TODO] Remove once the attribute has been added to the BCL
var attrAssem = typeof(LibraryImportAttribute).GetTypeInfo().Assembly;
return MetadataReference.CreateFromFile(attrAssem.Location);
}
/// <summary>
/// Run the supplied generators on the compilation.
/// </summary>
/// <param name="comp">Compilation target</param>
/// <param name="diagnostics">Resulting diagnostics</param>
/// <param name="generators">Source generator instances</param>
/// <returns>The resulting compilation</returns>
public static Compilation RunGenerators(Compilation comp, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators)
{
CreateDriver(comp, null, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics);
return d;
}
/// <summary>
/// Run the supplied generators on the compilation.
/// </summary>
/// <param name="comp">Compilation target</param>
/// <param name="diagnostics">Resulting diagnostics</param>
/// <param name="generators">Source generator instances</param>
/// <returns>The resulting compilation</returns>
public static Compilation RunGenerators(Compilation comp, AnalyzerConfigOptionsProvider options, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators)
{
CreateDriver(comp, options, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics);
return d;
}
public static GeneratorDriver CreateDriver(Compilation c, AnalyzerConfigOptionsProvider? options, IIncrementalGenerator[] generators, GeneratorDriverOptions driverOptions = default)
=> CSharpGeneratorDriver.Create(
ImmutableArray.Create(generators.Select(gen => gen.AsSourceGenerator()).ToArray()),
parseOptions: (CSharpParseOptions)c.SyntaxTrees.First().Options,
optionsProvider: options,
driverOptions: driverOptions);
// The non-configurable test-packages folder may be incomplete/corrupt.
// - https://github.com/dotnet/roslyn-sdk/issues/487
// - https://github.com/dotnet/roslyn-sdk/issues/590
internal static void ThrowSkipExceptionIfPackagingException(Exception e)
{
if (e.GetType().FullName == "NuGet.Packaging.Core.PackagingException")
throw new SkipTestException($"Skipping test due to issue with test-packages ({e.Message}). See https://github.com/dotnet/roslyn-sdk/issues/590.");
}
private static async Task<ImmutableArray<MetadataReference>> ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies)
{
try
{
ResolveRedirect.Instance.Start();
return await referenceAssemblies.ResolveAsync(LanguageNames.CSharp, CancellationToken.None);
}
catch (Exception e)
{
ThrowSkipExceptionIfPackagingException(e);
throw;
}
finally
{
ResolveRedirect.Instance.Stop();
}
}
private class ResolveRedirect
{
private const string EnvVarName = "NUGET_PACKAGES";
private static readonly ResolveRedirect s_instance = new ResolveRedirect();
public static ResolveRedirect Instance => s_instance;
private int _count = 0;
public void Start()
{
// Set the NuGet package cache location to a subdirectory such that we should always have access to it
Environment.SetEnvironmentVariable(EnvVarName, Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "packages"));
Interlocked.Increment(ref _count);
}
public void Stop()
{
int count = Interlocked.Decrement(ref _count);
if (count == 0)
{
Environment.SetEnvironmentVariable(EnvVarName, null);
}
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.DotNet.XUnitExtensions;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace LibraryImportGenerator.UnitTests
{
/// <summary>
/// The target framework to compile against.
/// </summary>
/// <remarks>
/// This enumeration is for testing only and is not to be confused with the product's TargetFramework enum.
/// </remarks>
public enum TestTargetFramework
{
/// <summary>
/// The latest supported .NET Framework version.
/// </summary>
Framework,
/// <summary>
/// The latest supported .NET Core version.
/// </summary>
Core,
/// <summary>
/// The latest supported .NET Standard version.
/// </summary>
Standard,
/// <summary>
/// The latest supported (live-built) .NET version.
/// </summary>
Net,
/// <summary>
/// .NET version 5.0.
/// </summary>
Net5,
/// <summary>
/// .NET version 6.0.
/// </summary>
Net6,
}
public static class TestUtils
{
/// <summary>
/// Disable binding redirect warnings. They are disabled by default by the .NET SDK, but not by Roslyn.
/// See https://github.com/dotnet/roslyn/issues/19640.
/// </summary>
internal static ImmutableDictionary<string, ReportDiagnostic> BindingRedirectWarnings { get; } = new Dictionary<string, ReportDiagnostic>()
{
{ "CS1701", ReportDiagnostic.Suppress },
{ "CS1702", ReportDiagnostic.Suppress },
}.ToImmutableDictionary();
/// <summary>
/// Assert the pre-srouce generator compilation has only
/// the expected failure diagnostics.
/// </summary>
/// <param name="comp"></param>
public static void AssertPreSourceGeneratorCompilation(Compilation comp, params string[] additionalAllowedDiagnostics)
{
var allowedDiagnostics = new HashSet<string>()
{
"CS8795", // Partial method impl missing
"CS0234", // Missing type or namespace - LibraryImportAttribute
"CS0246", // Missing type or namespace - LibraryImportAttribute
"CS8019", // Unnecessary using
};
foreach (string diagnostic in additionalAllowedDiagnostics)
{
allowedDiagnostics.Add(diagnostic);
}
var compDiags = comp.GetDiagnostics();
Assert.All(compDiags, diag =>
{
Assert.Subset(allowedDiagnostics, new HashSet<string> { diag.Id });
});
}
/// <summary>
/// Create a compilation given source
/// </summary>
/// <param name="source">Source to compile</param>
/// <param name="targetFramework">Target framework of the compilation</param>
/// <param name="outputKind">Output type</param>
/// <returns>The resulting compilation</returns>
public static Task<Compilation> CreateCompilation(string source, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null)
{
return CreateCompilation(new[] { source }, targetFramework, outputKind, preprocessorSymbols);
}
/// <summary>
/// Create a compilation given sources
/// </summary>
/// <param name="sources">Sources to compile</param>
/// <param name="targetFramework">Target framework of the compilation</param>
/// <param name="outputKind">Output type</param>
/// <returns>The resulting compilation</returns>
public static Task<Compilation> CreateCompilation(string[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null)
{
return CreateCompilation(
sources.Select(source =>
CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(LanguageVersion.Preview, preprocessorSymbols: preprocessorSymbols))).ToArray(),
targetFramework,
outputKind);
}
/// <summary>
/// Create a compilation given sources
/// </summary>
/// <param name="sources">Sources to compile</param>
/// <param name="targetFramework">Target framework of the compilation</param>
/// <param name="outputKind">Output type</param>
/// <returns>The resulting compilation</returns>
public static async Task<Compilation> CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary)
{
var referenceAssemblies = await GetReferenceAssemblies(targetFramework);
// [TODO] Can remove once ancillary logic is removed.
if (targetFramework is TestTargetFramework.Net6 or TestTargetFramework.Net)
{
referenceAssemblies = referenceAssemblies.Add(GetAncillaryReference());
}
return CSharpCompilation.Create("compilation",
sources,
referenceAssemblies,
new CSharpCompilationOptions(outputKind, allowUnsafe: true, specificDiagnosticOptions: BindingRedirectWarnings));
}
/// <summary>
/// Get the reference assembly collection for the <see cref="TestTargetFramework"/>.
/// </summary>
/// <param name="targetFramework">The target framework.</param>
/// <returns>The reference assembly collection and metadata references</returns>
private static async Task<ImmutableArray<MetadataReference>> GetReferenceAssemblies(TestTargetFramework targetFramework = TestTargetFramework.Net)
{
// Compute the reference assemblies for the target framework.
if (targetFramework == TestTargetFramework.Net)
{
return SourceGenerators.Tests.LiveReferencePack.GetMetadataReferences();
}
else
{
var referenceAssembliesSdk = targetFramework switch
{
TestTargetFramework.Framework => ReferenceAssemblies.NetFramework.Net48.Default,
TestTargetFramework.Standard => ReferenceAssemblies.NetStandard.NetStandard21,
TestTargetFramework.Core => ReferenceAssemblies.NetCore.NetCoreApp31,
TestTargetFramework.Net5 => ReferenceAssemblies.Net.Net50,
TestTargetFramework.Net6 => ReferenceAssemblies.Net.Net60,
_ => ReferenceAssemblies.Default
};
// Update the reference assemblies to include details from the NuGet.config.
var referenceAssemblies = referenceAssembliesSdk
.WithNuGetConfigFilePath(Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "NuGet.config"));
return await ResolveReferenceAssemblies(referenceAssemblies);
}
}
/// <summary>
/// Get the metadata reference for the ancillary interop helper assembly.
/// </summary>
/// <returns></returns>
internal static MetadataReference GetAncillaryReference()
{
// Include the assembly containing the new attribute and all of its references.
// [TODO] Remove once the attribute has been added to the BCL
var attrAssem = typeof(MarshalUsingAttribute).GetTypeInfo().Assembly;
return MetadataReference.CreateFromFile(attrAssem.Location);
}
/// <summary>
/// Run the supplied generators on the compilation.
/// </summary>
/// <param name="comp">Compilation target</param>
/// <param name="diagnostics">Resulting diagnostics</param>
/// <param name="generators">Source generator instances</param>
/// <returns>The resulting compilation</returns>
public static Compilation RunGenerators(Compilation comp, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators)
{
CreateDriver(comp, null, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics);
return d;
}
/// <summary>
/// Run the supplied generators on the compilation.
/// </summary>
/// <param name="comp">Compilation target</param>
/// <param name="diagnostics">Resulting diagnostics</param>
/// <param name="generators">Source generator instances</param>
/// <returns>The resulting compilation</returns>
public static Compilation RunGenerators(Compilation comp, AnalyzerConfigOptionsProvider options, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators)
{
CreateDriver(comp, options, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics);
return d;
}
public static GeneratorDriver CreateDriver(Compilation c, AnalyzerConfigOptionsProvider? options, IIncrementalGenerator[] generators, GeneratorDriverOptions driverOptions = default)
=> CSharpGeneratorDriver.Create(
ImmutableArray.Create(generators.Select(gen => gen.AsSourceGenerator()).ToArray()),
parseOptions: (CSharpParseOptions)c.SyntaxTrees.First().Options,
optionsProvider: options,
driverOptions: driverOptions);
// The non-configurable test-packages folder may be incomplete/corrupt.
// - https://github.com/dotnet/roslyn-sdk/issues/487
// - https://github.com/dotnet/roslyn-sdk/issues/590
internal static void ThrowSkipExceptionIfPackagingException(Exception e)
{
if (e.GetType().FullName == "NuGet.Packaging.Core.PackagingException")
throw new SkipTestException($"Skipping test due to issue with test-packages ({e.Message}). See https://github.com/dotnet/roslyn-sdk/issues/590.");
}
private static async Task<ImmutableArray<MetadataReference>> ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies)
{
try
{
ResolveRedirect.Instance.Start();
return await referenceAssemblies.ResolveAsync(LanguageNames.CSharp, CancellationToken.None);
}
catch (Exception e)
{
ThrowSkipExceptionIfPackagingException(e);
throw;
}
finally
{
ResolveRedirect.Instance.Stop();
}
}
private class ResolveRedirect
{
private const string EnvVarName = "NUGET_PACKAGES";
private static readonly ResolveRedirect s_instance = new ResolveRedirect();
public static ResolveRedirect Instance => s_instance;
private int _count = 0;
public void Start()
{
// Set the NuGet package cache location to a subdirectory such that we should always have access to it
Environment.SetEnvironmentVariable(EnvVarName, Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "packages"));
Interlocked.Increment(ref _count);
}
public void Stop()
{
int count = Interlocked.Decrement(ref _count);
if (count == 0)
{
Environment.SetEnvironmentVariable(EnvVarName, null);
}
}
}
}
}
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System.Runtime.InteropServices.Tests.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Browser</TargetFrameworks>
<TestRuntime>true</TestRuntime>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="System\DllNotFoundExceptionTests.cs" />
<Compile Include="System\Runtime\CompilerServices\IUnknownConstantAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ArrayWithOffsetTests.cs" />
<Compile Include="System\Runtime\InteropServices\BestFitMappingAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\BStrWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\CallingConventionTests.cs" />
<Compile Include="System\Runtime\InteropServices\ClassInterfaceAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\NativeMemoryTests.cs" />
<Compile Include="System\Runtime\InteropServices\NFloatTests.cs" />
<Compile Include="System\Runtime\InteropServices\CULongTests.cs" />
<Compile Include="System\Runtime\InteropServices\CLongTests.cs" />
<Compile Include="System\Runtime\InteropServices\CoClassAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\CollectionsMarshalTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComAliasNameAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComAwareEventInfoTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComAwareEventInfoTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\ComCompatibleVersionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComConversionLossAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComDefaultInterfaceAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComEventInterfaceAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComEventsHelperTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComRegisterFunctionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComSourceInterfacesAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComUnregisterFunctionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComVisibleAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\CurrencyWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\DefaultCharSetAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DefaultDllImportSearchPathsAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DefaultParameterValueAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DispatchWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\DispIdAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DllImportAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\FieldOffsetAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ErrorWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\GCHandleTests.cs" />
<Compile Include="System\Runtime\InteropServices\GuidAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\HandleCollectorTests.cs" />
<Compile Include="System\Runtime\InteropServices\HandleRefTests.cs" />
<Compile Include="System\Runtime\InteropServices\IDispatchImplAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\InterfaceTypeAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\LCIDConversionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\MarshalAsAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\ByteArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\CharArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\DoubleArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\Int16ArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\Int32ArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\Int64ArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\IntPtrArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\SingleArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\AddRefTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\AllocHGlobalTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\BindToMonikerTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ChangeWrapperHandleStrengthTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ChangeWrapperHandleStrengthTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\CreateAggregatedObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\CreateWrapperOfTypeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\CreateWrapperOfTypeTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\DestroyStructureTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FinalReleaseComObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FinalReleaseComObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\FreeBSTRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FreeCoTaskMemTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FreeHGlobalTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateGuidForTypeTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateProgIdForTypeTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetComInterfaceForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetComObjectDataTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetDelegateForFunctionPointerTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetExceptionCodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetExceptionForHRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetFunctionPointerForDelegateTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetHRForExceptionTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetIDispatchForObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetIUnknownForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetNativeVariantForObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetNativeVariantForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForIUnknownTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForIUnknownTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForNativeVariantTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForNativeVariantTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectsForNativeVariantsTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetStartComSlotTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetStartComSlotTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypeFromCLSIDTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypeInfoNameTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetUniqueObjectForIUnknownTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetUniqueObjectForIUnknownTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\InitHandleTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsComObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsComObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\LastErrorTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReleaseTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReleaseComObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReleaseComObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStructureTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringAutoTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringBSTR.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringUniTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringUTF8Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\QueryInterfaceTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\QueryInterfaceTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReAllocHGlobalTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReAllocCoTaskMemTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToBSTRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToCoTaskMemAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToCoTaskMemUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToGlobalAllocAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToGlobalAllocUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SetComObjectDataTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\SizeOfTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToBSTRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemAutoTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemUniTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemUTF8Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToHGlobalAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToHGlobalUniTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToHGlobalAutoTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\OffsetOfTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PrelinkTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PrelinkAllTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ThrowExceptionForHRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeCoTaskMemAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeCoTaskMemUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeCoTaskMemUTF8Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeGlobalAllocAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeGlobalAllocUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\CommonTypes.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\COMWrappersImpl.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\CommonTypes.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\Variant.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\ByteTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\Int16Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\Int32Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\Int64Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\IntPtrTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringMarshalingTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StructureToPtrTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\UnsafeAddrOfPinnedArrayElementTests.cs" />
<Compile Include="System\Runtime\InteropServices\ObjectiveC\MessageSendTests.cs" />
<Compile Include="System\Runtime\InteropServices\ObjectiveC\PendingExceptionTests.cs" />
<Compile Include="System\Runtime\InteropServices\ObjectiveC\LibObjC.cs" />
<Compile Include="System\Runtime\InteropServices\PosixSignalContextTests.cs" />
<Compile Include="System\Runtime\InteropServices\PosixSignalRegistrationTests.cs" />
<Compile Include="System\Runtime\InteropServices\PrimaryInteropAssemblyAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ProgIdAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\RuntimeEnvironmentTests.cs" />
<Compile Include="System\Runtime\InteropServices\SafeBufferTests.cs" />
<Compile Include="System\Runtime\InteropServices\SetWin32ContextInIDispatchAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\StructLayoutAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeIdentifierAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\UnknownWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\UnmanagedFunctionPointerAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\VariantWrapperTests.cs" />
<Compile Include="System\Runtime\CompilerServices\IDispatchConstantAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\AutomationProxyAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ImportedFromTypeLibAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ManagedToNativeComInteropStubAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateGuidForTypeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateProgIdForTypeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetComObjectDataTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetEndComSlotTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetEndComSlotTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetExceptionPointersTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetHINSTANCETests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetIDispatchForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypedObjectForIUnknownTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypedObjectForIUnknownTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsTypeVisibleFromComTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsTypeVisibleFromComTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\SetComObjectDataTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibFuncAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibImportClassAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibTypeAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibVarAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibVersionAttributeTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'">
<Compile Include="System\Runtime\InteropServices\PosixSignalRegistrationTests.Windows.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Unix' or '$(TargetPlatformIdentifier)' == 'Browser'">
<Compile Include="System\Runtime\InteropServices\PosixSignalRegistrationTests.Unix.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Browser</TargetFrameworks>
<TestRuntime>true</TestRuntime>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="System\DllNotFoundExceptionTests.cs" />
<Compile Include="System\Runtime\CompilerServices\IUnknownConstantAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ArrayWithOffsetTests.cs" />
<Compile Include="System\Runtime\InteropServices\BestFitMappingAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\BStrWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\CallingConventionTests.cs" />
<Compile Include="System\Runtime\InteropServices\ClassInterfaceAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\NativeMemoryTests.cs" />
<Compile Include="System\Runtime\InteropServices\NFloatTests.cs" />
<Compile Include="System\Runtime\InteropServices\CULongTests.cs" />
<Compile Include="System\Runtime\InteropServices\CLongTests.cs" />
<Compile Include="System\Runtime\InteropServices\CoClassAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\CollectionsMarshalTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComAliasNameAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComAwareEventInfoTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComAwareEventInfoTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\ComCompatibleVersionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComConversionLossAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComDefaultInterfaceAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComEventInterfaceAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComEventsHelperTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComRegisterFunctionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComSourceInterfacesAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComUnregisterFunctionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ComVisibleAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\CurrencyWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\DefaultCharSetAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DefaultDllImportSearchPathsAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DefaultParameterValueAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DispatchWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\DispIdAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\DllImportAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\FieldOffsetAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ErrorWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\GCHandleTests.cs" />
<Compile Include="System\Runtime\InteropServices\GuidAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\HandleCollectorTests.cs" />
<Compile Include="System\Runtime\InteropServices\HandleRefTests.cs" />
<Compile Include="System\Runtime\InteropServices\IDispatchImplAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\InterfaceTypeAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\LCIDConversionAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\LibraryImportAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\MarshalAsAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\ByteArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\CharArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\DoubleArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\Int16ArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\Int32ArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\Int64ArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\IntPtrArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Copy\SingleArrayTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\AddRefTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\AllocHGlobalTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\BindToMonikerTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ChangeWrapperHandleStrengthTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ChangeWrapperHandleStrengthTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\CreateAggregatedObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\CreateWrapperOfTypeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\CreateWrapperOfTypeTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\DestroyStructureTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FinalReleaseComObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FinalReleaseComObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\FreeBSTRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FreeCoTaskMemTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\FreeHGlobalTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateGuidForTypeTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateProgIdForTypeTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetComInterfaceForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetComObjectDataTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetDelegateForFunctionPointerTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetExceptionCodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetExceptionForHRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetFunctionPointerForDelegateTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetHRForExceptionTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetIDispatchForObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetIUnknownForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetNativeVariantForObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetNativeVariantForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForIUnknownTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForIUnknownTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForNativeVariantTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectForNativeVariantTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetObjectsForNativeVariantsTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetStartComSlotTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetStartComSlotTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypeFromCLSIDTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypeInfoNameTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetUniqueObjectForIUnknownTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetUniqueObjectForIUnknownTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\InitHandleTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsComObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsComObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\LastErrorTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReleaseTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReleaseComObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReleaseComObjectTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStructureTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringAutoTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringBSTR.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringUniTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PtrToStringUTF8Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\QueryInterfaceTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\QueryInterfaceTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReAllocHGlobalTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReAllocCoTaskMemTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToBSTRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToCoTaskMemAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToCoTaskMemUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToGlobalAllocAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SecureStringToGlobalAllocUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\SetComObjectDataTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\SizeOfTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToBSTRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemAutoTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemUniTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToCoTaskMemUTF8Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToHGlobalAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToHGlobalUniTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringToHGlobalAutoTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\OffsetOfTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PrelinkTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\PrelinkAllTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ThrowExceptionForHRTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeCoTaskMemAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeCoTaskMemUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeCoTaskMemUTF8Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeGlobalAllocAnsiTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ZeroFreeGlobalAllocUnicodeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\CommonTypes.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\COMWrappersImpl.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\CommonTypes.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\Common\Variant.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\ByteTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\Int16Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\Int32Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\Int64Tests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\ReadWrite\IntPtrTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StringMarshalingTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\StructureToPtrTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\UnsafeAddrOfPinnedArrayElementTests.cs" />
<Compile Include="System\Runtime\InteropServices\ObjectiveC\MessageSendTests.cs" />
<Compile Include="System\Runtime\InteropServices\ObjectiveC\PendingExceptionTests.cs" />
<Compile Include="System\Runtime\InteropServices\ObjectiveC\LibObjC.cs" />
<Compile Include="System\Runtime\InteropServices\PosixSignalContextTests.cs" />
<Compile Include="System\Runtime\InteropServices\PosixSignalRegistrationTests.cs" />
<Compile Include="System\Runtime\InteropServices\PrimaryInteropAssemblyAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ProgIdAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\RuntimeEnvironmentTests.cs" />
<Compile Include="System\Runtime\InteropServices\SafeBufferTests.cs" />
<Compile Include="System\Runtime\InteropServices\SetWin32ContextInIDispatchAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\StructLayoutAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeIdentifierAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\UnknownWrapperTests.cs" />
<Compile Include="System\Runtime\InteropServices\UnmanagedFunctionPointerAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\VariantWrapperTests.cs" />
<Compile Include="System\Runtime\CompilerServices\IDispatchConstantAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\AutomationProxyAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ImportedFromTypeLibAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\ManagedToNativeComInteropStubAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateGuidForTypeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GenerateProgIdForTypeTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetComObjectDataTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetEndComSlotTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetEndComSlotTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetExceptionPointersTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetHINSTANCETests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetIDispatchForObjectTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypedObjectForIUnknownTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\GetTypedObjectForIUnknownTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsTypeVisibleFromComTests.cs" />
<Compile Include="System\Runtime\InteropServices\Marshal\IsTypeVisibleFromComTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="System\Runtime\InteropServices\Marshal\SetComObjectDataTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibFuncAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibImportClassAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibTypeAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibVarAttributeTests.cs" />
<Compile Include="System\Runtime\InteropServices\TypeLibVersionAttributeTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'">
<Compile Include="System\Runtime\InteropServices\PosixSignalRegistrationTests.Windows.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Unix' or '$(TargetPlatformIdentifier)' == 'Browser'">
<Compile Include="System\Runtime\InteropServices\PosixSignalRegistrationTests.Unix.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Runtime.Serialization.Formatters/tests/System.Runtime.Serialization.Formatters.Tests.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TestRuntime>true</TestRuntime>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)-illumos;$(NetCoreAppCurrent)-Solaris;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;net48</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="BinaryFormatterTestData.cs" />
<Compile Include="BinaryFormatterTests.cs" />
<Compile Include="DisableBitTests.cs" />
<Compile Include="EqualityExtensions.cs" />
<Compile Include="OptionalFieldAttributeTests.cs" />
<Compile Include="FormatterConverterTests.cs" />
<Compile Include="FormatterServicesTests.cs" />
<Compile Include="FormatterServicesTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="FormatterTests.cs" />
<Compile Include="PlatformExtensions.cs" />
<Compile Include="SerializationBinderTests.cs" />
<Compile Include="SerializationInfoTests.cs" />
<Compile Include="SerializationTypes.cs" />
<Compile Include="SurrogateSelectorTests.cs" />
<Compile Include="TargetFrameworkMoniker.cs" />
<Compile Include="TypeSerializableValue.cs" />
<Compile Include="$(CommonTestPath)System\Drawing\Helpers.cs"
Link="Common\System\Drawing\Helpers.cs" />
<Compile Include="$(CommonTestPath)System\NonRuntimeType.cs"
Link="Common\System\NonRuntimeType.cs" />
<Compile Include="$(CommonTestPath)System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs"
Link="Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Include="$(CommonPath)System\Collections\Generic\ReferenceEqualityComparer.cs"
Link="Common\System\Collections\Generic\ReferenceEqualityComparer.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="BinaryFormatterEventSourceTests.cs" />
<Compile Include="SerializationGuardTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<ProjectReference Include="$(LibrariesProjectRoot)System.CodeDom\src\System.CodeDom.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.ComponentModel.Composition\src\System.ComponentModel.Composition.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Data.Odbc\src\System.Data.Odbc.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Diagnostics.EventLog\src\System.Diagnostics.EventLog.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices.AccountManagement\src\System.DirectoryServices.AccountManagement.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices.Protocols\src\System.DirectoryServices.Protocols.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices\src\System.DirectoryServices.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Drawing.Common\src\System.Drawing.Common.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.IO.Packaging\src\System.IO.Packaging.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Reflection.Metadata\src\System.Reflection.Metadata.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Threading.Channels\src\System.Threading.Channels.csproj" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.DirectoryServices.AccountManagement" />
<Reference Include="System.DirectoryServices.Protocols" />
<Reference Include="System.Transactions" />
<Reference Include="WindowsBase" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TestRuntime>true</TestRuntime>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)-illumos;$(NetCoreAppCurrent)-Solaris;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;net48</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="BinaryFormatterTestData.cs" />
<Compile Include="BinaryFormatterTests.cs" />
<Compile Include="DisableBitTests.cs" />
<Compile Include="EqualityExtensions.cs" />
<Compile Include="OptionalFieldAttributeTests.cs" />
<Compile Include="FormatterConverterTests.cs" />
<Compile Include="FormatterServicesTests.cs" />
<Compile Include="FormatterServicesTests.Windows.cs" Condition="'$(TargetPlatformIdentifier)' == 'windows'" />
<Compile Include="FormatterTests.cs" />
<Compile Include="PlatformExtensions.cs" />
<Compile Include="SerializationBinderTests.cs" />
<Compile Include="SerializationInfoTests.cs" />
<Compile Include="SerializationTypes.cs" />
<Compile Include="SurrogateSelectorTests.cs" />
<Compile Include="TargetFrameworkMoniker.cs" />
<Compile Include="TypeSerializableValue.cs" />
<Compile Include="$(CommonTestPath)System\Drawing\Helpers.cs"
Link="Common\System\Drawing\Helpers.cs" />
<Compile Include="$(CommonTestPath)System\NonRuntimeType.cs"
Link="Common\System\NonRuntimeType.cs" />
<Compile Include="$(CommonTestPath)System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs"
Link="Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Include="$(CoreLibSharedDir)System\Collections\Generic\ReferenceEqualityComparer.cs"
Link="Common\System\Collections\Generic\ReferenceEqualityComparer.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="BinaryFormatterEventSourceTests.cs" />
<Compile Include="SerializationGuardTests.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<ProjectReference Include="$(LibrariesProjectRoot)System.CodeDom\src\System.CodeDom.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.ComponentModel.Composition\src\System.ComponentModel.Composition.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Data.Odbc\src\System.Data.Odbc.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Diagnostics.EventLog\src\System.Diagnostics.EventLog.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices.AccountManagement\src\System.DirectoryServices.AccountManagement.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices.Protocols\src\System.DirectoryServices.Protocols.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices\src\System.DirectoryServices.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Drawing.Common\src\System.Drawing.Common.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.IO.Packaging\src\System.IO.Packaging.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Reflection.Metadata\src\System.Reflection.Metadata.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Threading.Channels\src\System.Threading.Channels.csproj" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.DirectoryServices.AccountManagement" />
<Reference Include="System.DirectoryServices.Protocols" />
<Reference Include="System.Transactions" />
<Reference Include="WindowsBase" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Text.Json/gen/System.Text.Json.SourceGeneration.targets
|
<Project>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>$(MSBuildThisFileName)</AssemblyName>
<RootNamespace>$(MSBuildThisFileName)</RootNamespace>
<StringResourcesClassName>SR</StringResourcesClassName>
<StringResourcesName>FxResources.$(RootNamespace).$(StringResourcesClassName)</StringResourcesName>
<CLSCompliant>false</CLSCompliant>
<Nullable>enable</Nullable>
<!-- Suppress warning: XML comment has cref attribute that could not be resolved -->
<NoWarn>CS1574</NoWarn>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<UsingToolXliff>true</UsingToolXliff>
<AnalyzerLanguage>cs</AnalyzerLanguage>
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);BUILDING_SOURCE_GENERATOR</DefineConstants>
<DefineConstants Condition="'$(LaunchDebugger)' == 'true'">$(DefineConstants);LAUNCH_DEBUGGER</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynApiVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Packaging" Version="$(MicrosoftDotNetBuildTasksPackagingVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="..\Common\JsonCamelCaseNamingPolicy.cs" Link="Common\System\Text\Json\JsonCamelCaseNamingPolicy.cs" />
<Compile Include="..\Common\JsonNamingPolicy.cs" Link="Common\System\Text\Json\JsonNamingPolicy.cs" />
<Compile Include="..\Common\JsonAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonAttribute.cs" />
<Compile Include="..\Common\JsonConstants.cs" Link="Common\System\Text\Json\JsonConstants.cs" />
<Compile Include="..\Common\JsonHelpers.cs" Link="Common\System\Text\Json\JsonHelpers.cs" />
<Compile Include="..\Common\JsonIgnoreCondition.cs" Link="Common\System\Text\Json\Serialization\JsonIgnoreCondition.cs" />
<Compile Include="..\Common\JsonKnownNamingPolicy.cs" Link="Common\System\Text\Json\Serialization\JsonKnownNamingPolicy.cs" />
<Compile Include="..\Common\JsonNumberHandling.cs" Link="Common\System\Text\Json\Serialization\JsonNumberHandling.cs" />
<Compile Include="..\Common\JsonSerializableAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSerializableAttribute.cs" />
<Compile Include="..\Common\JsonSourceGenerationMode.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationMode.cs" />
<Compile Include="..\Common\JsonSourceGenerationOptionsAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationOptionsAttribute.cs" />
<Compile Include="..\Common\ReflectionExtensions.cs" Link="Common\System\Text\Json\Serialization\ReflectionExtensions.cs" />
<Compile Include="$(CommonPath)\Roslyn\GetBestTypeByMetadataName.cs" Link="Common\Roslyn\GetBestTypeByMetadataName.cs" />
<Compile Include="ClassType.cs" />
<Compile Include="CollectionType.cs" />
<Compile Include="JsonConstants.cs" />
<Compile Include="JsonSourceGenerator.Emitter.cs" />
<Compile Include="JsonSourceGenerator.Emitter.ExceptionMessages.cs" />
<Compile Include="JsonSourceGenerator.Parser.cs" />
<Compile Include="ObjectConstructionStrategy.cs" />
<Compile Include="ParameterGenerationSpec.cs" />
<Compile Include="PropertyGenerationSpec.cs" />
<Compile Include="Reflection\AssemblyWrapper.cs" />
<Compile Include="Reflection\TypeExtensions.cs" />
<Compile Include="Reflection\FieldInfoWrapper.cs" />
<Compile Include="Reflection\ConstructorInfoWrapper.cs" />
<Compile Include="Reflection\CustomAttributeDataWrapper.cs" />
<Compile Include="Reflection\MemberInfoWrapper.cs" />
<Compile Include="Reflection\MetadataLoadContextInternal.cs" />
<Compile Include="Reflection\MethodInfoWrapper.cs" />
<Compile Include="Reflection\ParameterInfoWrapper.cs" />
<Compile Include="Reflection\PropertyInfoWrapper.cs" />
<Compile Include="Reflection\ReflectionExtensions.cs" />
<Compile Include="Reflection\RoslynExtensions.cs" />
<Compile Include="Reflection\TypeWrapper.cs" />
<Compile Include="ContextGenerationSpec.cs" />
<Compile Include="SourceGenerationSpec.cs" />
<Compile Include="TypeGenerationSpec.cs" />
</ItemGroup>
</Project>
|
<Project>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>$(MSBuildThisFileName)</AssemblyName>
<RootNamespace>$(MSBuildThisFileName)</RootNamespace>
<StringResourcesClassName>SR</StringResourcesClassName>
<StringResourcesName>FxResources.$(RootNamespace).$(StringResourcesClassName)</StringResourcesName>
<CLSCompliant>false</CLSCompliant>
<Nullable>enable</Nullable>
<!-- Suppress warning: XML comment has cref attribute that could not be resolved -->
<NoWarn>CS1574</NoWarn>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<UsingToolXliff>true</UsingToolXliff>
<AnalyzerLanguage>cs</AnalyzerLanguage>
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);BUILDING_SOURCE_GENERATOR</DefineConstants>
<DefineConstants Condition="'$(LaunchDebugger)' == 'true'">$(DefineConstants);LAUNCH_DEBUGGER</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynApiVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Packaging" Version="$(MicrosoftDotNetBuildTasksPackagingVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="..\Common\JsonCamelCaseNamingPolicy.cs" Link="Common\System\Text\Json\JsonCamelCaseNamingPolicy.cs" />
<Compile Include="..\Common\JsonNamingPolicy.cs" Link="Common\System\Text\Json\JsonNamingPolicy.cs" />
<Compile Include="..\Common\JsonAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonAttribute.cs" />
<Compile Include="..\Common\JsonConstants.cs" Link="Common\System\Text\Json\JsonConstants.cs" />
<Compile Include="..\Common\JsonHelpers.cs" Link="Common\System\Text\Json\JsonHelpers.cs" />
<Compile Include="..\Common\JsonIgnoreCondition.cs" Link="Common\System\Text\Json\Serialization\JsonIgnoreCondition.cs" />
<Compile Include="..\Common\JsonKnownNamingPolicy.cs" Link="Common\System\Text\Json\Serialization\JsonKnownNamingPolicy.cs" />
<Compile Include="..\Common\JsonNumberHandling.cs" Link="Common\System\Text\Json\Serialization\JsonNumberHandling.cs" />
<Compile Include="..\Common\JsonSerializableAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSerializableAttribute.cs" />
<Compile Include="..\Common\JsonSourceGenerationMode.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationMode.cs" />
<Compile Include="..\Common\JsonSourceGenerationOptionsAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationOptionsAttribute.cs" />
<Compile Include="..\Common\ReflectionExtensions.cs" Link="Common\System\Text\Json\Serialization\ReflectionExtensions.cs" />
<Compile Include="$(CommonPath)\Roslyn\GetBestTypeByMetadataName.cs" Link="Common\Roslyn\GetBestTypeByMetadataName.cs" />
<Compile Include="ClassType.cs" />
<Compile Include="CollectionType.cs" />
<Compile Include="JsonConstants.cs" />
<Compile Include="JsonSourceGenerator.Emitter.cs" />
<Compile Include="JsonSourceGenerator.Emitter.ExceptionMessages.cs" />
<Compile Include="JsonSourceGenerator.Parser.cs" />
<Compile Include="ObjectConstructionStrategy.cs" />
<Compile Include="ParameterGenerationSpec.cs" />
<Compile Include="PropertyGenerationSpec.cs" />
<Compile Include="Reflection\AssemblyWrapper.cs" />
<Compile Include="Reflection\TypeExtensions.cs" />
<Compile Include="Reflection\FieldInfoWrapper.cs" />
<Compile Include="Reflection\ConstructorInfoWrapper.cs" />
<Compile Include="Reflection\CustomAttributeDataWrapper.cs" />
<Compile Include="Reflection\MemberInfoWrapper.cs" />
<Compile Include="Reflection\MetadataLoadContextInternal.cs" />
<Compile Include="Reflection\MethodInfoWrapper.cs" />
<Compile Include="Reflection\ParameterInfoWrapper.cs" />
<Compile Include="Reflection\PropertyInfoWrapper.cs" />
<Compile Include="Reflection\ReflectionExtensions.cs" />
<Compile Include="Reflection\RoslynExtensions.cs" />
<Compile Include="Reflection\TypeWrapper.cs" />
<Compile Include="ContextGenerationSpec.cs" />
<Compile Include="SourceGenerationSpec.cs" />
<Compile Include="TypeGenerationSpec.cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Text.Json/ref/System.Text.Json.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<Nullable>enable</Nullable>
<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Text.Json.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System.Text.Json.Typeforwards.netcoreapp.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encodings.Web\ref\System.Text.Encodings.Web.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Collections.Concurrent\ref\System.Collections.Concurrent.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Memory\ref\System.Memory.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime\ref\System.Runtime.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFramework)' != '$(NetCoreAppCurrent)'">
<Reference Include="System.Collections" />
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Memory" />
<Reference Include="System.Runtime" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
<ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\ref\Microsoft.Bcl.AsyncInterfaces.csproj" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<Nullable>enable</Nullable>
<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Text.Json.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System.Text.Json.Typeforwards.netcoreapp.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encodings.Web\ref\System.Text.Encodings.Web.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Collections.Concurrent\ref\System.Collections.Concurrent.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Memory\ref\System.Memory.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime\ref\System.Runtime.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFramework)' != '$(NetCoreAppCurrent)'">
<Reference Include="System.Collections" />
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Memory" />
<Reference Include="System.Runtime" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
<ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\ref\Microsoft.Bcl.AsyncInterfaces.csproj" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Text.Json/src/System.Text.Json.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<!-- Workaround for overriding the XML comments related warnings that are being supressed repo wide (within arcade): -->
<!-- https://github.com/dotnet/arcade/blob/ea6addfdc65e5df1b2c036f11614a5f922e36267/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props#L90 -->
<!-- For this project, we want warnings if there are public APIs/types without properly formatted XML comments (particularly CS1591). -->
<NoWarn>CS8969</NoWarn>
<Nullable>enable</Nullable>
<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>
<IsPackable>true</IsPackable>
<PackageDescription>Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.
Commonly Used Types:
System.Text.Json.JsonSerializer
System.Text.Json.JsonDocument
System.Text.Json.JsonElement
System.Text.Json.Utf8JsonWriter
System.Text.Json.Utf8JsonReader
System.Text.Json.Nodes.JsonNode
System.Text.Json.Nodes.JsonArray
System.Text.Json.Nodes.JsonObject
System.Text.Json.Nodes.JsonValue</PackageDescription>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<!-- For the inbox library (that is shipping with the product), this should always be true. -->
<!-- BUILDING_INBOX_LIBRARY is only false when building the netstandard compatible NuGet package. -->
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">$(DefineConstants);BUILDING_INBOX_LIBRARY</DefineConstants>
<NoWarn Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) != '.NETCoreApp'">$(NoWarn);nullable</NoWarn>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" />
<Compile Include="$(CommonPath)System\Text\Json\PooledByteBufferWriter.cs" Link="Common\System\Text\Json\PooledByteBufferWriter.cs" />
<Compile Include="..\Common\JsonCamelCaseNamingPolicy.cs" Link="Common\System\Text\Json\JsonCamelCaseNamingPolicy.cs" />
<Compile Include="..\Common\JsonNamingPolicy.cs" Link="Common\System\Text\Json\JsonNamingPolicy.cs" />
<Compile Include="..\Common\JsonAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonAttribute.cs" />
<Compile Include="..\Common\JsonConstants.cs" Link="Common\System\Text\Json\JsonConstants.cs" />
<Compile Include="..\Common\JsonHelpers.cs" Link="Common\System\Text\Json\JsonHelpers.cs" />
<Compile Include="..\Common\JsonIgnoreCondition.cs" Link="Common\System\Text\Json\Serialization\JsonIgnoreCondition.cs" />
<Compile Include="..\Common\JsonKnownNamingPolicy.cs" Link="Common\System\Text\Json\Serialization\JsonKnownNamingPolicy.cs" />
<Compile Include="..\Common\JsonNumberHandling.cs" Link="Common\System\Text\Json\Serialization\JsonNumberHandling.cs" />
<Compile Include="..\Common\JsonSerializableAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSerializableAttribute.cs" />
<Compile Include="..\Common\JsonSourceGenerationMode.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationMode.cs" />
<Compile Include="..\Common\JsonSourceGenerationOptionsAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationOptionsAttribute.cs" />
<Compile Include="..\Common\ReflectionExtensions.cs" Link="Common\System\Text\Json\Serialization\ReflectionExtensions.cs" />
<Compile Include="System\Text\Json\BitStack.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.DbRow.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.MetadataDb.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.Parse.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.StackRow.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.StackRowStack.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.TryGetProperty.cs" />
<Compile Include="System\Text\Json\Document\JsonDocumentOptions.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.ArrayEnumerator.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.ObjectEnumerator.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.Parse.cs" />
<Compile Include="System\Text\Json\Document\JsonProperty.cs" />
<Compile Include="System\Text\Json\Document\JsonValueKind.cs" />
<Compile Include="System\Text\Json\JsonCommentHandling.cs" />
<Compile Include="System\Text\Json\JsonConstants.cs" />
<Compile Include="System\Text\Json\JsonEncodedText.cs" />
<Compile Include="System\Text\Json\JsonException.cs" />
<Compile Include="System\Text\Json\JsonHelpers.cs" />
<Compile Include="System\Text\Json\JsonHelpers.Date.cs" />
<Compile Include="System\Text\Json\JsonHelpers.Escaping.cs" />
<Compile Include="System\Text\Json\JsonPropertyDictionary.cs" />
<Compile Include="System\Text\Json\JsonPropertyDictionary.KeyCollection.cs" />
<Compile Include="System\Text\Json\JsonPropertyDictionary.ValueCollection.cs" />
<Compile Include="System\Text\Json\JsonTokenType.cs" />
<Compile Include="System\Text\Json\Nodes\JsonArray.cs" />
<Compile Include="System\Text\Json\Nodes\JsonArray.IList.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.Operators.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.Parse.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.To.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNodeOptions.cs" />
<Compile Include="System\Text\Json\Nodes\JsonObject.cs" />
<Compile Include="System\Text\Json\Nodes\JsonObject.IDictionary.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValue.CreateOverloads.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValue.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValueNotTrimmable.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValueOfT.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValueTrimmable.cs" />
<Compile Include="System\Text\Json\Reader\ConsumeNumberResult.cs" />
<Compile Include="System\Text\Json\Reader\ConsumeTokenResult.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderException.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderHelper.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderOptions.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderState.cs" />
<Compile Include="System\Text\Json\Reader\Utf8JsonReader.cs" />
<Compile Include="System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs" />
<Compile Include="System\Text\Json\Reader\Utf8JsonReader.TryGet.cs" />
<Compile Include="System\Text\Json\Serialization\Arguments.cs" />
<Compile Include="System\Text\Json\Serialization\ArgumentState.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonConstructorAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonConverterAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonExtensionDataAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonIgnoreAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonIncludeAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonNumberHandlingAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonPropertyNameAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonPropertyOrderAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverterWithReflection.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverterWithReflection.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverterWithReflection.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.Reflection.cs" />
<Compile Include="System\Text\Json\Serialization\IgnoreReferenceResolver.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnDeserialized.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnDeserializing.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnSerialized.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnSerializing.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Document.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Element.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Node.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Document.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Element.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Node.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerContext.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs" />
<Compile Include="System\Text\Json\Serialization\PolymorphicSerializationState.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceEqualsWrapper.cs" />
<Compile Include="System\Text\Json\Serialization\ConverterStrategy.cs" />
<Compile Include="System\Text\Json\Serialization\ConverterList.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ConcurrentQueueOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ConcurrentStackOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactoryHelpers.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IListConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\QueueOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\StackOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonNodeConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\JsonObjectConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\KeyValuePairConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\ByteArrayConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\ByteConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\CharConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DateTimeConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DateTimeOffsetConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DecimalConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DoubleConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\EnumConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\EnumConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\EnumConverterOptions.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\GuidConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\Int16Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\Int32Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\Int64Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\JsonDocumentConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\JsonElementConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\NullableConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\NullableConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\SByteConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\SingleConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\StringConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UInt16Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UInt32Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UInt64Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UriConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\VersionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\IgnoreReferenceHandler.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverter.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverter.ReadAhead.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterOfT.cs" />
<Compile Include="System\Text\Json\Serialization\JsonResumableConverterOfT.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Helpers.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Helpers.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Span.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.String.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Helpers.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.String.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerDefaults.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptions.cs" />
<Compile Include="System\Text\Json\Serialization\JsonStringEnumConverter.cs" />
<Compile Include="System\Text\Json\Serialization\JsonUnknownTypeHandling.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\DefaultValueHolder.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonCollectionInfoValuesOfTCollection.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonObjectInfoValuesOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonParameterInfoValues.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonParameterInfoOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonPropertyInfoValuesOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfoInternalOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\MemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ParameterRef.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\PropertyRef.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.Cache.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\MetadataPropertyName.cs" />
<Compile Include="System\Text\Json\Serialization\PreserveReferenceHandler.cs" />
<Compile Include="System\Text\Json\Serialization\PreserveReferenceResolver.cs" />
<Compile Include="System\Text\Json\Serialization\ReadBufferState.cs" />
<Compile Include="System\Text\Json\Serialization\ReadStack.cs" />
<Compile Include="System\Text\Json\Serialization\ReadStackFrame.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceHandler.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceHandlerOfT.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceHandlingStrategy.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceResolver.cs" />
<Compile Include="System\Text\Json\Serialization\StackFrameObjectState.cs" />
<Compile Include="System\Text\Json\Serialization\StackFramePropertyState.cs" />
<Compile Include="System\Text\Json\Serialization\WriteStack.cs" />
<Compile Include="System\Text\Json\Serialization\WriteStackFrame.cs" />
<Compile Include="System\Text\Json\ThrowHelper.cs" />
<Compile Include="System\Text\Json\ThrowHelper.Node.cs" />
<Compile Include="System\Text\Json\ThrowHelper.Serialization.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.Date.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.Escaping.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.Transcoding.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterOptions.cs" />
<Compile Include="System\Text\Json\Writer\SequenceValidity.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs" />
<Compile Include="System\ReflectionExtensions.cs" />
<Compile Include="$(CommonPath)System\Obsoletions.cs" Link="Common\System\Obsoletions.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="$(CommonPath)System\Collections\Generic\ReferenceEqualityComparer.cs" Link="Common\System\Collections\Generic\ReferenceEqualityComparer.cs" />
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System.Text.Json.Typeforwards.netcoreapp.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptionsUpdateHandler.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="System\Collections\Generic\StackExtensions.netstandard.cs" />
<!-- Common or Common-branched source files -->
<Compile Include="$(CommonPath)System\Buffers\ArrayBufferWriter.cs" Link="Common\System\Buffers\ArrayBufferWriter.cs" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs" />
</ItemGroup>
<!-- Application tfms (.NETCoreApp, .NETFramework) need to use the same or higher version of .NETStandard's dependencies. -->
<ItemGroup>
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encodings.Web\src\System.Text.Encodings.Web.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Buffers" />
<Reference Include="System.Collections" />
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Memory" />
<Reference Include="System.Numerics.Vectors" />
<Reference Include="System.Reflection.Emit.ILGeneration" />
<Reference Include="System.Reflection.Emit.Lightweight" />
<Reference Include="System.Reflection.Primitives" />
<Reference Include="System.Resources.ResourceManager" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.Loader" />
<Reference Include="System.Text.Encoding.Extensions" />
<Reference Include="System.Threading" />
<Reference Include="System.Threading.Tasks" />
<Reference Include="System.Threading.Tasks.Extensions" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Buffers" Version="$(SystemBuffersVersion)" />
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Numerics.Vectors" Version="$(SystemNumericsVectorsVersion)" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
<PackageReference Include="System.ValueTuple" Version="$(SystemValueTupleVersion)" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
<ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\src\Microsoft.Bcl.AsyncInterfaces.csproj" />
</ItemGroup>
<ItemGroup>
<AnalyzerReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn3.11.csproj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
<AnalyzerReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn4.0.csproj" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
<!-- Workaround for overriding the XML comments related warnings that are being supressed repo wide (within arcade): -->
<!-- https://github.com/dotnet/arcade/blob/ea6addfdc65e5df1b2c036f11614a5f922e36267/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props#L90 -->
<!-- For this project, we want warnings if there are public APIs/types without properly formatted XML comments (particularly CS1591). -->
<NoWarn>CS8969</NoWarn>
<Nullable>enable</Nullable>
<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>
<IsPackable>true</IsPackable>
<PackageDescription>Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.
Commonly Used Types:
System.Text.Json.JsonSerializer
System.Text.Json.JsonDocument
System.Text.Json.JsonElement
System.Text.Json.Utf8JsonWriter
System.Text.Json.Utf8JsonReader
System.Text.Json.Nodes.JsonNode
System.Text.Json.Nodes.JsonArray
System.Text.Json.Nodes.JsonObject
System.Text.Json.Nodes.JsonValue</PackageDescription>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<!-- For the inbox library (that is shipping with the product), this should always be true. -->
<!-- BUILDING_INBOX_LIBRARY is only false when building the netstandard compatible NuGet package. -->
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">$(DefineConstants);BUILDING_INBOX_LIBRARY</DefineConstants>
<NoWarn Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) != '.NETCoreApp'">$(NoWarn);nullable</NoWarn>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" />
<Compile Include="$(CommonPath)System\Text\Json\PooledByteBufferWriter.cs" Link="Common\System\Text\Json\PooledByteBufferWriter.cs" />
<Compile Include="..\Common\JsonCamelCaseNamingPolicy.cs" Link="Common\System\Text\Json\JsonCamelCaseNamingPolicy.cs" />
<Compile Include="..\Common\JsonNamingPolicy.cs" Link="Common\System\Text\Json\JsonNamingPolicy.cs" />
<Compile Include="..\Common\JsonAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonAttribute.cs" />
<Compile Include="..\Common\JsonConstants.cs" Link="Common\System\Text\Json\JsonConstants.cs" />
<Compile Include="..\Common\JsonHelpers.cs" Link="Common\System\Text\Json\JsonHelpers.cs" />
<Compile Include="..\Common\JsonIgnoreCondition.cs" Link="Common\System\Text\Json\Serialization\JsonIgnoreCondition.cs" />
<Compile Include="..\Common\JsonKnownNamingPolicy.cs" Link="Common\System\Text\Json\Serialization\JsonKnownNamingPolicy.cs" />
<Compile Include="..\Common\JsonNumberHandling.cs" Link="Common\System\Text\Json\Serialization\JsonNumberHandling.cs" />
<Compile Include="..\Common\JsonSerializableAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSerializableAttribute.cs" />
<Compile Include="..\Common\JsonSourceGenerationMode.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationMode.cs" />
<Compile Include="..\Common\JsonSourceGenerationOptionsAttribute.cs" Link="Common\System\Text\Json\Serialization\JsonSourceGenerationOptionsAttribute.cs" />
<Compile Include="..\Common\ReflectionExtensions.cs" Link="Common\System\Text\Json\Serialization\ReflectionExtensions.cs" />
<Compile Include="System\Text\Json\BitStack.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.DbRow.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.MetadataDb.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.Parse.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.StackRow.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.StackRowStack.cs" />
<Compile Include="System\Text\Json\Document\JsonDocument.TryGetProperty.cs" />
<Compile Include="System\Text\Json\Document\JsonDocumentOptions.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.ArrayEnumerator.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.ObjectEnumerator.cs" />
<Compile Include="System\Text\Json\Document\JsonElement.Parse.cs" />
<Compile Include="System\Text\Json\Document\JsonProperty.cs" />
<Compile Include="System\Text\Json\Document\JsonValueKind.cs" />
<Compile Include="System\Text\Json\JsonCommentHandling.cs" />
<Compile Include="System\Text\Json\JsonConstants.cs" />
<Compile Include="System\Text\Json\JsonEncodedText.cs" />
<Compile Include="System\Text\Json\JsonException.cs" />
<Compile Include="System\Text\Json\JsonHelpers.cs" />
<Compile Include="System\Text\Json\JsonHelpers.Date.cs" />
<Compile Include="System\Text\Json\JsonHelpers.Escaping.cs" />
<Compile Include="System\Text\Json\JsonPropertyDictionary.cs" />
<Compile Include="System\Text\Json\JsonPropertyDictionary.KeyCollection.cs" />
<Compile Include="System\Text\Json\JsonPropertyDictionary.ValueCollection.cs" />
<Compile Include="System\Text\Json\JsonTokenType.cs" />
<Compile Include="System\Text\Json\Nodes\JsonArray.cs" />
<Compile Include="System\Text\Json\Nodes\JsonArray.IList.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.Operators.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.Parse.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNode.To.cs" />
<Compile Include="System\Text\Json\Nodes\JsonNodeOptions.cs" />
<Compile Include="System\Text\Json\Nodes\JsonObject.cs" />
<Compile Include="System\Text\Json\Nodes\JsonObject.IDictionary.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValue.CreateOverloads.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValue.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValueNotTrimmable.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValueOfT.cs" />
<Compile Include="System\Text\Json\Nodes\JsonValueTrimmable.cs" />
<Compile Include="System\Text\Json\Reader\ConsumeNumberResult.cs" />
<Compile Include="System\Text\Json\Reader\ConsumeTokenResult.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderException.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderHelper.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderOptions.cs" />
<Compile Include="System\Text\Json\Reader\JsonReaderState.cs" />
<Compile Include="System\Text\Json\Reader\Utf8JsonReader.cs" />
<Compile Include="System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs" />
<Compile Include="System\Text\Json\Reader\Utf8JsonReader.TryGet.cs" />
<Compile Include="System\Text\Json\Serialization\Arguments.cs" />
<Compile Include="System\Text\Json\Serialization\ArgumentState.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonConstructorAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonConverterAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonExtensionDataAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonIgnoreAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonIncludeAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonNumberHandlingAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonPropertyNameAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Attributes\JsonPropertyOrderAttribute.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverterWithReflection.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverterWithReflection.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverterWithReflection.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.Reflection.cs" />
<Compile Include="System\Text\Json\Serialization\IgnoreReferenceResolver.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnDeserialized.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnDeserializing.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnSerialized.cs" />
<Compile Include="System\Text\Json\Serialization\IJsonOnSerializing.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Document.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Element.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Node.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Document.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Element.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Node.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerContext.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs" />
<Compile Include="System\Text\Json\Serialization\PolymorphicSerializationState.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceEqualsWrapper.cs" />
<Compile Include="System\Text\Json\Serialization\ConverterStrategy.cs" />
<Compile Include="System\Text\Json\Serialization\ConverterList.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ConcurrentQueueOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ConcurrentStackOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactoryHelpers.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IListConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\QueueOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Collection\StackOfTConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonNodeConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\JsonObjectConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\KeyValuePairConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\ByteArrayConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\ByteConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\CharConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DateTimeConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DateTimeOffsetConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DecimalConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\DoubleConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\EnumConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\EnumConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\EnumConverterOptions.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\GuidConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\Int16Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\Int32Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\Int64Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\JsonDocumentConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\JsonElementConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\NullableConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\NullableConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\SByteConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\SingleConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\StringConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UInt16Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UInt32Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UInt64Converter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\UriConverter.cs" />
<Compile Include="System\Text\Json\Serialization\Converters\Value\VersionConverter.cs" />
<Compile Include="System\Text\Json\Serialization\IgnoreReferenceHandler.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverter.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverter.ReadAhead.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterFactory.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs" />
<Compile Include="System\Text\Json\Serialization\JsonConverterOfT.cs" />
<Compile Include="System\Text\Json\Serialization\JsonResumableConverterOfT.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Helpers.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Helpers.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Span.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.String.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Helpers.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.String.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerDefaults.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptions.cs" />
<Compile Include="System\Text\Json\Serialization\JsonStringEnumConverter.cs" />
<Compile Include="System\Text\Json\Serialization\JsonUnknownTypeHandling.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\DefaultValueHolder.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonCollectionInfoValuesOfTCollection.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonObjectInfoValuesOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonParameterInfoValues.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonParameterInfoOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonPropertyInfoValuesOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfoInternalOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\MemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ParameterRef.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\PropertyRef.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.Cache.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs" />
<Compile Include="System\Text\Json\Serialization\MetadataPropertyName.cs" />
<Compile Include="System\Text\Json\Serialization\PreserveReferenceHandler.cs" />
<Compile Include="System\Text\Json\Serialization\PreserveReferenceResolver.cs" />
<Compile Include="System\Text\Json\Serialization\ReadBufferState.cs" />
<Compile Include="System\Text\Json\Serialization\ReadStack.cs" />
<Compile Include="System\Text\Json\Serialization\ReadStackFrame.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceHandler.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceHandlerOfT.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceHandlingStrategy.cs" />
<Compile Include="System\Text\Json\Serialization\ReferenceResolver.cs" />
<Compile Include="System\Text\Json\Serialization\StackFrameObjectState.cs" />
<Compile Include="System\Text\Json\Serialization\StackFramePropertyState.cs" />
<Compile Include="System\Text\Json\Serialization\WriteStack.cs" />
<Compile Include="System\Text\Json\Serialization\WriteStackFrame.cs" />
<Compile Include="System\Text\Json\ThrowHelper.cs" />
<Compile Include="System\Text\Json\ThrowHelper.Node.cs" />
<Compile Include="System\Text\Json\ThrowHelper.Serialization.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.Date.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.Escaping.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterHelper.Transcoding.cs" />
<Compile Include="System\Text\Json\Writer\JsonWriterOptions.cs" />
<Compile Include="System\Text\Json\Writer\SequenceValidity.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs" />
<Compile Include="System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs" />
<Compile Include="System\ReflectionExtensions.cs" />
<Compile Include="$(CommonPath)System\Obsoletions.cs" Link="Common\System\Obsoletions.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="$(CoreLibSharedDir)System\Collections\Generic\ReferenceEqualityComparer.cs" />
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Compile Include="System.Text.Json.Typeforwards.netcoreapp.cs" />
<Compile Include="System\Text\Json\Serialization\JsonSerializerOptionsUpdateHandler.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<Compile Include="System\Collections\Generic\StackExtensions.netstandard.cs" />
<!-- Common or Common-branched source files -->
<Compile Include="$(CommonPath)System\Buffers\ArrayBufferWriter.cs" Link="Common\System\Buffers\ArrayBufferWriter.cs" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs" />
</ItemGroup>
<!-- Application tfms (.NETCoreApp, .NETFramework) need to use the same or higher version of .NETStandard's dependencies. -->
<ItemGroup>
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encodings.Web\src\System.Text.Encodings.Web.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Buffers" />
<Reference Include="System.Collections" />
<Reference Include="System.Collections.Concurrent" />
<Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Memory" />
<Reference Include="System.Numerics.Vectors" />
<Reference Include="System.Reflection.Emit.ILGeneration" />
<Reference Include="System.Reflection.Emit.Lightweight" />
<Reference Include="System.Reflection.Primitives" />
<Reference Include="System.Resources.ResourceManager" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.Loader" />
<Reference Include="System.Text.Encoding.Extensions" />
<Reference Include="System.Threading" />
<Reference Include="System.Threading.Tasks" />
<Reference Include="System.Threading.Tasks.Extensions" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Buffers" Version="$(SystemBuffersVersion)" />
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Numerics.Vectors" Version="$(SystemNumericsVectorsVersion)" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
<PackageReference Include="System.ValueTuple" Version="$(SystemValueTupleVersion)" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
<ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\src\Microsoft.Bcl.AsyncInterfaces.csproj" />
</ItemGroup>
<ItemGroup>
<AnalyzerReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn3.11.csproj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
<AnalyzerReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn4.0.csproj" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Text.Json/tests/System.Text.Json.Tests/System.Text.Json.Tests.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- SYSLIB0020: JsonSerializerOptions.IgnoreNullValues is obsolete -->
<NoWarn>$(NoWarn);SYSLIB0020</NoWarn>
<!-- these tests depend on the pdb files. Causes test failures like:
[FAIL] System.Text.Json.Tests.DebuggerTests.DefaultJsonElement -->
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(TargetOS)' == 'Browser'">true</DebuggerSupport>
<!-- Needed for JsonSerializerOptionsUpdateHandler tests -->
<MetadataUpdaterSupport Condition="'$(MetadataUpdaterSupport)' == '' and '$(TargetOS)' == 'Browser'">true</MetadataUpdaterSupport>
<WasmXHarnessArgs>$(WasmXHarnessArgs) --timeout=1800</WasmXHarnessArgs>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">$(DefineConstants);BUILDING_INBOX_LIBRARY</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(ContinuousIntegrationBuild)' == 'true'">
<HighAotMemoryUsageAssembly Include="System.Text.Json.Tests.dll" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonTestPath)System\IO\WrappedMemoryStream.cs" Link="CommonTest\System\IO\WrappedMemoryStream.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.AsyncEnumerable.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.AsyncEnumerable.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Concurrent.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Concurrent.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Dictionary.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Dictionary.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Dictionary.KeyPolicy.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Dictionary.KeyPolicy.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Dictionary.NonStringKey.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Dictionary.NonStringKey.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Generic.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Generic.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Generic.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Generic.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Immutable.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Immutable.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.KeyValuePair.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.KeyValuePair.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.NonGeneric.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.NonGeneric.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.NonGeneric.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.NonGeneric.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.ObjectModel.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.ObjectModel.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.ObjectModel.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.ObjectModel.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Specialized.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Specialized.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Specialized.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Specialized.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Immutable.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Immutable.Write.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.AttributePresence.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.AttributePresence.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.Cache.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.Cache.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.Exceptions.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.Exceptions.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.ParameterMatching.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.ParameterMatching.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.Stream.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.Stream.cs" />
<Compile Include="..\Common\ExtensionDataTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ExtensionDataTests.cs" />
<Compile Include="..\Common\JsonSerializerWrapperForStream.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\JsonSerializerWrapperForStream.cs" />
<Compile Include="..\Common\JsonSerializerWrapperForString.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\JsonSerializerWrapperForString.cs" />
<Compile Include="..\Common\JsonTestHelper.cs" Link="CommonTest\System\Text\Json\JsonTestHelper.cs" />
<Compile Include="..\Common\NodeInteropTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\NodeInteropTests.cs" />
<Compile Include="..\Common\PropertyNameTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyNameTests.cs" />
<Compile Include="..\Common\PropertyVisibilityTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyVisibilityTests.cs" />
<Compile Include="..\Common\PropertyVisibilityTests.InitOnly.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyVisibilityTests.InitOnly.cs" />
<Compile Include="..\Common\PropertyVisibilityTests.NonPublicAccessors.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyVisibilityTests.NonPublicAccessors.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.Deserialize.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.Deserialize.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.IgnoreCycles.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.IgnoreCycles.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.Serialize.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.Serialize.cs" />
<Compile Include="..\Common\SampleTestData.OrderPayload.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\SampleTestData.OrderPayload.cs" />
<Compile Include="..\Common\SerializerTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\SerializerTests.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.ConcurrentCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.ConcurrentCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.Constructor.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.Constructor.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.GenericCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.GenericCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.ImmutableCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.ImmutableCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.NonGenericCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.NonGenericCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.Polymorphic.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.Polymorphic.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClass.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClass.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithFields.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithFields.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithNullables.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithNullables.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithObject.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithObject.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithObjectArrays.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithObjectArrays.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithSimpleObject.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithSimpleObject.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestStruct.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestStruct.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestStructWithFields.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestStructWithFields.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.ValueTypedMember.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.ValueTypedMember.cs" />
<Compile Include="..\Common\TestClasses\TestData.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestData.cs" />
<Compile Include="..\Common\UnsupportedTypesTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\UnsupportedTypesTests.cs" />
<Compile Include="BitStackTests.cs" />
<Compile Include="BufferFactory.cs" />
<Compile Include="BufferSegment.cs" />
<Compile Include="DebuggerTests.cs" />
<Compile Include="FixedSizedBufferWriter.cs" />
<Compile Include="InvalidBufferWriter.cs" />
<Compile Include="JsonBase64TestData.cs" />
<Compile Include="JsonDateTimeTestData.cs" />
<Compile Include="JsonDocumentTests.cs" />
<Compile Include="JsonElementCloneTests.cs" />
<Compile Include="JsonElementParseTests.cs" />
<Compile Include="JsonElementWriteTests.cs" />
<Compile Include="JsonEncodedTextTests.cs" />
<Compile Include="JsonGuidTestData.cs" />
<Compile Include="JsonNode\Common.cs" />
<Compile Include="JsonNode\JsonArrayTests.cs" />
<Compile Include="JsonNode\JsonNodeTests.cs" />
<Compile Include="JsonNode\JsonNodeOperatorTests.cs" />
<Compile Include="JsonNode\JsonObjectTests.cs" />
<Compile Include="JsonNode\JsonValueTests.cs" />
<Compile Include="JsonNode\ParseTests.cs" />
<Compile Include="JsonNode\ParentPathRootTests.cs" />
<Compile Include="JsonNode\ToStringTests.cs" />
<Compile Include="JsonNumberTestData.cs" />
<Compile Include="JsonPropertyTests.cs" />
<Compile Include="JsonReaderStateAndOptionsTests.cs" />
<Compile Include="JsonTestHelper.cs" />
<Compile Include="JsonWriterOptionsTests.cs" />
<Compile Include="NewtonsoftTests\CamelCaseTests.cs" />
<Compile Include="NewtonsoftTests\CustomObjectConverterTests.cs" />
<Compile Include="NewtonsoftTests\DateTimeConverterTests.cs" />
<Compile Include="NewtonsoftTests\EnumConverterTests.cs" />
<Compile Include="NewtonsoftTests\ImmutableCollectionsTests.cs" />
<Compile Include="NewtonsoftTests\JsonSerializerTests.cs" />
<Compile Include="Serialization\Array.ReadTests.cs" />
<Compile Include="Serialization\Array.WriteTests.cs" />
<Compile Include="Serialization\CacheTests.cs" />
<Compile Include="Serialization\CamelCaseUnitTests.cs" />
<Compile Include="Serialization\CollectionTests.cs" />
<Compile Include="Serialization\ConstructorTests.cs" />
<Compile Include="Serialization\ContinuationTests.cs" />
<Compile Include="Serialization\ContinuationTests.NullToken.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Array.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Attribute.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.BadConverters.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Callback.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.ContravariantDictionaryConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DerivedTypes.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryEnumConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryGuidConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryInt32StringConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryInt32StringKeyValueConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryKeyValueConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Dynamic.Sample.Tests.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Enum.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Exceptions.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Dynamic.Sample.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.HandleNull.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Int32.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Interface.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.InvalidCast.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.KeyConverters.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.List.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.NullValueType.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.NullableTypes.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Object.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Point.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Polymorphic.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.ReadAhead.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.ValueTypedMember.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.cs" />
<Compile Include="Serialization\CyclicTests.cs" />
<Compile Include="Serialization\DomTests.cs" />
<Compile Include="Serialization\DynamicTests.cs" />
<Compile Include="Serialization\EnumConverterTests.cs" />
<Compile Include="Serialization\EnumTests.cs" />
<Compile Include="Serialization\ExceptionTests.cs" />
<Compile Include="Serialization\ExtensionDataTests.cs" />
<Compile Include="Serialization\InvalidJsonTests.cs" />
<Compile Include="Serialization\InvalidTypeTests.cs" />
<Compile Include="Serialization\JsonDocumentTests.cs" />
<Compile Include="Serialization\JsonElementTests.cs" />
<Compile Include="Serialization\JsonSerializerApiValidation.cs" />
<Compile Include="Serialization\JsonSerializerWrapperForStream.cs" />
<Compile Include="Serialization\JsonSerializerWrapperForString.cs" />
<Compile Include="Serialization\MetadataTests\MetadataTests.cs" />
<Compile Include="Serialization\MetadataTests\MetadataTests.JsonSerializer.cs" />
<Compile Include="Serialization\MetadataTests\MetadataTests.Options.cs" />
<Compile Include="Serialization\NodeInteropTests.cs" />
<Compile Include="Serialization\Null.ReadTests.cs" />
<Compile Include="Serialization\Null.WriteTests.cs" />
<Compile Include="Serialization\NullableTests.cs" />
<Compile Include="Serialization\NumberHandlingTests.cs" />
<Compile Include="Serialization\Object.ReadTests.cs" />
<Compile Include="Serialization\Object.WriteTests.cs" />
<Compile Include="Serialization\OnSerializeTests.cs" />
<Compile Include="Serialization\OptionsTests.cs" />
<Compile Include="Serialization\PolymorphicTests.cs" />
<Compile Include="Serialization\PropertyNameTests.cs" />
<Compile Include="Serialization\PropertyOrderTests.cs" />
<Compile Include="Serialization\PropertyVisibilityTests.cs" />
<Compile Include="Serialization\ReadScenarioTests.cs" />
<Compile Include="Serialization\ReadValueTests.cs" />
<Compile Include="Serialization\ReferenceHandlerTests.cs" />
<Compile Include="Serialization\SpanTests.cs" />
<Compile Include="Serialization\StreamTests.cs" />
<Compile Include="Serialization\Stream.Collections.cs" />
<Compile Include="Serialization\Stream.DeserializeAsyncEnumerable.cs" />
<Compile Include="Serialization\Stream.ReadTests.cs" />
<Compile Include="Serialization\Stream.WriteTests.cs" />
<Compile Include="Serialization\UnsupportedTypesTests.cs" />
<Compile Include="Serialization\Value.ReadTests.cs" />
<Compile Include="Serialization\Value.WriteTests.cs" />
<Compile Include="Serialization\WriteValueTests.cs" />
<Compile Include="TestCaseType.cs" />
<Compile Include="Utf8JsonReaderTests.cs" />
<Compile Include="Utf8JsonReaderTests.MultiSegment.cs" />
<Compile Include="Utf8JsonReaderTests.TryGet.cs" />
<Compile Include="Utf8JsonReaderTests.TryGet.Date.cs" />
<Compile Include="Utf8JsonReaderTests.ValueTextEquals.cs" />
<Compile Include="Utf8JsonWriterTests.cs" />
<Compile Include="Utf8JsonWriterTests.WriteRaw.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\src\System\Text\Json\BitStack.cs" Link="BitStack.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != '$(NetCoreAppCurrent)'">
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Include="$(CommonPath)System\Buffers\ArrayBufferWriter.cs" Link="CommonTest\System\Buffers\ArrayBufferWriter.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<ProjectReference Include="$(LibrariesProjectRoot)System.IO.Pipelines\src\System.IO.Pipelines.csproj" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Collections.Immutable\src\System.Collections.Immutable.csproj" />
<ProjectReference Include="..\..\src\System.Text.Json.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.0.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- SYSLIB0020: JsonSerializerOptions.IgnoreNullValues is obsolete -->
<NoWarn>$(NoWarn);SYSLIB0020</NoWarn>
<!-- these tests depend on the pdb files. Causes test failures like:
[FAIL] System.Text.Json.Tests.DebuggerTests.DefaultJsonElement -->
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(TargetOS)' == 'Browser'">true</DebuggerSupport>
<!-- Needed for JsonSerializerOptionsUpdateHandler tests -->
<MetadataUpdaterSupport Condition="'$(MetadataUpdaterSupport)' == '' and '$(TargetOS)' == 'Browser'">true</MetadataUpdaterSupport>
<WasmXHarnessArgs>$(WasmXHarnessArgs) --timeout=1800</WasmXHarnessArgs>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
<DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">$(DefineConstants);BUILDING_INBOX_LIBRARY</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(ContinuousIntegrationBuild)' == 'true'">
<HighAotMemoryUsageAssembly Include="System.Text.Json.Tests.dll" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonTestPath)System\IO\WrappedMemoryStream.cs" Link="CommonTest\System\IO\WrappedMemoryStream.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.AsyncEnumerable.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.AsyncEnumerable.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Concurrent.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Concurrent.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Dictionary.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Dictionary.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Dictionary.KeyPolicy.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Dictionary.KeyPolicy.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Dictionary.NonStringKey.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Dictionary.NonStringKey.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Generic.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Generic.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Generic.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Generic.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Immutable.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Immutable.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.KeyValuePair.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.KeyValuePair.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.NonGeneric.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.NonGeneric.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.NonGeneric.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.NonGeneric.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.ObjectModel.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.ObjectModel.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.ObjectModel.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.ObjectModel.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Specialized.Read.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Specialized.Read.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Specialized.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Specialized.Write.cs" />
<Compile Include="..\Common\CollectionTests\CollectionTests.Immutable.Write.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\CollectionTests\CollectionTests.Immutable.Write.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.AttributePresence.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.AttributePresence.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.Cache.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.Cache.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.Exceptions.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.Exceptions.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.ParameterMatching.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.ParameterMatching.cs" />
<Compile Include="..\Common\ConstructorTests\ConstructorTests.Stream.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ConstructorTests\ConstructorTests.Stream.cs" />
<Compile Include="..\Common\ExtensionDataTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ExtensionDataTests.cs" />
<Compile Include="..\Common\JsonSerializerWrapperForStream.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\JsonSerializerWrapperForStream.cs" />
<Compile Include="..\Common\JsonSerializerWrapperForString.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\JsonSerializerWrapperForString.cs" />
<Compile Include="..\Common\JsonTestHelper.cs" Link="CommonTest\System\Text\Json\JsonTestHelper.cs" />
<Compile Include="..\Common\NodeInteropTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\NodeInteropTests.cs" />
<Compile Include="..\Common\PropertyNameTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyNameTests.cs" />
<Compile Include="..\Common\PropertyVisibilityTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyVisibilityTests.cs" />
<Compile Include="..\Common\PropertyVisibilityTests.InitOnly.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyVisibilityTests.InitOnly.cs" />
<Compile Include="..\Common\PropertyVisibilityTests.NonPublicAccessors.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\PropertyVisibilityTests.NonPublicAccessors.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.Deserialize.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.Deserialize.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.IgnoreCycles.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.IgnoreCycles.cs" />
<Compile Include="..\Common\ReferenceHandlerTests\ReferenceHandlerTests.Serialize.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\ReferenceHandlerTests\ReferenceHandlerTests.Serialize.cs" />
<Compile Include="..\Common\SampleTestData.OrderPayload.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\SampleTestData.OrderPayload.cs" />
<Compile Include="..\Common\SerializerTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\SerializerTests.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.ConcurrentCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.ConcurrentCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.Constructor.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.Constructor.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.GenericCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.GenericCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.ImmutableCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.ImmutableCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.NonGenericCollections.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.NonGenericCollections.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.Polymorphic.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.Polymorphic.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClass.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClass.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithFields.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithFields.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithNullables.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithNullables.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithObject.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithObject.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithObjectArrays.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithObjectArrays.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestClassWithSimpleObject.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestClassWithSimpleObject.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestStruct.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestStruct.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.SimpleTestStructWithFields.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.SimpleTestStructWithFields.cs" />
<Compile Include="..\Common\TestClasses\TestClasses.ValueTypedMember.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestClasses.ValueTypedMember.cs" />
<Compile Include="..\Common\TestClasses\TestData.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\TestClasses\TestData.cs" />
<Compile Include="..\Common\UnsupportedTypesTests.cs" Link="CommonTest\System\Text\Json\Tests\Serialization\UnsupportedTypesTests.cs" />
<Compile Include="BitStackTests.cs" />
<Compile Include="BufferFactory.cs" />
<Compile Include="BufferSegment.cs" />
<Compile Include="DebuggerTests.cs" />
<Compile Include="FixedSizedBufferWriter.cs" />
<Compile Include="InvalidBufferWriter.cs" />
<Compile Include="JsonBase64TestData.cs" />
<Compile Include="JsonDateTimeTestData.cs" />
<Compile Include="JsonDocumentTests.cs" />
<Compile Include="JsonElementCloneTests.cs" />
<Compile Include="JsonElementParseTests.cs" />
<Compile Include="JsonElementWriteTests.cs" />
<Compile Include="JsonEncodedTextTests.cs" />
<Compile Include="JsonGuidTestData.cs" />
<Compile Include="JsonNode\Common.cs" />
<Compile Include="JsonNode\JsonArrayTests.cs" />
<Compile Include="JsonNode\JsonNodeTests.cs" />
<Compile Include="JsonNode\JsonNodeOperatorTests.cs" />
<Compile Include="JsonNode\JsonObjectTests.cs" />
<Compile Include="JsonNode\JsonValueTests.cs" />
<Compile Include="JsonNode\ParseTests.cs" />
<Compile Include="JsonNode\ParentPathRootTests.cs" />
<Compile Include="JsonNode\ToStringTests.cs" />
<Compile Include="JsonNumberTestData.cs" />
<Compile Include="JsonPropertyTests.cs" />
<Compile Include="JsonReaderStateAndOptionsTests.cs" />
<Compile Include="JsonTestHelper.cs" />
<Compile Include="JsonWriterOptionsTests.cs" />
<Compile Include="NewtonsoftTests\CamelCaseTests.cs" />
<Compile Include="NewtonsoftTests\CustomObjectConverterTests.cs" />
<Compile Include="NewtonsoftTests\DateTimeConverterTests.cs" />
<Compile Include="NewtonsoftTests\EnumConverterTests.cs" />
<Compile Include="NewtonsoftTests\ImmutableCollectionsTests.cs" />
<Compile Include="NewtonsoftTests\JsonSerializerTests.cs" />
<Compile Include="Serialization\Array.ReadTests.cs" />
<Compile Include="Serialization\Array.WriteTests.cs" />
<Compile Include="Serialization\CacheTests.cs" />
<Compile Include="Serialization\CamelCaseUnitTests.cs" />
<Compile Include="Serialization\CollectionTests.cs" />
<Compile Include="Serialization\ConstructorTests.cs" />
<Compile Include="Serialization\ContinuationTests.cs" />
<Compile Include="Serialization\ContinuationTests.NullToken.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Array.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Attribute.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.BadConverters.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Callback.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.ContravariantDictionaryConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DerivedTypes.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryEnumConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryGuidConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryInt32StringConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryInt32StringKeyValueConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.DictionaryKeyValueConverter.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Dynamic.Sample.Tests.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Enum.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Exceptions.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Dynamic.Sample.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.HandleNull.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Int32.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Interface.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.InvalidCast.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.KeyConverters.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.List.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.NullValueType.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.NullableTypes.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Object.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Point.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.Polymorphic.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.ReadAhead.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.ValueTypedMember.cs" />
<Compile Include="Serialization\CustomConverterTests\CustomConverterTests.cs" />
<Compile Include="Serialization\CyclicTests.cs" />
<Compile Include="Serialization\DomTests.cs" />
<Compile Include="Serialization\DynamicTests.cs" />
<Compile Include="Serialization\EnumConverterTests.cs" />
<Compile Include="Serialization\EnumTests.cs" />
<Compile Include="Serialization\ExceptionTests.cs" />
<Compile Include="Serialization\ExtensionDataTests.cs" />
<Compile Include="Serialization\InvalidJsonTests.cs" />
<Compile Include="Serialization\InvalidTypeTests.cs" />
<Compile Include="Serialization\JsonDocumentTests.cs" />
<Compile Include="Serialization\JsonElementTests.cs" />
<Compile Include="Serialization\JsonSerializerApiValidation.cs" />
<Compile Include="Serialization\JsonSerializerWrapperForStream.cs" />
<Compile Include="Serialization\JsonSerializerWrapperForString.cs" />
<Compile Include="Serialization\MetadataTests\MetadataTests.cs" />
<Compile Include="Serialization\MetadataTests\MetadataTests.JsonSerializer.cs" />
<Compile Include="Serialization\MetadataTests\MetadataTests.Options.cs" />
<Compile Include="Serialization\NodeInteropTests.cs" />
<Compile Include="Serialization\Null.ReadTests.cs" />
<Compile Include="Serialization\Null.WriteTests.cs" />
<Compile Include="Serialization\NullableTests.cs" />
<Compile Include="Serialization\NumberHandlingTests.cs" />
<Compile Include="Serialization\Object.ReadTests.cs" />
<Compile Include="Serialization\Object.WriteTests.cs" />
<Compile Include="Serialization\OnSerializeTests.cs" />
<Compile Include="Serialization\OptionsTests.cs" />
<Compile Include="Serialization\PolymorphicTests.cs" />
<Compile Include="Serialization\PropertyNameTests.cs" />
<Compile Include="Serialization\PropertyOrderTests.cs" />
<Compile Include="Serialization\PropertyVisibilityTests.cs" />
<Compile Include="Serialization\ReadScenarioTests.cs" />
<Compile Include="Serialization\ReadValueTests.cs" />
<Compile Include="Serialization\ReferenceHandlerTests.cs" />
<Compile Include="Serialization\SpanTests.cs" />
<Compile Include="Serialization\StreamTests.cs" />
<Compile Include="Serialization\Stream.Collections.cs" />
<Compile Include="Serialization\Stream.DeserializeAsyncEnumerable.cs" />
<Compile Include="Serialization\Stream.ReadTests.cs" />
<Compile Include="Serialization\Stream.WriteTests.cs" />
<Compile Include="Serialization\UnsupportedTypesTests.cs" />
<Compile Include="Serialization\Value.ReadTests.cs" />
<Compile Include="Serialization\Value.WriteTests.cs" />
<Compile Include="Serialization\WriteValueTests.cs" />
<Compile Include="TestCaseType.cs" />
<Compile Include="Utf8JsonReaderTests.cs" />
<Compile Include="Utf8JsonReaderTests.MultiSegment.cs" />
<Compile Include="Utf8JsonReaderTests.TryGet.cs" />
<Compile Include="Utf8JsonReaderTests.TryGet.Date.cs" />
<Compile Include="Utf8JsonReaderTests.ValueTextEquals.cs" />
<Compile Include="Utf8JsonWriterTests.cs" />
<Compile Include="Utf8JsonWriterTests.WriteRaw.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\src\System\Text\Json\BitStack.cs" Link="BitStack.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != '$(NetCoreAppCurrent)'">
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" />
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Include="$(CommonPath)System\Buffers\ArrayBufferWriter.cs" Link="CommonTest\System\Buffers\ArrayBufferWriter.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<ProjectReference Include="$(LibrariesProjectRoot)System.IO.Pipelines\src\System.IO.Pipelines.csproj" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Collections.Immutable\src\System.Collections.Immutable.csproj" />
<ProjectReference Include="..\..\src\System.Text.Json.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.0.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Text.RegularExpressions/gen/System.Text.RegularExpressions.Generator.csproj
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<EnableDefaultItems>true</EnableDefaultItems>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<UsingToolXliff>true</UsingToolXliff>
<CLSCompliant>false</CLSCompliant>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);CS0436;CS0649</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>$(DefineConstants);REGEXGENERATOR</DefineConstants>
<IsNETCoreAppAnalyzer>true</IsNETCoreAppAnalyzer>
<AnalyzerLanguage>cs</AnalyzerLanguage>
<IsPackable>false</IsPackable>
<LangVersion>Preview</LangVersion>
</PropertyGroup>
<ItemGroup>
<!-- This generator ships as part of the .NET ref pack. Since VS ingests new Roslyn versions at a different cadence than the .NET SDK, we are pinning this generator to build against Roslyn 4.0 to ensure that we don't break users who are using .NET 7 previews in VS. -->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion_4_0)" PrivateAssets="all" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Packaging" Version="$(MicrosoftDotNetBuildTasksPackagingVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<!-- Common generator support -->
<Compile Include="$(CommonPath)Roslyn\GetBestTypeByMetadataName.cs" Link="Common\Roslyn\GetBestTypeByMetadataName.cs" />
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<!-- Code included from System.Text.RegularExpressions -->
<Compile Include="$(CommonPath)System\HexConverter.cs" Link="Production\HexConverter.cs" />
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs" Link="Production\ValueStringBuilder.cs" />
<Compile Include="$(CoreLibSharedDir)System\Collections\Generic\ValueListBuilder.cs" Link="Production\ValueListBuilder.cs" />
<Compile Include="..\src\System\Collections\Generic\ValueListBuilder.Pop.cs" Link="Production\ValueListBuilder.Pop.cs" />
<Compile Include="..\src\System\Threading\StackHelper.cs" Link="Production\StackHelper.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexCharClass.cs" Link="Production\RegexCharClass.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexCharClass.MappingTable.cs" Link="Production\RegexCharClass.MappingTable.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexFindOptimizations.cs" Link="Production\RegexFindOptimizations.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexNode.cs" Link="Production\RegexNode.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexNodeKind.cs" Link="Production\RegexNodeKind.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexOpcode.cs" Link="Production\RegexOpcode.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexOptions.cs" Link="Production\RegexOptions.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexParseError.cs" Link="Production\RegexParseError.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexParseException.cs" Link="Production\RegexParseException.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexParser.cs" Link="Production\RegexParser.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs" Link="Production\RegexPrefixAnalyzer.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexTree.cs" Link="Production\RegexTree.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexTreeAnalyzer.cs" Link="Production\RegexTreeAnalyzer.cs" />
<Compile Include="..\src\System\Collections\HashtableExtensions.cs" Link="Production\HashtableExtensions.cs" />
</ItemGroup>
</Project>
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<EnableDefaultItems>true</EnableDefaultItems>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<UsingToolXliff>true</UsingToolXliff>
<CLSCompliant>false</CLSCompliant>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);CS0436;CS0649</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>$(DefineConstants);REGEXGENERATOR</DefineConstants>
<IsNETCoreAppAnalyzer>true</IsNETCoreAppAnalyzer>
<AnalyzerLanguage>cs</AnalyzerLanguage>
<IsPackable>false</IsPackable>
<LangVersion>Preview</LangVersion>
</PropertyGroup>
<ItemGroup>
<!-- This generator ships as part of the .NET ref pack. Since VS ingests new Roslyn versions at a different cadence than the .NET SDK, we are pinning this generator to build against Roslyn 4.0 to ensure that we don't break users who are using .NET 7 previews in VS. -->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion_4_0)" PrivateAssets="all" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Packaging" Version="$(MicrosoftDotNetBuildTasksPackagingVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<!-- Common generator support -->
<Compile Include="$(CommonPath)Roslyn\GetBestTypeByMetadataName.cs" Link="Common\Roslyn\GetBestTypeByMetadataName.cs" />
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<!-- Code included from System.Text.RegularExpressions -->
<Compile Include="$(CommonPath)System\HexConverter.cs" Link="Production\HexConverter.cs" />
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs" Link="Production\ValueStringBuilder.cs" />
<Compile Include="$(CoreLibSharedDir)System\Collections\Generic\ValueListBuilder.cs" Link="Production\ValueListBuilder.cs" />
<Compile Include="..\src\System\Collections\Generic\ValueListBuilder.Pop.cs" Link="Production\ValueListBuilder.Pop.cs" />
<Compile Include="..\src\System\Threading\StackHelper.cs" Link="Production\StackHelper.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexCharClass.cs" Link="Production\RegexCharClass.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexCharClass.MappingTable.cs" Link="Production\RegexCharClass.MappingTable.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexFindOptimizations.cs" Link="Production\RegexFindOptimizations.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexNode.cs" Link="Production\RegexNode.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexNodeKind.cs" Link="Production\RegexNodeKind.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexOpcode.cs" Link="Production\RegexOpcode.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexOptions.cs" Link="Production\RegexOptions.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexParseError.cs" Link="Production\RegexParseError.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexParseException.cs" Link="Production\RegexParseException.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexParser.cs" Link="Production\RegexParser.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs" Link="Production\RegexPrefixAnalyzer.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexTree.cs" Link="Production\RegexTree.cs" />
<Compile Include="..\src\System\Text\RegularExpressions\RegexTreeAnalyzer.cs" Link="Production\RegexTreeAnalyzer.cs" />
<Compile Include="..\src\System\Collections\HashtableExtensions.cs" Link="Production\HashtableExtensions.cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Net.Security/src/System/Net/Security/CipherSuitesPolicyPal.Windows.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
namespace System.Net.Security
{
internal sealed class CipherSuitesPolicyPal
{
internal CipherSuitesPolicyPal(IEnumerable<TlsCipherSuite> allowedCipherSuites)
{
throw new PlatformNotSupportedException(SR.net_ssl_ciphersuites_policy_not_supported);
}
internal IEnumerable<TlsCipherSuite> GetCipherSuites() => null!;
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
namespace System.Net.Security
{
internal sealed class CipherSuitesPolicyPal
{
internal CipherSuitesPolicyPal(IEnumerable<TlsCipherSuite> allowedCipherSuites)
{
throw new PlatformNotSupportedException(SR.net_ssl_ciphersuites_policy_not_supported);
}
internal IEnumerable<TlsCipherSuite> GetCipherSuites() => null!;
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Data.Common/src/System/Data/DataViewManagerListItemTypeDescriptor.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
namespace System.Data
{
internal sealed class DataViewManagerListItemTypeDescriptor : ICustomTypeDescriptor
{
private readonly DataViewManager _dataViewManager;
private PropertyDescriptorCollection? _propsCollection;
internal DataViewManagerListItemTypeDescriptor(DataViewManager dataViewManager)
{
_dataViewManager = dataViewManager;
}
internal void Reset()
{
_propsCollection = null;
}
internal DataView GetDataView(DataTable table)
{
DataView dataView = new DataView(table);
dataView.SetDataViewManager(_dataViewManager);
return dataView;
}
/// <summary>
/// Retrieves an array of member attributes for the given object.
/// </summary>
AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
/// <summary>
/// Retrieves the class name for this object. If null is returned,
/// the type name is used.
/// </summary>
string? ICustomTypeDescriptor.GetClassName() => null;
/// <summary>
/// Retrieves the name for this object. If null is returned,
/// the default is used.
/// </summary>
string? ICustomTypeDescriptor.GetComponentName() => null;
/// <summary>
/// Retrieves the type converter for this object.
/// </summary>
[RequiresUnreferencedCode("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
TypeConverter ICustomTypeDescriptor.GetConverter() => null!;
/// <summary>
/// Retrieves the default event.
/// </summary>
[RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null;
/// <summary>
/// Retrieves the default property.
/// </summary>
[RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null;
/// <summary>
/// Retrieves the an editor for this object.
/// </summary>
[RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")]
object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null;
/// <summary>
/// Retrieves an array of events that the given component instance
/// provides. This may differ from the set of events the class
/// provides. If the component is sited, the site may add or remove
/// additional events.
/// </summary>
EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null);
/// <summary>
/// Retrieves an array of events that the given component instance
/// provides. This may differ from the set of events the class
/// provides. If the component is sited, the site may add or remove
/// additional events. The returned array of events will be
/// filtered by the given set of attributes.
/// </summary>
[RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) =>
new EventDescriptorCollection(null);
/// <summary>
/// Retrieves an array of properties that the given component instance
/// provides. This may differ from the set of properties the class
/// provides. If the component is sited, the site may add or remove
/// additional properties.
/// </summary>
[RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() =>
GetPropertiesInternal();
/// <summary>
/// Retrieves an array of properties that the given component instance
/// provides. This may differ from the set of properties the class
/// provides. If the component is sited, the site may add or remove
/// additional properties. The returned array of properties will be
/// filtered by the given set of attributes.
/// </summary>
[RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) =>
GetPropertiesInternal();
internal PropertyDescriptorCollection GetPropertiesInternal()
{
if (_propsCollection == null)
{
PropertyDescriptor[]? props = null;
DataSet? dataSet = _dataViewManager.DataSet;
if (dataSet != null)
{
int tableCount = dataSet.Tables.Count;
props = new PropertyDescriptor[tableCount];
for (int i = 0; i < tableCount; i++)
{
props[i] = new DataTablePropertyDescriptor(dataSet.Tables[i]);
}
}
_propsCollection = new PropertyDescriptorCollection(props);
}
return _propsCollection;
}
/// <summary>
/// Retrieves the object that directly depends on this value being edited. This is
/// generally the object that is required for the PropertyDescriptor's GetValue and SetValue
/// methods. If 'null' is passed for the PropertyDescriptor, the ICustomComponent
/// descriptor implementation should return the default object, that is the main
/// object that exposes the properties and attributes,
/// </summary>
object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
namespace System.Data
{
internal sealed class DataViewManagerListItemTypeDescriptor : ICustomTypeDescriptor
{
private readonly DataViewManager _dataViewManager;
private PropertyDescriptorCollection? _propsCollection;
internal DataViewManagerListItemTypeDescriptor(DataViewManager dataViewManager)
{
_dataViewManager = dataViewManager;
}
internal void Reset()
{
_propsCollection = null;
}
internal DataView GetDataView(DataTable table)
{
DataView dataView = new DataView(table);
dataView.SetDataViewManager(_dataViewManager);
return dataView;
}
/// <summary>
/// Retrieves an array of member attributes for the given object.
/// </summary>
AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
/// <summary>
/// Retrieves the class name for this object. If null is returned,
/// the type name is used.
/// </summary>
string? ICustomTypeDescriptor.GetClassName() => null;
/// <summary>
/// Retrieves the name for this object. If null is returned,
/// the default is used.
/// </summary>
string? ICustomTypeDescriptor.GetComponentName() => null;
/// <summary>
/// Retrieves the type converter for this object.
/// </summary>
[RequiresUnreferencedCode("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
TypeConverter ICustomTypeDescriptor.GetConverter() => null!;
/// <summary>
/// Retrieves the default event.
/// </summary>
[RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null;
/// <summary>
/// Retrieves the default property.
/// </summary>
[RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null;
/// <summary>
/// Retrieves the an editor for this object.
/// </summary>
[RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")]
object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null;
/// <summary>
/// Retrieves an array of events that the given component instance
/// provides. This may differ from the set of events the class
/// provides. If the component is sited, the site may add or remove
/// additional events.
/// </summary>
EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null);
/// <summary>
/// Retrieves an array of events that the given component instance
/// provides. This may differ from the set of events the class
/// provides. If the component is sited, the site may add or remove
/// additional events. The returned array of events will be
/// filtered by the given set of attributes.
/// </summary>
[RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) =>
new EventDescriptorCollection(null);
/// <summary>
/// Retrieves an array of properties that the given component instance
/// provides. This may differ from the set of properties the class
/// provides. If the component is sited, the site may add or remove
/// additional properties.
/// </summary>
[RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() =>
GetPropertiesInternal();
/// <summary>
/// Retrieves an array of properties that the given component instance
/// provides. This may differ from the set of properties the class
/// provides. If the component is sited, the site may add or remove
/// additional properties. The returned array of properties will be
/// filtered by the given set of attributes.
/// </summary>
[RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) =>
GetPropertiesInternal();
internal PropertyDescriptorCollection GetPropertiesInternal()
{
if (_propsCollection == null)
{
PropertyDescriptor[]? props = null;
DataSet? dataSet = _dataViewManager.DataSet;
if (dataSet != null)
{
int tableCount = dataSet.Tables.Count;
props = new PropertyDescriptor[tableCount];
for (int i = 0; i < tableCount; i++)
{
props[i] = new DataTablePropertyDescriptor(dataSet.Tables[i]);
}
}
_propsCollection = new PropertyDescriptorCollection(props);
}
return _propsCollection;
}
/// <summary>
/// Retrieves the object that directly depends on this value being edited. This is
/// generally the object that is required for the PropertyDescriptor's GetValue and SetValue
/// methods. If 'null' is passed for the PropertyDescriptor, the ICustomComponent
/// descriptor implementation should return the default object, that is the main
/// object that exposes the properties and attributes,
/// </summary>
object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/tests/JIT/HardwareIntrinsics/General/Vector256_1/op_Division.UInt16.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace JIT.HardwareIntrinsics.General
{
public static partial class Program
{
private static void op_DivisionUInt16()
{
var test = new VectorBinaryOpTest__op_DivisionUInt16();
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class VectorBinaryOpTest__op_DivisionUInt16
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>();
if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<UInt16> _fld1;
public Vector256<UInt16> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
return testStruct;
}
public void RunStructFldScenario(VectorBinaryOpTest__op_DivisionUInt16 testClass)
{
var result = _fld1 / _fld2;
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static UInt16[] _data1 = new UInt16[Op1ElementCount];
private static UInt16[] _data2 = new UInt16[Op2ElementCount];
private static Vector256<UInt16> _clsVar1;
private static Vector256<UInt16> _clsVar2;
private Vector256<UInt16> _fld1;
private Vector256<UInt16> _fld2;
private DataTable _dataTable;
static VectorBinaryOpTest__op_DivisionUInt16()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
}
public VectorBinaryOpTest__op_DivisionUInt16()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
_dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize);
}
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr) / Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Vector256<UInt16>).GetMethod("op_Division", new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = _clsVar1 / _clsVar2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr);
var result = op1 / op2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new VectorBinaryOpTest__op_DivisionUInt16();
var result = test._fld1 / test._fld2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = _fld1 / _fld2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = test._fld1 / test._fld2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
private void ValidateResult(Vector256<UInt16> op1, Vector256<UInt16> op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (ushort)(left[0] / right[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (ushort)(left[i] / right[i]))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.op_Division<UInt16>(Vector256<UInt16>, Vector256<UInt16>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace JIT.HardwareIntrinsics.General
{
public static partial class Program
{
private static void op_DivisionUInt16()
{
var test = new VectorBinaryOpTest__op_DivisionUInt16();
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class VectorBinaryOpTest__op_DivisionUInt16
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>();
if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<UInt16> _fld1;
public Vector256<UInt16> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
return testStruct;
}
public void RunStructFldScenario(VectorBinaryOpTest__op_DivisionUInt16 testClass)
{
var result = _fld1 / _fld2;
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static UInt16[] _data1 = new UInt16[Op1ElementCount];
private static UInt16[] _data2 = new UInt16[Op2ElementCount];
private static Vector256<UInt16> _clsVar1;
private static Vector256<UInt16> _clsVar2;
private Vector256<UInt16> _fld1;
private Vector256<UInt16> _fld2;
private DataTable _dataTable;
static VectorBinaryOpTest__op_DivisionUInt16()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
}
public VectorBinaryOpTest__op_DivisionUInt16()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = Math.Max((ushort)(1), TestLibrary.Generator.GetUInt16()); }
_dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize);
}
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr) / Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Vector256<UInt16>).GetMethod("op_Division", new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = _clsVar1 / _clsVar2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr);
var result = op1 / op2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new VectorBinaryOpTest__op_DivisionUInt16();
var result = test._fld1 / test._fld2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = _fld1 / _fld2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = test._fld1 / test._fld2;
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
private void ValidateResult(Vector256<UInt16> op1, Vector256<UInt16> op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (ushort)(left[0] / right[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (ushort)(left[i] / right[i]))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.op_Division<UInt16>(Vector256<UInt16>, Vector256<UInt16>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.ComponentModel.Primitives/tests/TrimmingTests/VerifyCategoryNamesDontGetTrimmed.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.ComponentModel;
namespace Test
{
/// <summary>
/// When UseSystemResourceStrings feature switch is on, we want to validate that getting the resource string of
/// a category attribute won't result in having "PropertyCategory" appended to the beginning of the resulting string.
/// This test ensures that both built-in categories as well as custom categories get the right Category when the
/// feature switch is on.
/// </summary>
public class Program
{
public static int Main()
{
if (GetEnumCategory(AnEnum.Action) == "Action" && GetEnumCategory(AnEnum.Something) == "Something" && GetEnumCategory(AnEnum.WindowStyle) == "Window Style")
{
return 100;
}
return -1;
}
public static string GetEnumCategory<T>(T enumValue)
where T : struct, IConvertible
{
if (!typeof(T).IsEnum)
return null;
var enumCategory = enumValue.ToString();
var fieldInfo = enumValue.GetType().GetField(enumValue.ToString());
if (fieldInfo != null)
{
var attrs = fieldInfo.GetCustomAttributes(typeof(CategoryAttribute), false);
if (attrs != null && attrs.Length > 0)
{
enumCategory = ((CategoryAttribute)attrs[0]).Category;
}
}
return enumCategory;
}
}
public enum AnEnum
{
[Category("Action")] // Built-in category
Action = 1,
[Category("Something")] // Custom category
Something = 2,
[Category("WindowStyle")] // Built-in category with localized string different than category name.
WindowStyle = 3,
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.ComponentModel;
namespace Test
{
/// <summary>
/// When UseSystemResourceStrings feature switch is on, we want to validate that getting the resource string of
/// a category attribute won't result in having "PropertyCategory" appended to the beginning of the resulting string.
/// This test ensures that both built-in categories as well as custom categories get the right Category when the
/// feature switch is on.
/// </summary>
public class Program
{
public static int Main()
{
if (GetEnumCategory(AnEnum.Action) == "Action" && GetEnumCategory(AnEnum.Something) == "Something" && GetEnumCategory(AnEnum.WindowStyle) == "Window Style")
{
return 100;
}
return -1;
}
public static string GetEnumCategory<T>(T enumValue)
where T : struct, IConvertible
{
if (!typeof(T).IsEnum)
return null;
var enumCategory = enumValue.ToString();
var fieldInfo = enumValue.GetType().GetField(enumValue.ToString());
if (fieldInfo != null)
{
var attrs = fieldInfo.GetCustomAttributes(typeof(CategoryAttribute), false);
if (attrs != null && attrs.Length > 0)
{
enumCategory = ((CategoryAttribute)attrs[0]).Category;
}
}
return enumCategory;
}
}
public enum AnEnum
{
[Category("Action")] // Built-in category
Action = 1,
[Category("Something")] // Custom category
Something = 2,
[Category("WindowStyle")] // Built-in category with localized string different than category name.
WindowStyle = 3,
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/tests/JIT/HardwareIntrinsics/X86/Avx1/ExtendToVector256.UInt64.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void ExtendToVector256UInt64()
{
var test = new GenericUnaryOpTest__ExtendToVector256UInt64();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class GenericUnaryOpTest__ExtendToVector256UInt64
{
private struct TestStruct
{
public Vector128<UInt64> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref testStruct._fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
return testStruct;
}
public void RunStructFldScenario(GenericUnaryOpTest__ExtendToVector256UInt64 testClass)
{
var result = Avx.ExtendToVector256<UInt64>(_fld);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64);
private static UInt64[] _data = new UInt64[Op1ElementCount];
private static Vector128<UInt64> _clsVar;
private Vector128<UInt64> _fld;
private SimpleUnaryOpTest__DataTable<UInt64, UInt64> _dataTable;
static GenericUnaryOpTest__ExtendToVector256UInt64()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _clsVar), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
}
public GenericUnaryOpTest__ExtendToVector256UInt64()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
_dataTable = new SimpleUnaryOpTest__DataTable<UInt64, UInt64>(_data, new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx.ExtendToVector256<UInt64>(
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArrayPtr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx.ExtendToVector256<UInt64>(
Sse2.LoadVector128((UInt64*)(_dataTable.inArrayPtr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx.ExtendToVector256<UInt64>(
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArrayPtr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx).GetMethod(nameof(Avx.ExtendToVector256))
.MakeGenericMethod( new Type[] { typeof(UInt64) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArrayPtr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx).GetMethod(nameof(Avx.ExtendToVector256))
.MakeGenericMethod( new Type[] { typeof(UInt64) })
.Invoke(null, new object[] {
Sse2.LoadVector128((UInt64*)(_dataTable.inArrayPtr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx).GetMethod(nameof(Avx.ExtendToVector256))
.MakeGenericMethod( new Type[] { typeof(UInt64) })
.Invoke(null, new object[] {
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArrayPtr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx.ExtendToVector256<UInt64>(
_clsVar
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var firstOp = Unsafe.Read<Vector128<UInt64>>(_dataTable.inArrayPtr);
var result = Avx.ExtendToVector256<UInt64>(firstOp);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var firstOp = Sse2.LoadVector128((UInt64*)(_dataTable.inArrayPtr));
var result = Avx.ExtendToVector256<UInt64>(firstOp);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var firstOp = Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArrayPtr));
var result = Avx.ExtendToVector256<UInt64>(firstOp);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new GenericUnaryOpTest__ExtendToVector256UInt64();
var result = Avx.ExtendToVector256<UInt64>(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx.ExtendToVector256<UInt64>(_fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx.ExtendToVector256(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
Succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
Succeeded = true;
}
}
private void ValidateResult(Vector128<UInt64> firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(UInt64[] firstOp, UInt64[] result, [CallerMemberName] string method = "")
{
if (firstOp[0] != result[0])
{
Succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != ((i < (RetElementCount / 2)) ? firstOp[i] : 0))
{
Succeeded = false;
break;
}
}
}
if (!Succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx)}.{nameof(Avx.ExtendToVector256)}<UInt64>(Vector128<UInt64>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void ExtendToVector256UInt64()
{
var test = new GenericUnaryOpTest__ExtendToVector256UInt64();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class GenericUnaryOpTest__ExtendToVector256UInt64
{
private struct TestStruct
{
public Vector128<UInt64> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref testStruct._fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
return testStruct;
}
public void RunStructFldScenario(GenericUnaryOpTest__ExtendToVector256UInt64 testClass)
{
var result = Avx.ExtendToVector256<UInt64>(_fld);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64);
private static UInt64[] _data = new UInt64[Op1ElementCount];
private static Vector128<UInt64> _clsVar;
private Vector128<UInt64> _fld;
private SimpleUnaryOpTest__DataTable<UInt64, UInt64> _dataTable;
static GenericUnaryOpTest__ExtendToVector256UInt64()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _clsVar), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
}
public GenericUnaryOpTest__ExtendToVector256UInt64()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
_dataTable = new SimpleUnaryOpTest__DataTable<UInt64, UInt64>(_data, new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx.ExtendToVector256<UInt64>(
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArrayPtr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx.ExtendToVector256<UInt64>(
Sse2.LoadVector128((UInt64*)(_dataTable.inArrayPtr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx.ExtendToVector256<UInt64>(
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArrayPtr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx).GetMethod(nameof(Avx.ExtendToVector256))
.MakeGenericMethod( new Type[] { typeof(UInt64) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArrayPtr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx).GetMethod(nameof(Avx.ExtendToVector256))
.MakeGenericMethod( new Type[] { typeof(UInt64) })
.Invoke(null, new object[] {
Sse2.LoadVector128((UInt64*)(_dataTable.inArrayPtr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx).GetMethod(nameof(Avx.ExtendToVector256))
.MakeGenericMethod( new Type[] { typeof(UInt64) })
.Invoke(null, new object[] {
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArrayPtr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx.ExtendToVector256<UInt64>(
_clsVar
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var firstOp = Unsafe.Read<Vector128<UInt64>>(_dataTable.inArrayPtr);
var result = Avx.ExtendToVector256<UInt64>(firstOp);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var firstOp = Sse2.LoadVector128((UInt64*)(_dataTable.inArrayPtr));
var result = Avx.ExtendToVector256<UInt64>(firstOp);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var firstOp = Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArrayPtr));
var result = Avx.ExtendToVector256<UInt64>(firstOp);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new GenericUnaryOpTest__ExtendToVector256UInt64();
var result = Avx.ExtendToVector256<UInt64>(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx.ExtendToVector256<UInt64>(_fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx.ExtendToVector256(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
Succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
Succeeded = true;
}
}
private void ValidateResult(Vector128<UInt64> firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(UInt64[] firstOp, UInt64[] result, [CallerMemberName] string method = "")
{
if (firstOp[0] != result[0])
{
Succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != ((i < (RetElementCount / 2)) ? firstOp[i] : 0))
{
Succeeded = false;
break;
}
}
}
if (!Succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx)}.{nameof(Avx.ExtendToVector256)}<UInt64>(Vector128<UInt64>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
}
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Collections/tests/Generic/SortedSet/SortedSet.Tests.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
namespace System.Collections.Tests
{
public class SortedSet_ICollection_NonGeneric_Tests : ICollection_NonGeneric_Tests
{
protected override Type ICollection_NonGeneric_CopyTo_ArrayOfEnumType_ThrowType => typeof(ArgumentException);
protected override bool Enumerator_Current_UndefinedOperation_Throws { get { return true; } }
protected override void AddToCollection(ICollection collection, int numberOfItemsToAdd)
{
int seed = numberOfItemsToAdd * 34;
for (int i = 0; i < numberOfItemsToAdd; i++)
((SortedSet<string>)collection).Add(CreateT(seed++));
}
protected override ICollection NonGenericICollectionFactory()
{
return new SortedSet<string>();
}
protected string CreateT(int seed)
{
int stringLength = seed % 10 + 5;
Random rand = new Random(seed);
byte[] bytes = new byte[stringLength];
rand.NextBytes(bytes);
return Convert.ToBase64String(bytes);
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
namespace System.Collections.Tests
{
public class SortedSet_ICollection_NonGeneric_Tests : ICollection_NonGeneric_Tests
{
protected override Type ICollection_NonGeneric_CopyTo_ArrayOfEnumType_ThrowType => typeof(ArgumentException);
protected override bool Enumerator_Current_UndefinedOperation_Throws { get { return true; } }
protected override void AddToCollection(ICollection collection, int numberOfItemsToAdd)
{
int seed = numberOfItemsToAdd * 34;
for (int i = 0; i < numberOfItemsToAdd; i++)
((SortedSet<string>)collection).Add(CreateT(seed++));
}
protected override ICollection NonGenericICollectionFactory()
{
return new SortedSet<string>();
}
protected string CreateT(int seed)
{
int stringLength = seed % 10 + 5;
Random rand = new Random(seed);
byte[] bytes = new byte[stringLength];
rand.NextBytes(bytes);
return Convert.ToBase64String(bytes);
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/tests/JIT/HardwareIntrinsics/X86/Avx2/CompareEqual.Int32.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void CompareEqualInt32()
{
var test = new SimpleBinaryOpTest__CompareEqualInt32();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (Avx.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleBinaryOpTest__CompareEqualInt32
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Int32[] inArray1, Int32[] inArray2, Int32[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>();
if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<Int32> _fld1;
public Vector256<Int32> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref testStruct._fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref testStruct._fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
return testStruct;
}
public void RunStructFldScenario(SimpleBinaryOpTest__CompareEqualInt32 testClass)
{
var result = Avx2.CompareEqual(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareEqualInt32 testClass)
{
fixed (Vector256<Int32>* pFld1 = &_fld1)
fixed (Vector256<Int32>* pFld2 = &_fld2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pFld1)),
Avx.LoadVector256((Int32*)(pFld2))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32);
private static Int32[] _data1 = new Int32[Op1ElementCount];
private static Int32[] _data2 = new Int32[Op2ElementCount];
private static Vector256<Int32> _clsVar1;
private static Vector256<Int32> _clsVar2;
private Vector256<Int32> _fld1;
private Vector256<Int32> _fld2;
private DataTable _dataTable;
static SimpleBinaryOpTest__CompareEqualInt32()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _clsVar1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _clsVar2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
}
public SimpleBinaryOpTest__CompareEqualInt32()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
_dataTable = new DataTable(_data1, _data2, new Int32[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.CompareEqual(
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((Int32*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.CompareEqual(
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.CompareEqual), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int32>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.CompareEqual), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int32>) })
.Invoke(null, new object[] {
Avx.LoadVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((Int32*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.CompareEqual), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int32>) })
.Invoke(null, new object[] {
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.CompareEqual(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector256<Int32>* pClsVar1 = &_clsVar1)
fixed (Vector256<Int32>* pClsVar2 = &_clsVar2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pClsVar1)),
Avx.LoadVector256((Int32*)(pClsVar2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<Int32>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<Int32>>(_dataTable.inArray2Ptr);
var result = Avx2.CompareEqual(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = Avx.LoadVector256((Int32*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadVector256((Int32*)(_dataTable.inArray2Ptr));
var result = Avx2.CompareEqual(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var op1 = Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray2Ptr));
var result = Avx2.CompareEqual(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleBinaryOpTest__CompareEqualInt32();
var result = Avx2.CompareEqual(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleBinaryOpTest__CompareEqualInt32();
fixed (Vector256<Int32>* pFld1 = &test._fld1)
fixed (Vector256<Int32>* pFld2 = &test._fld2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pFld1)),
Avx.LoadVector256((Int32*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.CompareEqual(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector256<Int32>* pFld1 = &_fld1)
fixed (Vector256<Int32>* pFld2 = &_fld2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pFld1)),
Avx.LoadVector256((Int32*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.CompareEqual(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(&test._fld1)),
Avx.LoadVector256((Int32*)(&test._fld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector256<Int32> op1, Vector256<Int32> op2, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(Int32[] left, Int32[] right, Int32[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != ((left[0] == right[0]) ? unchecked((int)(-1)) : 0))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != ((left[i] == right[i]) ? unchecked((int)(-1)) : 0))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.CompareEqual)}<Int32>(Vector256<Int32>, Vector256<Int32>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void CompareEqualInt32()
{
var test = new SimpleBinaryOpTest__CompareEqualInt32();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (Avx.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleBinaryOpTest__CompareEqualInt32
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Int32[] inArray1, Int32[] inArray2, Int32[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>();
if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<Int32> _fld1;
public Vector256<Int32> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref testStruct._fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref testStruct._fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
return testStruct;
}
public void RunStructFldScenario(SimpleBinaryOpTest__CompareEqualInt32 testClass)
{
var result = Avx2.CompareEqual(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareEqualInt32 testClass)
{
fixed (Vector256<Int32>* pFld1 = &_fld1)
fixed (Vector256<Int32>* pFld2 = &_fld2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pFld1)),
Avx.LoadVector256((Int32*)(pFld2))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32);
private static Int32[] _data1 = new Int32[Op1ElementCount];
private static Int32[] _data2 = new Int32[Op2ElementCount];
private static Vector256<Int32> _clsVar1;
private static Vector256<Int32> _clsVar2;
private Vector256<Int32> _fld1;
private Vector256<Int32> _fld2;
private DataTable _dataTable;
static SimpleBinaryOpTest__CompareEqualInt32()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _clsVar1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _clsVar2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
}
public SimpleBinaryOpTest__CompareEqualInt32()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
_dataTable = new DataTable(_data1, _data2, new Int32[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.CompareEqual(
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((Int32*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.CompareEqual(
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.CompareEqual), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int32>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Int32>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.CompareEqual), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int32>) })
.Invoke(null, new object[] {
Avx.LoadVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((Int32*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.CompareEqual), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int32>) })
.Invoke(null, new object[] {
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.CompareEqual(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector256<Int32>* pClsVar1 = &_clsVar1)
fixed (Vector256<Int32>* pClsVar2 = &_clsVar2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pClsVar1)),
Avx.LoadVector256((Int32*)(pClsVar2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<Int32>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<Int32>>(_dataTable.inArray2Ptr);
var result = Avx2.CompareEqual(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = Avx.LoadVector256((Int32*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadVector256((Int32*)(_dataTable.inArray2Ptr));
var result = Avx2.CompareEqual(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var op1 = Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray2Ptr));
var result = Avx2.CompareEqual(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleBinaryOpTest__CompareEqualInt32();
var result = Avx2.CompareEqual(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleBinaryOpTest__CompareEqualInt32();
fixed (Vector256<Int32>* pFld1 = &test._fld1)
fixed (Vector256<Int32>* pFld2 = &test._fld2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pFld1)),
Avx.LoadVector256((Int32*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.CompareEqual(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector256<Int32>* pFld1 = &_fld1)
fixed (Vector256<Int32>* pFld2 = &_fld2)
{
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(pFld1)),
Avx.LoadVector256((Int32*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.CompareEqual(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = Avx2.CompareEqual(
Avx.LoadVector256((Int32*)(&test._fld1)),
Avx.LoadVector256((Int32*)(&test._fld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector256<Int32> op1, Vector256<Int32> op2, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(Int32[] left, Int32[] right, Int32[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != ((left[0] == right[0]) ? unchecked((int)(-1)) : 0))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != ((left[i] == right[i]) ? unchecked((int)(-1)) : 0))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.CompareEqual)}<Int32>(Vector256<Int32>, Vector256<Int32>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ActiveDirectoryTests.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.DirectoryServices.ActiveDirectory;
using System;
using Xunit;
namespace System.DirectoryServices.Tests
{
public partial class DirectoryServicesTests
{
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchema()
{
using (ActiveDirectorySchema schema = ActiveDirectorySchema.GetSchema(ActiveDirectoryContext))
{
Assert.True(schema.FindAllClasses().Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "user")));
Assert.True(schema.FindAllClasses().Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "samDomainBase")));
Assert.NotNull(schema.FindAllDefunctClasses());
Assert.NotNull(schema.FindAllDefunctProperties());
Assert.True(schema.FindAllProperties(PropertyTypes.Indexed).Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "ou")));
Assert.True(schema.FindAllProperties().Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "cn")));
Assert.Equal("person", schema.FindClass("person").Name);
Assert.Equal("cn", schema.FindProperty("cn").Name);
using (DirectoryEntry de = schema.GetDirectoryEntry())
{
Assert.Equal("CN=Schema", de.Name, StringComparer.OrdinalIgnoreCase);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchemaClass()
{
using (ActiveDirectorySchemaClass orgClass = ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "organization"))
{
Assert.Equal("organization", orgClass.Name);
Assert.Equal("Organization", orgClass.CommonName);
Assert.Equal("2.5.6.4", orgClass.Oid);
Assert.Equal("bf967aa3-0de6-11d0-a285-00aa003049e2", orgClass.SchemaGuid.ToString());
Assert.Equal("top", orgClass.SubClassOf.Name);
Assert.NotNull(orgClass.DefaultObjectSecurityDescriptor);
string s = orgClass.Description; // it can be null
Assert.False(orgClass.IsDefunct);
Assert.True(orgClass.AuxiliaryClasses.Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "samDomainBase")));
Assert.True(orgClass.PossibleInferiors.Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "user")));
ActiveDirectorySchemaClass country = ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "country");
Assert.True(orgClass.PossibleSuperiors.Contains(country));
int index = orgClass.PossibleSuperiors.IndexOf(country);
Assert.Equal(country.Name, orgClass.PossibleSuperiors[index].Name);
Assert.True(orgClass.MandatoryProperties.Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "ntSecurityDescriptor")));
Assert.True(orgClass.OptionalProperties.Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "description")));
Assert.True(orgClass.MandatoryProperties.Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "objectClass")));
using (DirectoryEntry de = orgClass.GetDirectoryEntry())
{
Assert.Equal("CN=Organization", de.Name, StringComparer.OrdinalIgnoreCase);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchemaProperty()
{
using (ActiveDirectorySchemaProperty adsp = ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "objectClass"))
{
Assert.Equal("Object-Class", adsp.CommonName);
Assert.False(adsp.IsDefunct);
Assert.False(adsp.IsInAnr);
Assert.True(adsp.IsIndexed);
Assert.False(adsp.IsIndexedOverContainer);
Assert.True(adsp.IsInGlobalCatalog);
Assert.True(adsp.IsOnTombstonedObject);
Assert.False(adsp.IsSingleValued);
Assert.False(adsp.IsTupleIndexed);
Assert.Equal("2.5.4.0", adsp.Oid);
using (DirectoryEntry de = adsp.GetDirectoryEntry())
{
Assert.Equal("CN=Object-Class", de.Name, StringComparer.OrdinalIgnoreCase);
}
Assert.Equal(ActiveDirectorySyntax.Oid, adsp.Syntax);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchemaFilter()
{
// using (ActiveDirectorySchemaClass schema = ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "user"))
using (ActiveDirectorySchema schema = ActiveDirectorySchema.GetSchema(ActiveDirectoryContext))
using (DirectoryEntry de = schema.GetDirectoryEntry())
{
// by default there is no filters
Assert.Equal(0, de.Children.SchemaFilter.Count);
int topClassCount = 0;
foreach (DirectoryEntry child in de.Children)
{
string s = (string) child.Properties["objectClass"][0];
topClassCount += s.Equals("top", StringComparison.OrdinalIgnoreCase) ? 1 : 0;
}
de.Children.SchemaFilter.Add("top");
Assert.Equal(1, de.Children.SchemaFilter.Count);
Assert.True(de.Children.SchemaFilter.Contains("top"));
Assert.Equal(0, de.Children.SchemaFilter.IndexOf("top"));
Assert.Equal("top", de.Children.SchemaFilter[0]);
int newTopClassCount = 0;
foreach (DirectoryEntry child in de.Children)
{
// we expect to get top only entries
string s = (string) child.Properties["objectClass"][0];
Assert.Equal("top", s, StringComparer.OrdinalIgnoreCase);
newTopClassCount += 1;
}
Assert.Equal(topClassCount, newTopClassCount);
de.Children.SchemaFilter.Remove("top");
Assert.Equal(0, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.Add("top");
Assert.Equal(1, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.RemoveAt(0);
Assert.Equal(0, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.AddRange(new string [] {"top", "user"});
Assert.Equal(2, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.Insert(0, "person");
Assert.Equal(3, de.Children.SchemaFilter.Count);
Assert.Equal("person", de.Children.SchemaFilter[0]);
Assert.Equal("user", de.Children.SchemaFilter[2]);
de.Children.SchemaFilter.Clear();
Assert.Equal(0, de.Children.SchemaFilter.Count);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestRootDomain()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
using (Domain rootDomain = forest.RootDomain)
{
Assert.Equal(forest.Name, rootDomain.Forest.Name);
Assert.Null(rootDomain.Parent);
forest.Domains.Contains(rootDomain);
int index = forest.Domains.IndexOf(rootDomain);
Assert.Equal(rootDomain.Name, forest.Domains[index].Name);
Domain [] domains = new Domain[0];
Assert.Throws<ArgumentException>(() => forest.Domains.CopyTo(domains, 0));
Assert.Throws<ArgumentNullException>(() => forest.Domains.CopyTo(null, 0));
domains = new Domain[forest.Domains.Count];
Assert.Throws<ArgumentOutOfRangeException>(() => forest.Domains.CopyTo(domains, -1));
forest.Domains.CopyTo(domains, 0);
Assert.NotNull(domains.FirstOrDefault(d => d.Name.Equals(rootDomain.Name)));
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestSites()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
Assert.True(forest.Sites.Count > 0);
using (ActiveDirectorySite site = forest.Sites[0])
{
Assert.True(forest.Sites.Contains(site));
Assert.Equal(0, forest.Sites.IndexOf(site));
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestRoleOwnersAndModes()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
Assert.Equal(forest.Name, forest.NamingRoleOwner.Forest.Name);
Assert.Equal(forest.Name, forest.SchemaRoleOwner.Forest.Name);
Assert.True(
forest.ForestMode == ForestMode.Unknown ||
forest.ForestMode == ForestMode.Windows2000Forest ||
forest.ForestMode == ForestMode.Windows2003Forest ||
forest.ForestMode == ForestMode.Windows2003InterimForest ||
forest.ForestMode == ForestMode.Windows2008Forest ||
forest.ForestMode == ForestMode.Windows2008R2Forest ||
forest.ForestMode == ForestMode.Windows2012R2Forest ||
forest.ForestMode == ForestMode.Windows8Forest);
Assert.True(forest.ForestModeLevel >= 0);
Assert.Equal(forest.Name, forest.NamingRoleOwner.Forest.Name);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestSchema()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
using (ActiveDirectorySchema schema = forest.Schema)
using (ActiveDirectorySchemaClass adsc = schema.FindClass("top"))
{
Assert.Equal("top", adsc.CommonName, StringComparer.OrdinalIgnoreCase);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestGlobalCatalog()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
int count = 0;
GlobalCatalogCollection gcCollection = forest.FindAllGlobalCatalogs();
foreach (GlobalCatalog gc in gcCollection)
{
count++;
}
Assert.True(count > 0);
Assert.True(gcCollection.Contains(gcCollection[0]));
Assert.Equal(0, gcCollection.IndexOf(gcCollection[0]));
gcCollection = forest.FindAllGlobalCatalogs(forest.Sites[0].Name);
count = 0;
foreach (GlobalCatalog gc in gcCollection)
{
count++;
}
Assert.True(count > 0);
Assert.True(gcCollection.Contains(gcCollection[0]));
Assert.Equal(0, gcCollection.IndexOf(gcCollection[0]));
GlobalCatalog globalCatalog = forest.FindGlobalCatalog(forest.Sites[0].Name);
DirectoryContext forestContext = new DirectoryContext(
DirectoryContextType.Forest,
forest.Name,
LdapConfiguration.Configuration.UserName,
LdapConfiguration.Configuration.Password);
Assert.Equal(globalCatalog.Name, GlobalCatalog.FindOne(forestContext, forest.Sites[0].Name).Name);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestDomain()
{
using (Domain domain = Domain.GetDomain(ActiveDirectoryContext))
{
Assert.Equal(domain.Forest.Name, Forest.GetForest(ActiveDirectoryContext).Name);
Assert.NotNull(domain.Children);
DomainControllerCollection domainControllers = domain.DomainControllers;
Assert.True(domainControllers.Contains(domain.PdcRoleOwner));
Assert.True(domainControllers.IndexOf(domain.RidRoleOwner) >= 0);
Assert.True(domainControllers.Contains(domain.InfrastructureRoleOwner));
Assert.True(domain.DomainModeLevel >= 0);
Assert.True(
domain.DomainMode == DomainMode.Unknown ||
domain.DomainMode == DomainMode.Windows2000MixedDomain ||
domain.DomainMode == DomainMode.Windows2000NativeDomain ||
domain.DomainMode == DomainMode.Windows2003Domain ||
domain.DomainMode == DomainMode.Windows2003InterimDomain ||
domain.DomainMode == DomainMode.Windows2008Domain ||
domain.DomainMode == DomainMode.Windows2008R2Domain ||
domain.DomainMode == DomainMode.Windows2012R2Domain ||
domain.DomainMode == DomainMode.Windows8Domain);
if (domain.Forest.RootDomain.Name.Equals(domain.Name))
{
Assert.Null(domain.Parent);
}
Assert.Throws<ArgumentNullException>(() => domain.GetSidFilteringStatus(null));
Assert.Throws<ArgumentException>(() => domain.GetSidFilteringStatus(""));
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestDomainController()
{
using (Domain domain = Domain.GetDomain(ActiveDirectoryContext))
{
DirectoryContext dc = new DirectoryContext(
DirectoryContextType.Domain,
domain.Name,
LdapConfiguration.Configuration.UserName,
LdapConfiguration.Configuration.Password);
using (DomainController controller = DomainController.FindOne(dc))
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
Assert.Equal(forest.Name, controller.Forest.Name);
}
DomainControllerCollection dcc = DomainController.FindAll(dc);
Assert.True(dcc.Contains(controller));
Assert.True(dcc.IndexOf(controller) >= 0);
Assert.Equal(domain.Name, controller.Domain.Name);
Assert.True(controller.CurrentTime > DateTime.Today.AddDays(-2));
Assert.True(controller.HighestCommittedUsn > 0);
Assert.NotNull(controller.InboundConnections);
Assert.NotNull(controller.OutboundConnections);
foreach (ActiveDirectoryRole adr in controller.Roles)
{
Assert.True(
adr == ActiveDirectoryRole.InfrastructureRole ||
adr == ActiveDirectoryRole.NamingRole ||
adr == ActiveDirectoryRole.PdcRole ||
adr == ActiveDirectoryRole.RidRole ||
adr == ActiveDirectoryRole.SchemaRole);
Assert.True(controller.Roles.Contains(adr));
Assert.True(controller.Roles.IndexOf(adr) >= 0);
}
Assert.NotNull(controller.SiteName);
Assert.True(controller.OSVersion.IndexOf("Windows", StringComparison.OrdinalIgnoreCase) >= 0);
Assert.True(controller.IPAddress.IndexOf('.') >= 0);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSites()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
using (ActiveDirectorySite site = forest.Sites[0])
using (ActiveDirectorySite s = ActiveDirectorySite.FindByName(ActiveDirectoryContext, site.Name))
{
Assert.Equal(site.Name, s.Name);
Assert.True(s.Domains.Contains(forest.RootDomain));
Assert.NotNull(s.AdjacentSites);
Assert.NotNull(s.BridgeheadServers);
Assert.NotNull(s.PreferredRpcBridgeheadServers);
Assert.NotNull(s.PreferredSmtpBridgeheadServers);
Assert.NotNull(s.Subnets);
Assert.True(s.SiteLinks.Count > 0);
using (ActiveDirectorySiteLink adsl = s.SiteLinks[0])
{
Assert.True(s.SiteLinks.Contains(adsl));
Assert.Equal(0, s.SiteLinks.IndexOf(adsl));
Assert.True(adsl.Sites.Contains(s));
Assert.True(adsl.Cost >= 0);
Assert.True(adsl.TransportType == ActiveDirectoryTransportType.Rpc || adsl.TransportType == ActiveDirectoryTransportType.Smtp);
}
Assert.True(s.Servers.Contains(s.InterSiteTopologyGenerator));
using (DirectoryServer ds = s.Servers[0])
{
Assert.NotNull(ds.InboundConnections);
Assert.NotNull(ds.OutboundConnections);
Assert.True(ds.IPAddress.IndexOf('.') >= 0);
Assert.Equal(s.Name, ds.SiteName);
Assert.True(ds.Partitions.Count > 0);
string firstPartition = ds.Partitions[0];
Assert.True(ds.Partitions.Contains(firstPartition));
Assert.Equal(0, ds.Partitions.IndexOf(firstPartition));
string [] partitions = new string[0];
Assert.Throws<ArgumentException>(() => ds.Partitions.CopyTo(partitions, 0));
Assert.Throws<ArgumentNullException>(() => ds.Partitions.CopyTo(null, 0));
Assert.Throws<ArgumentOutOfRangeException>(() => ds.Partitions.CopyTo(partitions, -1));
partitions = new string[ds.Partitions.Count];
ds.Partitions.CopyTo(partitions, 0);
Assert.Contains(firstPartition, partitions);
}
}
}
}
private static DirectoryContext ActiveDirectoryContext => new DirectoryContext(
DirectoryContextType.DirectoryServer,
LdapConfiguration.Configuration.ServerName +
(string.IsNullOrEmpty(LdapConfiguration.Configuration.Port) ? "" : ":" + LdapConfiguration.Configuration.Port),
LdapConfiguration.Configuration.UserName,
LdapConfiguration.Configuration.Password);
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.DirectoryServices.ActiveDirectory;
using System;
using Xunit;
namespace System.DirectoryServices.Tests
{
public partial class DirectoryServicesTests
{
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchema()
{
using (ActiveDirectorySchema schema = ActiveDirectorySchema.GetSchema(ActiveDirectoryContext))
{
Assert.True(schema.FindAllClasses().Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "user")));
Assert.True(schema.FindAllClasses().Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "samDomainBase")));
Assert.NotNull(schema.FindAllDefunctClasses());
Assert.NotNull(schema.FindAllDefunctProperties());
Assert.True(schema.FindAllProperties(PropertyTypes.Indexed).Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "ou")));
Assert.True(schema.FindAllProperties().Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "cn")));
Assert.Equal("person", schema.FindClass("person").Name);
Assert.Equal("cn", schema.FindProperty("cn").Name);
using (DirectoryEntry de = schema.GetDirectoryEntry())
{
Assert.Equal("CN=Schema", de.Name, StringComparer.OrdinalIgnoreCase);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchemaClass()
{
using (ActiveDirectorySchemaClass orgClass = ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "organization"))
{
Assert.Equal("organization", orgClass.Name);
Assert.Equal("Organization", orgClass.CommonName);
Assert.Equal("2.5.6.4", orgClass.Oid);
Assert.Equal("bf967aa3-0de6-11d0-a285-00aa003049e2", orgClass.SchemaGuid.ToString());
Assert.Equal("top", orgClass.SubClassOf.Name);
Assert.NotNull(orgClass.DefaultObjectSecurityDescriptor);
string s = orgClass.Description; // it can be null
Assert.False(orgClass.IsDefunct);
Assert.True(orgClass.AuxiliaryClasses.Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "samDomainBase")));
Assert.True(orgClass.PossibleInferiors.Contains(ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "user")));
ActiveDirectorySchemaClass country = ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "country");
Assert.True(orgClass.PossibleSuperiors.Contains(country));
int index = orgClass.PossibleSuperiors.IndexOf(country);
Assert.Equal(country.Name, orgClass.PossibleSuperiors[index].Name);
Assert.True(orgClass.MandatoryProperties.Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "ntSecurityDescriptor")));
Assert.True(orgClass.OptionalProperties.Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "description")));
Assert.True(orgClass.MandatoryProperties.Contains(ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "objectClass")));
using (DirectoryEntry de = orgClass.GetDirectoryEntry())
{
Assert.Equal("CN=Organization", de.Name, StringComparer.OrdinalIgnoreCase);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchemaProperty()
{
using (ActiveDirectorySchemaProperty adsp = ActiveDirectorySchemaProperty.FindByName(ActiveDirectoryContext, "objectClass"))
{
Assert.Equal("Object-Class", adsp.CommonName);
Assert.False(adsp.IsDefunct);
Assert.False(adsp.IsInAnr);
Assert.True(adsp.IsIndexed);
Assert.False(adsp.IsIndexedOverContainer);
Assert.True(adsp.IsInGlobalCatalog);
Assert.True(adsp.IsOnTombstonedObject);
Assert.False(adsp.IsSingleValued);
Assert.False(adsp.IsTupleIndexed);
Assert.Equal("2.5.4.0", adsp.Oid);
using (DirectoryEntry de = adsp.GetDirectoryEntry())
{
Assert.Equal("CN=Object-Class", de.Name, StringComparer.OrdinalIgnoreCase);
}
Assert.Equal(ActiveDirectorySyntax.Oid, adsp.Syntax);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSchemaFilter()
{
// using (ActiveDirectorySchemaClass schema = ActiveDirectorySchemaClass.FindByName(ActiveDirectoryContext, "user"))
using (ActiveDirectorySchema schema = ActiveDirectorySchema.GetSchema(ActiveDirectoryContext))
using (DirectoryEntry de = schema.GetDirectoryEntry())
{
// by default there is no filters
Assert.Equal(0, de.Children.SchemaFilter.Count);
int topClassCount = 0;
foreach (DirectoryEntry child in de.Children)
{
string s = (string) child.Properties["objectClass"][0];
topClassCount += s.Equals("top", StringComparison.OrdinalIgnoreCase) ? 1 : 0;
}
de.Children.SchemaFilter.Add("top");
Assert.Equal(1, de.Children.SchemaFilter.Count);
Assert.True(de.Children.SchemaFilter.Contains("top"));
Assert.Equal(0, de.Children.SchemaFilter.IndexOf("top"));
Assert.Equal("top", de.Children.SchemaFilter[0]);
int newTopClassCount = 0;
foreach (DirectoryEntry child in de.Children)
{
// we expect to get top only entries
string s = (string) child.Properties["objectClass"][0];
Assert.Equal("top", s, StringComparer.OrdinalIgnoreCase);
newTopClassCount += 1;
}
Assert.Equal(topClassCount, newTopClassCount);
de.Children.SchemaFilter.Remove("top");
Assert.Equal(0, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.Add("top");
Assert.Equal(1, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.RemoveAt(0);
Assert.Equal(0, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.AddRange(new string [] {"top", "user"});
Assert.Equal(2, de.Children.SchemaFilter.Count);
de.Children.SchemaFilter.Insert(0, "person");
Assert.Equal(3, de.Children.SchemaFilter.Count);
Assert.Equal("person", de.Children.SchemaFilter[0]);
Assert.Equal("user", de.Children.SchemaFilter[2]);
de.Children.SchemaFilter.Clear();
Assert.Equal(0, de.Children.SchemaFilter.Count);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestRootDomain()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
using (Domain rootDomain = forest.RootDomain)
{
Assert.Equal(forest.Name, rootDomain.Forest.Name);
Assert.Null(rootDomain.Parent);
forest.Domains.Contains(rootDomain);
int index = forest.Domains.IndexOf(rootDomain);
Assert.Equal(rootDomain.Name, forest.Domains[index].Name);
Domain [] domains = new Domain[0];
Assert.Throws<ArgumentException>(() => forest.Domains.CopyTo(domains, 0));
Assert.Throws<ArgumentNullException>(() => forest.Domains.CopyTo(null, 0));
domains = new Domain[forest.Domains.Count];
Assert.Throws<ArgumentOutOfRangeException>(() => forest.Domains.CopyTo(domains, -1));
forest.Domains.CopyTo(domains, 0);
Assert.NotNull(domains.FirstOrDefault(d => d.Name.Equals(rootDomain.Name)));
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestSites()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
Assert.True(forest.Sites.Count > 0);
using (ActiveDirectorySite site = forest.Sites[0])
{
Assert.True(forest.Sites.Contains(site));
Assert.Equal(0, forest.Sites.IndexOf(site));
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestRoleOwnersAndModes()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
Assert.Equal(forest.Name, forest.NamingRoleOwner.Forest.Name);
Assert.Equal(forest.Name, forest.SchemaRoleOwner.Forest.Name);
Assert.True(
forest.ForestMode == ForestMode.Unknown ||
forest.ForestMode == ForestMode.Windows2000Forest ||
forest.ForestMode == ForestMode.Windows2003Forest ||
forest.ForestMode == ForestMode.Windows2003InterimForest ||
forest.ForestMode == ForestMode.Windows2008Forest ||
forest.ForestMode == ForestMode.Windows2008R2Forest ||
forest.ForestMode == ForestMode.Windows2012R2Forest ||
forest.ForestMode == ForestMode.Windows8Forest);
Assert.True(forest.ForestModeLevel >= 0);
Assert.Equal(forest.Name, forest.NamingRoleOwner.Forest.Name);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestSchema()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
using (ActiveDirectorySchema schema = forest.Schema)
using (ActiveDirectorySchemaClass adsc = schema.FindClass("top"))
{
Assert.Equal("top", adsc.CommonName, StringComparer.OrdinalIgnoreCase);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestForestGlobalCatalog()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
int count = 0;
GlobalCatalogCollection gcCollection = forest.FindAllGlobalCatalogs();
foreach (GlobalCatalog gc in gcCollection)
{
count++;
}
Assert.True(count > 0);
Assert.True(gcCollection.Contains(gcCollection[0]));
Assert.Equal(0, gcCollection.IndexOf(gcCollection[0]));
gcCollection = forest.FindAllGlobalCatalogs(forest.Sites[0].Name);
count = 0;
foreach (GlobalCatalog gc in gcCollection)
{
count++;
}
Assert.True(count > 0);
Assert.True(gcCollection.Contains(gcCollection[0]));
Assert.Equal(0, gcCollection.IndexOf(gcCollection[0]));
GlobalCatalog globalCatalog = forest.FindGlobalCatalog(forest.Sites[0].Name);
DirectoryContext forestContext = new DirectoryContext(
DirectoryContextType.Forest,
forest.Name,
LdapConfiguration.Configuration.UserName,
LdapConfiguration.Configuration.Password);
Assert.Equal(globalCatalog.Name, GlobalCatalog.FindOne(forestContext, forest.Sites[0].Name).Name);
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestDomain()
{
using (Domain domain = Domain.GetDomain(ActiveDirectoryContext))
{
Assert.Equal(domain.Forest.Name, Forest.GetForest(ActiveDirectoryContext).Name);
Assert.NotNull(domain.Children);
DomainControllerCollection domainControllers = domain.DomainControllers;
Assert.True(domainControllers.Contains(domain.PdcRoleOwner));
Assert.True(domainControllers.IndexOf(domain.RidRoleOwner) >= 0);
Assert.True(domainControllers.Contains(domain.InfrastructureRoleOwner));
Assert.True(domain.DomainModeLevel >= 0);
Assert.True(
domain.DomainMode == DomainMode.Unknown ||
domain.DomainMode == DomainMode.Windows2000MixedDomain ||
domain.DomainMode == DomainMode.Windows2000NativeDomain ||
domain.DomainMode == DomainMode.Windows2003Domain ||
domain.DomainMode == DomainMode.Windows2003InterimDomain ||
domain.DomainMode == DomainMode.Windows2008Domain ||
domain.DomainMode == DomainMode.Windows2008R2Domain ||
domain.DomainMode == DomainMode.Windows2012R2Domain ||
domain.DomainMode == DomainMode.Windows8Domain);
if (domain.Forest.RootDomain.Name.Equals(domain.Name))
{
Assert.Null(domain.Parent);
}
Assert.Throws<ArgumentNullException>(() => domain.GetSidFilteringStatus(null));
Assert.Throws<ArgumentException>(() => domain.GetSidFilteringStatus(""));
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestDomainController()
{
using (Domain domain = Domain.GetDomain(ActiveDirectoryContext))
{
DirectoryContext dc = new DirectoryContext(
DirectoryContextType.Domain,
domain.Name,
LdapConfiguration.Configuration.UserName,
LdapConfiguration.Configuration.Password);
using (DomainController controller = DomainController.FindOne(dc))
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
Assert.Equal(forest.Name, controller.Forest.Name);
}
DomainControllerCollection dcc = DomainController.FindAll(dc);
Assert.True(dcc.Contains(controller));
Assert.True(dcc.IndexOf(controller) >= 0);
Assert.Equal(domain.Name, controller.Domain.Name);
Assert.True(controller.CurrentTime > DateTime.Today.AddDays(-2));
Assert.True(controller.HighestCommittedUsn > 0);
Assert.NotNull(controller.InboundConnections);
Assert.NotNull(controller.OutboundConnections);
foreach (ActiveDirectoryRole adr in controller.Roles)
{
Assert.True(
adr == ActiveDirectoryRole.InfrastructureRole ||
adr == ActiveDirectoryRole.NamingRole ||
adr == ActiveDirectoryRole.PdcRole ||
adr == ActiveDirectoryRole.RidRole ||
adr == ActiveDirectoryRole.SchemaRole);
Assert.True(controller.Roles.Contains(adr));
Assert.True(controller.Roles.IndexOf(adr) >= 0);
}
Assert.NotNull(controller.SiteName);
Assert.True(controller.OSVersion.IndexOf("Windows", StringComparison.OrdinalIgnoreCase) >= 0);
Assert.True(controller.IPAddress.IndexOf('.') >= 0);
}
}
}
[ConditionalFact(nameof(IsActiveDirectoryServer))]
public void TestSites()
{
using (Forest forest = Forest.GetForest(ActiveDirectoryContext))
{
using (ActiveDirectorySite site = forest.Sites[0])
using (ActiveDirectorySite s = ActiveDirectorySite.FindByName(ActiveDirectoryContext, site.Name))
{
Assert.Equal(site.Name, s.Name);
Assert.True(s.Domains.Contains(forest.RootDomain));
Assert.NotNull(s.AdjacentSites);
Assert.NotNull(s.BridgeheadServers);
Assert.NotNull(s.PreferredRpcBridgeheadServers);
Assert.NotNull(s.PreferredSmtpBridgeheadServers);
Assert.NotNull(s.Subnets);
Assert.True(s.SiteLinks.Count > 0);
using (ActiveDirectorySiteLink adsl = s.SiteLinks[0])
{
Assert.True(s.SiteLinks.Contains(adsl));
Assert.Equal(0, s.SiteLinks.IndexOf(adsl));
Assert.True(adsl.Sites.Contains(s));
Assert.True(adsl.Cost >= 0);
Assert.True(adsl.TransportType == ActiveDirectoryTransportType.Rpc || adsl.TransportType == ActiveDirectoryTransportType.Smtp);
}
Assert.True(s.Servers.Contains(s.InterSiteTopologyGenerator));
using (DirectoryServer ds = s.Servers[0])
{
Assert.NotNull(ds.InboundConnections);
Assert.NotNull(ds.OutboundConnections);
Assert.True(ds.IPAddress.IndexOf('.') >= 0);
Assert.Equal(s.Name, ds.SiteName);
Assert.True(ds.Partitions.Count > 0);
string firstPartition = ds.Partitions[0];
Assert.True(ds.Partitions.Contains(firstPartition));
Assert.Equal(0, ds.Partitions.IndexOf(firstPartition));
string [] partitions = new string[0];
Assert.Throws<ArgumentException>(() => ds.Partitions.CopyTo(partitions, 0));
Assert.Throws<ArgumentNullException>(() => ds.Partitions.CopyTo(null, 0));
Assert.Throws<ArgumentOutOfRangeException>(() => ds.Partitions.CopyTo(partitions, -1));
partitions = new string[ds.Partitions.Count];
ds.Partitions.CopyTo(partitions, 0);
Assert.Contains(firstPartition, partitions);
}
}
}
}
private static DirectoryContext ActiveDirectoryContext => new DirectoryContext(
DirectoryContextType.DirectoryServer,
LdapConfiguration.Configuration.ServerName +
(string.IsNullOrEmpty(LdapConfiguration.Configuration.Port) ? "" : ":" + LdapConfiguration.Configuration.Port),
LdapConfiguration.Configuration.UserName,
LdapConfiguration.Configuration.Password);
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/tests/JIT/jit64/opt/cg/CGRecurse/CGRecurseACC.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace CGRecurse
{
public class RecursiveACC
{
public static string ActualResult;
public static int cntA = 0;
public static int cntB = 0;
public static int cntC = 0;
public static int Main()
{
string ExpectedResult = "ACC";
int retVal = 1;
A();
Console.WriteLine(ActualResult);
if (ExpectedResult.Equals(ActualResult))
{
Console.WriteLine("Test SUCCESS");
retVal = 100;
}
return retVal;
}
public static void C()
{
ActualResult = (ActualResult + "C");
if ((cntC == 2))
{
cntC = 0;
return;
}
cntC = (cntC + 1);
C();
return;
}
public static void A()
{
ActualResult = (ActualResult + "A");
if ((cntC == 1))
{
cntC = 0;
return;
}
cntC = (cntC + 1);
C();
return;
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace CGRecurse
{
public class RecursiveACC
{
public static string ActualResult;
public static int cntA = 0;
public static int cntB = 0;
public static int cntC = 0;
public static int Main()
{
string ExpectedResult = "ACC";
int retVal = 1;
A();
Console.WriteLine(ActualResult);
if (ExpectedResult.Equals(ActualResult))
{
Console.WriteLine("Test SUCCESS");
retVal = 100;
}
return retVal;
}
public static void C()
{
ActualResult = (ActualResult + "C");
if ((cntC == 2))
{
cntC = 0;
return;
}
cntC = (cntC + 1);
C();
return;
}
public static void A()
{
ActualResult = (ActualResult + "A");
if ((cntC == 1))
{
cntC = 0;
return;
}
cntC = (cntC + 1);
C();
return;
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/tests/baseservices/threading/coverage/Nullref/CS_MutexNullRefEx.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading;
public class mytest {
public static int Main(String [] args) {
int rValue = 100;
Mutex mut = null;
Console.WriteLine("Test Mutex for expected NullRef Exceptions");
Console.WriteLine( );
// try {
// #pragma warning disable 618
// mut.Handle = new IntPtr(1);
// #pragma warning restore 618
// rValue = 1;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.Handle(new IntPtr(1)))");
// }
// try {
// #pragma warning disable 618
// IntPtr iptr = mut.Handle;
// #pragma warning restore 618
// rValue = 2;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (IntPtr iptr = mut.Handle)");
// }
// try {
// mut.Close();
// rValue = 3;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.Close())");
// }
try {
mut.Equals(new ManualResetEvent(true));
rValue = 4;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.Equals(new ManualResetEvent()))");
}
try {
mut.GetHashCode();
rValue = 5;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.GetHasCode())");
}
// try {
// mut.GetLifetimeService();
// rValue = 6;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.GetLifetimeService())");
// }
try {
mut.GetType();
rValue = 7;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.GetType())");
}
// try {
// mut.InitializeLifetimeService();
// rValue = 8;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.InitializeLifeTimeService())");
// }
try {
mut.ReleaseMutex();
rValue = 9;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.ReleaseMutex())");
}
try {
mut.ToString();
rValue = 11;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.ToString())");
}
try {
mut.WaitOne();
rValue = 12;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.WaitOne())");
}
try {
mut.WaitOne(1000);//,true);
rValue = 13;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.WaitOne(int)");
}
// try {
// mut.WaitOne(1000,false);
// rValue = 14;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.WaitOne(int,bool))");
// }
try {
mut.WaitOne(new TimeSpan(1000));//,true);
rValue = 15;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.WaitOne(TimeSpan))");
}
// try {
// mut.WaitOne(new TimeSpan(1000),false);
// rValue = 16;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.WaitOne(TimeSpan,bool))");
// }
Console.WriteLine("Return Code == {0}",rValue);
return rValue;
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading;
public class mytest {
public static int Main(String [] args) {
int rValue = 100;
Mutex mut = null;
Console.WriteLine("Test Mutex for expected NullRef Exceptions");
Console.WriteLine( );
// try {
// #pragma warning disable 618
// mut.Handle = new IntPtr(1);
// #pragma warning restore 618
// rValue = 1;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.Handle(new IntPtr(1)))");
// }
// try {
// #pragma warning disable 618
// IntPtr iptr = mut.Handle;
// #pragma warning restore 618
// rValue = 2;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (IntPtr iptr = mut.Handle)");
// }
// try {
// mut.Close();
// rValue = 3;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.Close())");
// }
try {
mut.Equals(new ManualResetEvent(true));
rValue = 4;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.Equals(new ManualResetEvent()))");
}
try {
mut.GetHashCode();
rValue = 5;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.GetHasCode())");
}
// try {
// mut.GetLifetimeService();
// rValue = 6;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.GetLifetimeService())");
// }
try {
mut.GetType();
rValue = 7;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.GetType())");
}
// try {
// mut.InitializeLifetimeService();
// rValue = 8;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.InitializeLifeTimeService())");
// }
try {
mut.ReleaseMutex();
rValue = 9;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.ReleaseMutex())");
}
try {
mut.ToString();
rValue = 11;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.ToString())");
}
try {
mut.WaitOne();
rValue = 12;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.WaitOne())");
}
try {
mut.WaitOne(1000);//,true);
rValue = 13;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.WaitOne(int)");
}
// try {
// mut.WaitOne(1000,false);
// rValue = 14;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.WaitOne(int,bool))");
// }
try {
mut.WaitOne(new TimeSpan(1000));//,true);
rValue = 15;
}
catch (NullReferenceException) {
Console.WriteLine("Caught NullReferenceException (mut.WaitOne(TimeSpan))");
}
// try {
// mut.WaitOne(new TimeSpan(1000),false);
// rValue = 16;
// }
// catch (NullReferenceException) {
// Console.WriteLine("Caught NullReferenceException (mut.WaitOne(TimeSpan,bool))");
// }
Console.WriteLine("Return Code == {0}",rValue);
return rValue;
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Reflection.Metadata/src/System/Reflection/Internal/Utilities/StreamExtensions.netstandard2.0.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using System.Runtime.InteropServices;
namespace System.Reflection.Internal
{
internal static partial class StreamExtensions
{
private static bool IsWindows => Path.DirectorySeparatorChar == '\\';
private static SafeHandle? GetSafeFileHandle(FileStream stream)
{
SafeHandle handle;
try
{
handle = stream.SafeFileHandle;
}
catch
{
// Some FileStream implementations (e.g. IsolatedStorage) restrict access to the underlying handle by throwing
// Tolerate it and fall back to slow path.
return null;
}
if (handle != null && handle.IsInvalid)
{
// Also allow for FileStream implementations that do return a non-null, but invalid underlying OS handle.
// This is how brokered files on WinRT will work. Fall back to slow path.
return null;
}
return handle;
}
internal static unsafe int Read(this Stream stream, byte* buffer, int size)
{
if (!IsWindows || stream is not FileStream fs)
{
return 0;
}
SafeHandle? handle = GetSafeFileHandle(fs);
if (handle == null)
{
return 0;
}
int result = Interop.Kernel32.ReadFile(handle, buffer, size, out int bytesRead, IntPtr.Zero);
return result == 0 ? 0 : bytesRead;
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using System.Runtime.InteropServices;
namespace System.Reflection.Internal
{
internal static partial class StreamExtensions
{
private static bool IsWindows => Path.DirectorySeparatorChar == '\\';
private static SafeHandle? GetSafeFileHandle(FileStream stream)
{
SafeHandle handle;
try
{
handle = stream.SafeFileHandle;
}
catch
{
// Some FileStream implementations (e.g. IsolatedStorage) restrict access to the underlying handle by throwing
// Tolerate it and fall back to slow path.
return null;
}
if (handle != null && handle.IsInvalid)
{
// Also allow for FileStream implementations that do return a non-null, but invalid underlying OS handle.
// This is how brokered files on WinRT will work. Fall back to slow path.
return null;
}
return handle;
}
internal static unsafe int Read(this Stream stream, byte* buffer, int size)
{
if (!IsWindows || stream is not FileStream fs)
{
return 0;
}
SafeHandle? handle = GetSafeFileHandle(fs);
if (handle == null)
{
return 0;
}
int result = Interop.Kernel32.ReadFile(handle, buffer, size, out int bytesRead, IntPtr.Zero);
return result == 0 ? 0 : bytesRead;
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.Collections.Immutable/tests/ImmutableDictionaryBuilderTest.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using Xunit;
namespace System.Collections.Immutable.Tests
{
public class ImmutableDictionaryBuilderTest : ImmutableDictionaryBuilderTestBase
{
[Fact]
public void CreateBuilder()
{
var builder = ImmutableDictionary.CreateBuilder<string, string>();
Assert.Same(EqualityComparer<string>.Default, builder.KeyComparer);
Assert.Same(EqualityComparer<string>.Default, builder.ValueComparer);
builder = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.Ordinal);
Assert.Same(StringComparer.Ordinal, builder.KeyComparer);
Assert.Same(EqualityComparer<string>.Default, builder.ValueComparer);
builder = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.Ordinal, StringComparer.OrdinalIgnoreCase);
Assert.Same(StringComparer.Ordinal, builder.KeyComparer);
Assert.Same(StringComparer.OrdinalIgnoreCase, builder.ValueComparer);
}
[Fact]
public void ToBuilder()
{
var builder = ImmutableDictionary<int, string>.Empty.ToBuilder();
builder.Add(3, "3");
builder.Add(5, "5");
Assert.Equal(2, builder.Count);
Assert.True(builder.ContainsKey(3));
Assert.True(builder.ContainsKey(5));
Assert.False(builder.ContainsKey(7));
var set = builder.ToImmutable();
Assert.Equal(builder.Count, set.Count);
builder.Add(8, "8");
Assert.Equal(3, builder.Count);
Assert.Equal(2, set.Count);
Assert.True(builder.ContainsKey(8));
Assert.False(set.ContainsKey(8));
}
[Fact]
public void BuilderAddRangeThrowsWhenAddingNullKey()
{
var set = ImmutableDictionary<string, int>.Empty.Add("1", 1);
var builder = set.ToBuilder();
var items = new[] { new KeyValuePair<string, int>(null, 0) };
Assert.Throws<ArgumentNullException>(() => builder.AddRange(items));
}
[Fact]
public void BuilderFromMap()
{
var set = ImmutableDictionary<int, string>.Empty.Add(1, "1");
var builder = set.ToBuilder();
Assert.True(builder.ContainsKey(1));
builder.Add(3, "3");
builder.Add(5, "5");
Assert.Equal(3, builder.Count);
Assert.True(builder.ContainsKey(3));
Assert.True(builder.ContainsKey(5));
Assert.False(builder.ContainsKey(7));
var set2 = builder.ToImmutable();
Assert.Equal(builder.Count, set2.Count);
Assert.True(set2.ContainsKey(1));
builder.Add(8, "8");
Assert.Equal(4, builder.Count);
Assert.Equal(3, set2.Count);
Assert.True(builder.ContainsKey(8));
Assert.False(set.ContainsKey(8));
Assert.False(set2.ContainsKey(8));
}
[Fact]
public void SeveralChanges()
{
var mutable = ImmutableDictionary<int, string>.Empty.ToBuilder();
var immutable1 = mutable.ToImmutable();
Assert.Same(immutable1, mutable.ToImmutable()); // "The Immutable property getter is creating new objects without any differences."
mutable.Add(1, "a");
var immutable2 = mutable.ToImmutable();
Assert.NotSame(immutable1, immutable2); // "Mutating the collection did not reset the Immutable property."
Assert.Same(immutable2, mutable.ToImmutable()); // "The Immutable property getter is creating new objects without any differences."
Assert.Equal(1, immutable2.Count);
}
[Fact]
public void EnumerateBuilderWhileMutating()
{
var builder = ImmutableDictionary<int, string>.Empty
.AddRange(Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string>(n, null)))
.ToBuilder();
Assert.Equal(
Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string>(n, null)),
builder);
var enumerator = builder.GetEnumerator();
Assert.True(enumerator.MoveNext());
builder.Add(11, null);
// Verify that a new enumerator will succeed.
Assert.Equal(
Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string>(n, null)),
builder);
// Try enumerating further with the previous enumerable now that we've changed the collection.
Assert.Throws<InvalidOperationException>(() => enumerator.MoveNext());
enumerator.Reset();
enumerator.MoveNext(); // resetting should fix the problem.
// Verify that by obtaining a new enumerator, we can enumerate all the contents.
Assert.Equal(
Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string>(n, null)),
builder);
}
[Fact]
public void BuilderReusesUnchangedImmutableInstances()
{
var collection = ImmutableDictionary<int, string>.Empty.Add(1, null);
var builder = collection.ToBuilder();
Assert.Same(collection, builder.ToImmutable()); // no changes at all.
builder.Add(2, null);
var newImmutable = builder.ToImmutable();
Assert.NotSame(collection, newImmutable); // first ToImmutable with changes should be a new instance.
Assert.Same(newImmutable, builder.ToImmutable()); // second ToImmutable without changes should be the same instance.
}
[Fact]
public void AddRange()
{
var builder = ImmutableDictionary.Create<string, int>().ToBuilder();
builder.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 } });
Assert.Equal(2, builder.Count);
Assert.Equal(1, builder["a"]);
Assert.Equal(2, builder["b"]);
}
[Fact]
public void RemoveRange()
{
var builder =
ImmutableDictionary.Create<string, int>()
.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } })
.ToBuilder();
Assert.Equal(3, builder.Count);
builder.RemoveRange(new[] { "a", "b" });
Assert.Equal(1, builder.Count);
Assert.Equal(3, builder["c"]);
}
[Fact]
public void Clear()
{
var builder = ImmutableDictionary.Create<string, int>().ToBuilder();
builder.Add("five", 5);
Assert.Equal(1, builder.Count);
builder.Clear();
Assert.Equal(0, builder.Count);
}
[Fact]
public void ContainsValue()
{
var map = ImmutableDictionary.Create<string, int>().Add("five", 5);
var builder = map.ToBuilder();
Assert.True(builder.ContainsValue(5));
Assert.False(builder.ContainsValue(4));
}
[Fact]
public void KeyComparer()
{
var builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("B", "1").ToBuilder();
Assert.Same(EqualityComparer<string>.Default, builder.KeyComparer);
Assert.True(builder.ContainsKey("a"));
Assert.False(builder.ContainsKey("A"));
builder.KeyComparer = StringComparer.OrdinalIgnoreCase;
Assert.Same(StringComparer.OrdinalIgnoreCase, builder.KeyComparer);
Assert.Equal(2, builder.Count);
Assert.True(builder.ContainsKey("a"));
Assert.True(builder.ContainsKey("A"));
Assert.True(builder.ContainsKey("b"));
var set = builder.ToImmutable();
Assert.Same(StringComparer.OrdinalIgnoreCase, set.KeyComparer);
Assert.True(set.ContainsKey("a"));
Assert.True(set.ContainsKey("A"));
Assert.True(set.ContainsKey("b"));
}
[Fact]
public void KeyComparerCollisions()
{
// First check where collisions have matching values.
var builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("A", "1").ToBuilder();
builder.KeyComparer = StringComparer.OrdinalIgnoreCase;
Assert.Equal(1, builder.Count);
Assert.True(builder.ContainsKey("a"));
var set = builder.ToImmutable();
Assert.Same(StringComparer.OrdinalIgnoreCase, set.KeyComparer);
Assert.Equal(1, set.Count);
Assert.True(set.ContainsKey("a"));
// Now check where collisions have conflicting values.
builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("A", "2").Add("b", "3").ToBuilder();
AssertExtensions.Throws<ArgumentException>(null, () => builder.KeyComparer = StringComparer.OrdinalIgnoreCase);
// Force all values to be considered equal.
builder.ValueComparer = EverythingEqual<string>.Default;
Assert.Same(EverythingEqual<string>.Default, builder.ValueComparer);
builder.KeyComparer = StringComparer.OrdinalIgnoreCase; // should not throw because values will be seen as equal.
Assert.Equal(2, builder.Count);
Assert.True(builder.ContainsKey("a"));
Assert.True(builder.ContainsKey("b"));
}
[Fact]
public void KeyComparerEmptyCollection()
{
var builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("B", "1").ToBuilder();
Assert.Same(EqualityComparer<string>.Default, builder.KeyComparer);
builder.KeyComparer = StringComparer.OrdinalIgnoreCase;
Assert.Same(StringComparer.OrdinalIgnoreCase, builder.KeyComparer);
var set = builder.ToImmutable();
Assert.Same(StringComparer.OrdinalIgnoreCase, set.KeyComparer);
}
[Fact]
public void GetValueOrDefaultOfConcreteType()
{
var empty = ImmutableDictionary.Create<string, int>().ToBuilder();
var populated = ImmutableDictionary.Create<string, int>().Add("a", 5).ToBuilder();
Assert.Equal(0, empty.GetValueOrDefault("a"));
Assert.Equal(1, empty.GetValueOrDefault("a", 1));
Assert.Equal(5, populated.GetValueOrDefault("a"));
Assert.Equal(5, populated.GetValueOrDefault("a", 1));
}
[Fact]
public void DebuggerAttributesValid()
{
DebuggerAttributes.ValidateDebuggerDisplayReferences(ImmutableDictionary.CreateBuilder<string, int>());
ImmutableDictionary<int, string>.Builder builder = ImmutableDictionary.CreateBuilder<int, string>();
builder.Add(1, "One");
builder.Add(2, "Two");
DebuggerAttributeInfo info = DebuggerAttributes.ValidateDebuggerTypeProxyProperties(builder);
PropertyInfo itemProperty = info.Properties.Single(pr => pr.GetCustomAttribute<DebuggerBrowsableAttribute>().State == DebuggerBrowsableState.RootHidden);
KeyValuePair<int, string>[] items = itemProperty.GetValue(info.Instance) as KeyValuePair<int, string>[];
Assert.Equal(builder, items);
}
[Fact]
public static void TestDebuggerAttributes_Null()
{
Type proxyType = DebuggerAttributes.GetProxyType(ImmutableHashSet.Create<string>());
TargetInvocationException tie = Assert.Throws<TargetInvocationException>(() => Activator.CreateInstance(proxyType, (object)null));
Assert.IsType<ArgumentNullException>(tie.InnerException);
}
[Fact]
public void ToImmutableDictionary()
{
ImmutableDictionary<int, int>.Builder builder = ImmutableDictionary.CreateBuilder<int, int>();
builder.Add(0, 0);
builder.Add(1, 1);
builder.Add(2, 2);
var dictionary = builder.ToImmutableDictionary();
Assert.Equal(0, dictionary[0]);
Assert.Equal(1, dictionary[1]);
Assert.Equal(2, dictionary[2]);
builder[1] = 5;
Assert.Equal(5, builder[1]);
Assert.Equal(1, dictionary[1]);
builder.Clear();
Assert.True(builder.ToImmutableDictionary().IsEmpty);
Assert.False(dictionary.IsEmpty);
ImmutableDictionary<int, int>.Builder nullBuilder = null;
AssertExtensions.Throws<ArgumentNullException>("builder", () => nullBuilder.ToImmutableDictionary());
}
protected override IImmutableDictionary<TKey, TValue> GetEmptyImmutableDictionary<TKey, TValue>()
{
return ImmutableDictionary.Create<TKey, TValue>();
}
protected override IImmutableDictionary<string, TValue> Empty<TValue>(StringComparer comparer)
{
return ImmutableDictionary.Create<string, TValue>(comparer);
}
protected override bool TryGetKeyHelper<TKey, TValue>(IDictionary<TKey, TValue> dictionary, TKey equalKey, out TKey actualKey)
{
return ((ImmutableDictionary<TKey, TValue>.Builder)dictionary).TryGetKey(equalKey, out actualKey);
}
protected override IDictionary<TKey, TValue> GetBuilder<TKey, TValue>(IImmutableDictionary<TKey, TValue> basis)
{
return ((ImmutableDictionary<TKey, TValue>)(basis ?? GetEmptyImmutableDictionary<TKey, TValue>())).ToBuilder();
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using Xunit;
namespace System.Collections.Immutable.Tests
{
public class ImmutableDictionaryBuilderTest : ImmutableDictionaryBuilderTestBase
{
[Fact]
public void CreateBuilder()
{
var builder = ImmutableDictionary.CreateBuilder<string, string>();
Assert.Same(EqualityComparer<string>.Default, builder.KeyComparer);
Assert.Same(EqualityComparer<string>.Default, builder.ValueComparer);
builder = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.Ordinal);
Assert.Same(StringComparer.Ordinal, builder.KeyComparer);
Assert.Same(EqualityComparer<string>.Default, builder.ValueComparer);
builder = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.Ordinal, StringComparer.OrdinalIgnoreCase);
Assert.Same(StringComparer.Ordinal, builder.KeyComparer);
Assert.Same(StringComparer.OrdinalIgnoreCase, builder.ValueComparer);
}
[Fact]
public void ToBuilder()
{
var builder = ImmutableDictionary<int, string>.Empty.ToBuilder();
builder.Add(3, "3");
builder.Add(5, "5");
Assert.Equal(2, builder.Count);
Assert.True(builder.ContainsKey(3));
Assert.True(builder.ContainsKey(5));
Assert.False(builder.ContainsKey(7));
var set = builder.ToImmutable();
Assert.Equal(builder.Count, set.Count);
builder.Add(8, "8");
Assert.Equal(3, builder.Count);
Assert.Equal(2, set.Count);
Assert.True(builder.ContainsKey(8));
Assert.False(set.ContainsKey(8));
}
[Fact]
public void BuilderAddRangeThrowsWhenAddingNullKey()
{
var set = ImmutableDictionary<string, int>.Empty.Add("1", 1);
var builder = set.ToBuilder();
var items = new[] { new KeyValuePair<string, int>(null, 0) };
Assert.Throws<ArgumentNullException>(() => builder.AddRange(items));
}
[Fact]
public void BuilderFromMap()
{
var set = ImmutableDictionary<int, string>.Empty.Add(1, "1");
var builder = set.ToBuilder();
Assert.True(builder.ContainsKey(1));
builder.Add(3, "3");
builder.Add(5, "5");
Assert.Equal(3, builder.Count);
Assert.True(builder.ContainsKey(3));
Assert.True(builder.ContainsKey(5));
Assert.False(builder.ContainsKey(7));
var set2 = builder.ToImmutable();
Assert.Equal(builder.Count, set2.Count);
Assert.True(set2.ContainsKey(1));
builder.Add(8, "8");
Assert.Equal(4, builder.Count);
Assert.Equal(3, set2.Count);
Assert.True(builder.ContainsKey(8));
Assert.False(set.ContainsKey(8));
Assert.False(set2.ContainsKey(8));
}
[Fact]
public void SeveralChanges()
{
var mutable = ImmutableDictionary<int, string>.Empty.ToBuilder();
var immutable1 = mutable.ToImmutable();
Assert.Same(immutable1, mutable.ToImmutable()); // "The Immutable property getter is creating new objects without any differences."
mutable.Add(1, "a");
var immutable2 = mutable.ToImmutable();
Assert.NotSame(immutable1, immutable2); // "Mutating the collection did not reset the Immutable property."
Assert.Same(immutable2, mutable.ToImmutable()); // "The Immutable property getter is creating new objects without any differences."
Assert.Equal(1, immutable2.Count);
}
[Fact]
public void EnumerateBuilderWhileMutating()
{
var builder = ImmutableDictionary<int, string>.Empty
.AddRange(Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string>(n, null)))
.ToBuilder();
Assert.Equal(
Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string>(n, null)),
builder);
var enumerator = builder.GetEnumerator();
Assert.True(enumerator.MoveNext());
builder.Add(11, null);
// Verify that a new enumerator will succeed.
Assert.Equal(
Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string>(n, null)),
builder);
// Try enumerating further with the previous enumerable now that we've changed the collection.
Assert.Throws<InvalidOperationException>(() => enumerator.MoveNext());
enumerator.Reset();
enumerator.MoveNext(); // resetting should fix the problem.
// Verify that by obtaining a new enumerator, we can enumerate all the contents.
Assert.Equal(
Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string>(n, null)),
builder);
}
[Fact]
public void BuilderReusesUnchangedImmutableInstances()
{
var collection = ImmutableDictionary<int, string>.Empty.Add(1, null);
var builder = collection.ToBuilder();
Assert.Same(collection, builder.ToImmutable()); // no changes at all.
builder.Add(2, null);
var newImmutable = builder.ToImmutable();
Assert.NotSame(collection, newImmutable); // first ToImmutable with changes should be a new instance.
Assert.Same(newImmutable, builder.ToImmutable()); // second ToImmutable without changes should be the same instance.
}
[Fact]
public void AddRange()
{
var builder = ImmutableDictionary.Create<string, int>().ToBuilder();
builder.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 } });
Assert.Equal(2, builder.Count);
Assert.Equal(1, builder["a"]);
Assert.Equal(2, builder["b"]);
}
[Fact]
public void RemoveRange()
{
var builder =
ImmutableDictionary.Create<string, int>()
.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } })
.ToBuilder();
Assert.Equal(3, builder.Count);
builder.RemoveRange(new[] { "a", "b" });
Assert.Equal(1, builder.Count);
Assert.Equal(3, builder["c"]);
}
[Fact]
public void Clear()
{
var builder = ImmutableDictionary.Create<string, int>().ToBuilder();
builder.Add("five", 5);
Assert.Equal(1, builder.Count);
builder.Clear();
Assert.Equal(0, builder.Count);
}
[Fact]
public void ContainsValue()
{
var map = ImmutableDictionary.Create<string, int>().Add("five", 5);
var builder = map.ToBuilder();
Assert.True(builder.ContainsValue(5));
Assert.False(builder.ContainsValue(4));
}
[Fact]
public void KeyComparer()
{
var builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("B", "1").ToBuilder();
Assert.Same(EqualityComparer<string>.Default, builder.KeyComparer);
Assert.True(builder.ContainsKey("a"));
Assert.False(builder.ContainsKey("A"));
builder.KeyComparer = StringComparer.OrdinalIgnoreCase;
Assert.Same(StringComparer.OrdinalIgnoreCase, builder.KeyComparer);
Assert.Equal(2, builder.Count);
Assert.True(builder.ContainsKey("a"));
Assert.True(builder.ContainsKey("A"));
Assert.True(builder.ContainsKey("b"));
var set = builder.ToImmutable();
Assert.Same(StringComparer.OrdinalIgnoreCase, set.KeyComparer);
Assert.True(set.ContainsKey("a"));
Assert.True(set.ContainsKey("A"));
Assert.True(set.ContainsKey("b"));
}
[Fact]
public void KeyComparerCollisions()
{
// First check where collisions have matching values.
var builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("A", "1").ToBuilder();
builder.KeyComparer = StringComparer.OrdinalIgnoreCase;
Assert.Equal(1, builder.Count);
Assert.True(builder.ContainsKey("a"));
var set = builder.ToImmutable();
Assert.Same(StringComparer.OrdinalIgnoreCase, set.KeyComparer);
Assert.Equal(1, set.Count);
Assert.True(set.ContainsKey("a"));
// Now check where collisions have conflicting values.
builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("A", "2").Add("b", "3").ToBuilder();
AssertExtensions.Throws<ArgumentException>(null, () => builder.KeyComparer = StringComparer.OrdinalIgnoreCase);
// Force all values to be considered equal.
builder.ValueComparer = EverythingEqual<string>.Default;
Assert.Same(EverythingEqual<string>.Default, builder.ValueComparer);
builder.KeyComparer = StringComparer.OrdinalIgnoreCase; // should not throw because values will be seen as equal.
Assert.Equal(2, builder.Count);
Assert.True(builder.ContainsKey("a"));
Assert.True(builder.ContainsKey("b"));
}
[Fact]
public void KeyComparerEmptyCollection()
{
var builder = ImmutableDictionary.Create<string, string>()
.Add("a", "1").Add("B", "1").ToBuilder();
Assert.Same(EqualityComparer<string>.Default, builder.KeyComparer);
builder.KeyComparer = StringComparer.OrdinalIgnoreCase;
Assert.Same(StringComparer.OrdinalIgnoreCase, builder.KeyComparer);
var set = builder.ToImmutable();
Assert.Same(StringComparer.OrdinalIgnoreCase, set.KeyComparer);
}
[Fact]
public void GetValueOrDefaultOfConcreteType()
{
var empty = ImmutableDictionary.Create<string, int>().ToBuilder();
var populated = ImmutableDictionary.Create<string, int>().Add("a", 5).ToBuilder();
Assert.Equal(0, empty.GetValueOrDefault("a"));
Assert.Equal(1, empty.GetValueOrDefault("a", 1));
Assert.Equal(5, populated.GetValueOrDefault("a"));
Assert.Equal(5, populated.GetValueOrDefault("a", 1));
}
[Fact]
public void DebuggerAttributesValid()
{
DebuggerAttributes.ValidateDebuggerDisplayReferences(ImmutableDictionary.CreateBuilder<string, int>());
ImmutableDictionary<int, string>.Builder builder = ImmutableDictionary.CreateBuilder<int, string>();
builder.Add(1, "One");
builder.Add(2, "Two");
DebuggerAttributeInfo info = DebuggerAttributes.ValidateDebuggerTypeProxyProperties(builder);
PropertyInfo itemProperty = info.Properties.Single(pr => pr.GetCustomAttribute<DebuggerBrowsableAttribute>().State == DebuggerBrowsableState.RootHidden);
KeyValuePair<int, string>[] items = itemProperty.GetValue(info.Instance) as KeyValuePair<int, string>[];
Assert.Equal(builder, items);
}
[Fact]
public static void TestDebuggerAttributes_Null()
{
Type proxyType = DebuggerAttributes.GetProxyType(ImmutableHashSet.Create<string>());
TargetInvocationException tie = Assert.Throws<TargetInvocationException>(() => Activator.CreateInstance(proxyType, (object)null));
Assert.IsType<ArgumentNullException>(tie.InnerException);
}
[Fact]
public void ToImmutableDictionary()
{
ImmutableDictionary<int, int>.Builder builder = ImmutableDictionary.CreateBuilder<int, int>();
builder.Add(0, 0);
builder.Add(1, 1);
builder.Add(2, 2);
var dictionary = builder.ToImmutableDictionary();
Assert.Equal(0, dictionary[0]);
Assert.Equal(1, dictionary[1]);
Assert.Equal(2, dictionary[2]);
builder[1] = 5;
Assert.Equal(5, builder[1]);
Assert.Equal(1, dictionary[1]);
builder.Clear();
Assert.True(builder.ToImmutableDictionary().IsEmpty);
Assert.False(dictionary.IsEmpty);
ImmutableDictionary<int, int>.Builder nullBuilder = null;
AssertExtensions.Throws<ArgumentNullException>("builder", () => nullBuilder.ToImmutableDictionary());
}
protected override IImmutableDictionary<TKey, TValue> GetEmptyImmutableDictionary<TKey, TValue>()
{
return ImmutableDictionary.Create<TKey, TValue>();
}
protected override IImmutableDictionary<string, TValue> Empty<TValue>(StringComparer comparer)
{
return ImmutableDictionary.Create<string, TValue>(comparer);
}
protected override bool TryGetKeyHelper<TKey, TValue>(IDictionary<TKey, TValue> dictionary, TKey equalKey, out TKey actualKey)
{
return ((ImmutableDictionary<TKey, TValue>.Builder)dictionary).TryGetKey(equalKey, out actualKey);
}
protected override IDictionary<TKey, TValue> GetBuilder<TKey, TValue>(IImmutableDictionary<TKey, TValue> basis)
{
return ((ImmutableDictionary<TKey, TValue>)(basis ?? GetEmptyImmutableDictionary<TKey, TValue>())).ToBuilder();
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/coreclr/nativeaot/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace System.Reflection.Emit
{
public sealed class DynamicMethod : MethodInfo
{
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, bool restrictedSkipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
public override MethodAttributes Attributes
{
get
{
return default;
}
}
public override CallingConventions CallingConvention
{
get
{
return default;
}
}
public override Type DeclaringType
{
get
{
return default;
}
}
public bool InitLocals
{
get
{
return default;
}
set
{
}
}
public override RuntimeMethodHandle MethodHandle
{
get
{
return default;
}
}
public override string Name
{
get
{
return default;
}
}
public override Type ReflectedType
{
get
{
return default;
}
}
public override ParameterInfo ReturnParameter
{
get
{
return default;
}
}
public override Type ReturnType
{
get
{
return default;
}
}
public override ICustomAttributeProvider ReturnTypeCustomAttributes
{
get
{
return default;
}
}
public sealed override Delegate CreateDelegate(Type delegateType)
{
return default;
}
public sealed override Delegate CreateDelegate(Type delegateType, object target)
{
return default;
}
public ParameterBuilder DefineParameter(int position, ParameterAttributes attributes, string parameterName)
{
return default;
}
public DynamicILInfo GetDynamicILInfo()
{
return default;
}
public override MethodInfo GetBaseDefinition()
{
return default;
}
public override object[] GetCustomAttributes(bool inherit)
{
return default;
}
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
{
return default;
}
public ILGenerator GetILGenerator()
{
return default;
}
public ILGenerator GetILGenerator(int streamSize)
{
return default;
}
public override MethodImplAttributes GetMethodImplementationFlags()
{
return default;
}
public override ParameterInfo[] GetParameters()
{
return default;
}
public override object? Invoke(object? obj, BindingFlags invokeAttr, Binder? binder, object?[]? parameters, CultureInfo? culture)
{
return default;
}
public override bool IsDefined(Type attributeType, bool inherit)
{
return default;
}
public override string ToString()
{
return default;
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace System.Reflection.Emit
{
public sealed class DynamicMethod : MethodInfo
{
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, bool restrictedSkipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
[RequiresDynamicCode("Creating a DynamicMethod requires dynamic code.")]
public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility)
{
ReflectionEmitThrower.ThrowPlatformNotSupportedException();
}
public override MethodAttributes Attributes
{
get
{
return default;
}
}
public override CallingConventions CallingConvention
{
get
{
return default;
}
}
public override Type DeclaringType
{
get
{
return default;
}
}
public bool InitLocals
{
get
{
return default;
}
set
{
}
}
public override RuntimeMethodHandle MethodHandle
{
get
{
return default;
}
}
public override string Name
{
get
{
return default;
}
}
public override Type ReflectedType
{
get
{
return default;
}
}
public override ParameterInfo ReturnParameter
{
get
{
return default;
}
}
public override Type ReturnType
{
get
{
return default;
}
}
public override ICustomAttributeProvider ReturnTypeCustomAttributes
{
get
{
return default;
}
}
public sealed override Delegate CreateDelegate(Type delegateType)
{
return default;
}
public sealed override Delegate CreateDelegate(Type delegateType, object target)
{
return default;
}
public ParameterBuilder DefineParameter(int position, ParameterAttributes attributes, string parameterName)
{
return default;
}
public DynamicILInfo GetDynamicILInfo()
{
return default;
}
public override MethodInfo GetBaseDefinition()
{
return default;
}
public override object[] GetCustomAttributes(bool inherit)
{
return default;
}
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
{
return default;
}
public ILGenerator GetILGenerator()
{
return default;
}
public ILGenerator GetILGenerator(int streamSize)
{
return default;
}
public override MethodImplAttributes GetMethodImplementationFlags()
{
return default;
}
public override ParameterInfo[] GetParameters()
{
return default;
}
public override object? Invoke(object? obj, BindingFlags invokeAttr, Binder? binder, object?[]? parameters, CultureInfo? culture)
{
return default;
}
public override bool IsDefined(Type attributeType, bool inherit)
{
return default;
}
public override string ToString()
{
return default;
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/RoleOwnerCollection.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.ComponentModel;
namespace System.DirectoryServices.ActiveDirectory
{
public class ActiveDirectoryRoleCollection : ReadOnlyCollectionBase
{
internal ActiveDirectoryRoleCollection() { }
internal ActiveDirectoryRoleCollection(ArrayList values)
{
if (values != null)
{
InnerList.AddRange(values);
}
}
public ActiveDirectoryRole this[int index] => (ActiveDirectoryRole)InnerList[index]!;
public bool Contains(ActiveDirectoryRole role)
{
if (role < ActiveDirectoryRole.SchemaRole || role > ActiveDirectoryRole.InfrastructureRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return true;
}
}
return false;
}
public int IndexOf(ActiveDirectoryRole role)
{
if (role < ActiveDirectoryRole.SchemaRole || role > ActiveDirectoryRole.InfrastructureRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return i;
}
}
return -1;
}
public void CopyTo(ActiveDirectoryRole[] roles, int index)
{
InnerList.CopyTo(roles, index);
}
}
public class AdamRoleCollection : ReadOnlyCollectionBase
{
internal AdamRoleCollection() { }
internal AdamRoleCollection(ArrayList values)
{
if (values != null)
{
InnerList.AddRange(values);
}
}
public AdamRole this[int index] => (AdamRole)InnerList[index]!;
public bool Contains(AdamRole role)
{
if (role < AdamRole.SchemaRole || role > AdamRole.NamingRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return true;
}
}
return false;
}
public int IndexOf(AdamRole role)
{
if (role < AdamRole.SchemaRole || role > AdamRole.NamingRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return i;
}
}
return -1;
}
public void CopyTo(AdamRole[] roles, int index)
{
InnerList.CopyTo(roles, index);
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.ComponentModel;
namespace System.DirectoryServices.ActiveDirectory
{
public class ActiveDirectoryRoleCollection : ReadOnlyCollectionBase
{
internal ActiveDirectoryRoleCollection() { }
internal ActiveDirectoryRoleCollection(ArrayList values)
{
if (values != null)
{
InnerList.AddRange(values);
}
}
public ActiveDirectoryRole this[int index] => (ActiveDirectoryRole)InnerList[index]!;
public bool Contains(ActiveDirectoryRole role)
{
if (role < ActiveDirectoryRole.SchemaRole || role > ActiveDirectoryRole.InfrastructureRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return true;
}
}
return false;
}
public int IndexOf(ActiveDirectoryRole role)
{
if (role < ActiveDirectoryRole.SchemaRole || role > ActiveDirectoryRole.InfrastructureRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return i;
}
}
return -1;
}
public void CopyTo(ActiveDirectoryRole[] roles, int index)
{
InnerList.CopyTo(roles, index);
}
}
public class AdamRoleCollection : ReadOnlyCollectionBase
{
internal AdamRoleCollection() { }
internal AdamRoleCollection(ArrayList values)
{
if (values != null)
{
InnerList.AddRange(values);
}
}
public AdamRole this[int index] => (AdamRole)InnerList[index]!;
public bool Contains(AdamRole role)
{
if (role < AdamRole.SchemaRole || role > AdamRole.NamingRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return true;
}
}
return false;
}
public int IndexOf(AdamRole role)
{
if (role < AdamRole.SchemaRole || role > AdamRole.NamingRole)
{
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole));
}
for (int i = 0; i < InnerList.Count; i++)
{
int tmp = (int)InnerList[i]!;
if (tmp == (int)role)
{
return i;
}
}
return -1;
}
public void CopyTo(AdamRole[] roles, int index)
{
InnerList.CopyTo(roles, index);
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/coreclr/tools/aot/ILCompiler.ReadyToRun/ObjectWriter/MapFileBuilder.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using Internal.JitInterface;
using Internal.TypeSystem;
using Internal.TypeSystem.Ecma;
using ILCompiler.DependencyAnalysis;
using ILCompiler.DependencyAnalysis.ReadyToRun;
using ILCompiler.Diagnostics;
namespace ILCompiler.PEWriter
{
/// <summary>
/// Helper class used to collect information to be output into the map file.
/// </summary>
public class MapFileBuilder
{
/// <summary>
/// Number of first characters of the section name to retain in the symbol & node map.
/// </summary>
private const int SectionNameHeadLength = 7;
/// <summary>
/// Statistic information for a single node type.
/// </summary>
private class NodeTypeStatistics
{
public readonly string Name;
public int Count;
public int Length;
public NodeTypeStatistics(string name)
{
Name = name;
}
public void AddNode(OutputNode node)
{
Debug.Assert(Name == node.Name);
Count++;
Length += node.Length;
}
}
private OutputInfoBuilder _outputInfoBuilder;
private long _fileSize;
public MapFileBuilder(OutputInfoBuilder outputInfoBuilder)
{
_outputInfoBuilder = outputInfoBuilder;
}
public void SetFileSize(long fileSize)
{
_fileSize = fileSize;
}
public void SaveMap(string mapFileName)
{
Console.WriteLine("Emitting map file: {0}", mapFileName);
_outputInfoBuilder.Sort();
using (StreamWriter mapWriter = new StreamWriter(mapFileName))
{
WriteHeader(mapWriter);
WriteNodeTypeStatistics(mapWriter);
WriteRelocTypeStatistics(mapWriter);
WriteSections(mapWriter);
WriteMap(mapWriter);
}
}
public void SaveCsv(string nodeStatsCsvFileName, string mapCsvFileName)
{
Console.WriteLine("Emitting csv files: {0}, {1}", nodeStatsCsvFileName, mapCsvFileName);
_outputInfoBuilder.Sort();
using (StreamWriter nodeStatsWriter = new StreamWriter(nodeStatsCsvFileName))
{
WriteNodeTypeStatisticsCsv(nodeStatsWriter);
}
using (StreamWriter mapCsvWriter = new StreamWriter(mapCsvFileName))
{
WriteMapCsv(mapCsvWriter);
}
}
private void WriteHeader(StreamWriter writer)
{
WriteTitle(writer, "Summary Info");
writer.WriteLine($"Output file size: {_fileSize,10}");
writer.WriteLine($"Section count: {_outputInfoBuilder.Sections.Count,10}");
writer.WriteLine($"Node count: {_outputInfoBuilder.Nodes.Count,10}");
writer.WriteLine($"Symbol count: {_outputInfoBuilder.Symbols.Count,10}");
writer.WriteLine($"Relocation count: {_outputInfoBuilder.RelocCounts.Values.Sum(),10}");
}
private IEnumerable<NodeTypeStatistics> GetNodeTypeStatistics()
{
List<NodeTypeStatistics> nodeTypeStats = new List<NodeTypeStatistics>();
Dictionary<string, int> statsNameIndex = new Dictionary<string, int>();
foreach (OutputNode node in _outputInfoBuilder.Nodes)
{
if (!statsNameIndex.TryGetValue(node.Name, out int statsIndex))
{
statsIndex = nodeTypeStats.Count;
nodeTypeStats.Add(new NodeTypeStatistics(node.Name));
statsNameIndex.Add(node.Name, statsIndex);
}
nodeTypeStats[statsIndex].AddNode(node);
}
nodeTypeStats.Sort((a, b) => b.Length.CompareTo(a.Length));
return nodeTypeStats;
}
private void WriteNodeTypeStatistics(StreamWriter writer)
{
IEnumerable<NodeTypeStatistics> nodeTypeStats = GetNodeTypeStatistics();
WriteTitle(writer, "Node Type Statistics");
WriteTitle(writer, " LENGTH | %FILE | AVERAGE | COUNT | NODETYPE");
foreach (NodeTypeStatistics nodeStats in nodeTypeStats)
{
writer.Write($"{nodeStats.Length,10} | ");
writer.Write($"{(nodeStats.Length * 100.0 / _fileSize),7:F3} | ");
writer.Write($"{(nodeStats.Length / (double)nodeStats.Count),10:F1} | ");
writer.Write($"{nodeStats.Count,6} | ");
writer.WriteLine(nodeStats.Name);
}
}
private void WriteNodeTypeStatisticsCsv(StreamWriter writer)
{
IEnumerable<NodeTypeStatistics> nodeTypeStats = GetNodeTypeStatistics();
writer.WriteLine("Length,% Of File,Average Size,Count,Node Type");
foreach (NodeTypeStatistics nodeStats in nodeTypeStats)
{
writer.Write($"{nodeStats.Length},");
writer.Write($"{(nodeStats.Length * 100.0 / _fileSize)},");
writer.Write($"{(nodeStats.Length / (double)nodeStats.Count)},");
writer.Write($"{nodeStats.Count},");
writer.WriteLine(nodeStats.Name);
}
}
private void WriteRelocTypeStatistics(StreamWriter writer)
{
KeyValuePair<RelocType, int>[] relocTypeCounts = _outputInfoBuilder.RelocCounts.ToArray();
Array.Sort(relocTypeCounts, (a, b) => b.Value.CompareTo(a.Value));
WriteTitle(writer, "Reloc Type Statistics");
WriteTitle(writer, " COUNT | RELOC_TYPE");
foreach (KeyValuePair<RelocType, int> relocTypeCount in relocTypeCounts)
{
writer.Write($"{relocTypeCount.Value,8} | ");
writer.WriteLine(relocTypeCount.Key.ToString());
}
const int NumberOfTopNodesByRelocType = 10;
WriteTitle(writer, "Top Nodes By Relocation Count");
WriteTitle(writer, " COUNT | SYMBOL (NODE)");
foreach (OutputNode node in _outputInfoBuilder.Nodes.Where(node => node.Relocations != 0).OrderByDescending(node => node.Relocations).Take(NumberOfTopNodesByRelocType))
{
writer.Write($"{node.Relocations,8} | ");
if (_outputInfoBuilder.FindSymbol(node, out int symbolIndex))
{
writer.Write($"{_outputInfoBuilder.Symbols[symbolIndex].Name}");
}
writer.WriteLine($" ({node.Name})");
}
}
private void WriteSections(StreamWriter writer)
{
WriteTitle(writer, "Section Map");
WriteTitle(writer, "INDEX | FILEOFFSET | RVA | END_RVA | LENGTH | NAME");
for (int sectionIndex = 0; sectionIndex < _outputInfoBuilder.Sections.Count; sectionIndex++)
{
Section section = _outputInfoBuilder.Sections[sectionIndex];
writer.Write($"{sectionIndex,5} | ");
writer.Write($"0x{section.FilePosWhenPlaced:X8} | ");
writer.Write($"0x{section.RVAWhenPlaced:X8} | ");
writer.Write($"0x{(section.RVAWhenPlaced + section.Content.Count):X8} | ");
writer.Write($"0x{section.Content.Count:X8} | ");
writer.WriteLine(section.Name);
}
}
private void WriteMap(StreamWriter writer)
{
WriteTitle(writer, "Node & Symbol Map");
WriteTitle(writer, "RVA | LENGTH | RELOCS | SECTION | SYMBOL (NODE)");
int nodeIndex = 0;
int symbolIndex = 0;
while (nodeIndex < _outputInfoBuilder.Nodes.Count || symbolIndex < _outputInfoBuilder.Symbols.Count)
{
if (nodeIndex >= _outputInfoBuilder.Nodes.Count
|| symbolIndex < _outputInfoBuilder.Symbols.Count
&& OutputItem.Comparer.Instance.Compare(_outputInfoBuilder.Symbols[symbolIndex], _outputInfoBuilder.Nodes[nodeIndex]) < 0)
{
// No more nodes or next symbol is below next node - emit symbol
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
Section section = _outputInfoBuilder.Sections[symbol.SectionIndex];
writer.Write($"0x{symbol.Offset + section.RVAWhenPlaced:X8} | ");
writer.Write(" | ");
writer.Write(" | ");
writer.Write($"{GetNameHead(section),-SectionNameHeadLength} | ");
writer.WriteLine(symbol.Name);
}
else
{
// Emit node and optionally symbol
OutputNode node = _outputInfoBuilder.Nodes[nodeIndex++];
Section section = _outputInfoBuilder.Sections[node.SectionIndex];
writer.Write($"0x{node.Offset + section.RVAWhenPlaced:X8} | ");
writer.Write($"0x{node.Length:X6} | ");
writer.Write($"{node.Relocations,6} | ");
writer.Write($"{GetNameHead(section),-SectionNameHeadLength} | ");
if (symbolIndex < _outputInfoBuilder.Symbols.Count && OutputItem.Comparer.Instance.Compare(node, _outputInfoBuilder.Symbols[symbolIndex]) == 0)
{
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
writer.Write($"{symbol.Name}");
}
writer.WriteLine($" ({node.Name})");
}
}
}
private void WriteMapCsv(StreamWriter writer)
{
writer.WriteLine("Rva,Length,Relocs,Section,Symbol,Node Type");
int nodeIndex = 0;
int symbolIndex = 0;
while (nodeIndex < _outputInfoBuilder.Nodes.Count || symbolIndex < _outputInfoBuilder.Symbols.Count)
{
if (nodeIndex >= _outputInfoBuilder.Nodes.Count
|| symbolIndex < _outputInfoBuilder.Symbols.Count
&& OutputItem.Comparer.Instance.Compare(_outputInfoBuilder.Symbols[symbolIndex], _outputInfoBuilder.Nodes[nodeIndex]) < 0)
{
// No more nodes or next symbol is below next node - emit symbol
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
Section section = _outputInfoBuilder.Sections[symbol.SectionIndex];
writer.Write($"0x{symbol.Offset + section.RVAWhenPlaced:X8},");
writer.Write(",");
writer.Write(",");
writer.Write($"{section.Name},");
writer.Write(",");
writer.WriteLine(symbol.Name);
}
else
{
// Emit node and optionally symbol
OutputNode node = _outputInfoBuilder.Nodes[nodeIndex++];
Section section = _outputInfoBuilder.Sections[node.SectionIndex];
writer.Write($"0x{node.Offset + section.RVAWhenPlaced:X8},");
writer.Write($"{node.Length},");
writer.Write($"{node.Relocations},");
writer.Write($"{section.Name},");
if (symbolIndex < _outputInfoBuilder.Symbols.Count && OutputItem.Comparer.Instance.Compare(node, _outputInfoBuilder.Symbols[symbolIndex]) == 0)
{
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
writer.Write($"{symbol.Name}");
}
writer.Write(",");
writer.WriteLine($"{node.Name}");
}
}
}
private static string GetNameHead(Section section)
{
string sectionNameHead = section.Name;
if (sectionNameHead.Length > SectionNameHeadLength)
{
sectionNameHead = sectionNameHead.Substring(0, SectionNameHeadLength);
}
return sectionNameHead;
}
private void WriteTitle(StreamWriter writer, string title)
{
writer.WriteLine();
writer.WriteLine(title);
writer.WriteLine(new string('-', title.Length));
}
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using Internal.JitInterface;
using Internal.TypeSystem;
using Internal.TypeSystem.Ecma;
using ILCompiler.DependencyAnalysis;
using ILCompiler.DependencyAnalysis.ReadyToRun;
using ILCompiler.Diagnostics;
namespace ILCompiler.PEWriter
{
/// <summary>
/// Helper class used to collect information to be output into the map file.
/// </summary>
public class MapFileBuilder
{
/// <summary>
/// Number of first characters of the section name to retain in the symbol & node map.
/// </summary>
private const int SectionNameHeadLength = 7;
/// <summary>
/// Statistic information for a single node type.
/// </summary>
private class NodeTypeStatistics
{
public readonly string Name;
public int Count;
public int Length;
public NodeTypeStatistics(string name)
{
Name = name;
}
public void AddNode(OutputNode node)
{
Debug.Assert(Name == node.Name);
Count++;
Length += node.Length;
}
}
private OutputInfoBuilder _outputInfoBuilder;
private long _fileSize;
public MapFileBuilder(OutputInfoBuilder outputInfoBuilder)
{
_outputInfoBuilder = outputInfoBuilder;
}
public void SetFileSize(long fileSize)
{
_fileSize = fileSize;
}
public void SaveMap(string mapFileName)
{
Console.WriteLine("Emitting map file: {0}", mapFileName);
_outputInfoBuilder.Sort();
using (StreamWriter mapWriter = new StreamWriter(mapFileName))
{
WriteHeader(mapWriter);
WriteNodeTypeStatistics(mapWriter);
WriteRelocTypeStatistics(mapWriter);
WriteSections(mapWriter);
WriteMap(mapWriter);
}
}
public void SaveCsv(string nodeStatsCsvFileName, string mapCsvFileName)
{
Console.WriteLine("Emitting csv files: {0}, {1}", nodeStatsCsvFileName, mapCsvFileName);
_outputInfoBuilder.Sort();
using (StreamWriter nodeStatsWriter = new StreamWriter(nodeStatsCsvFileName))
{
WriteNodeTypeStatisticsCsv(nodeStatsWriter);
}
using (StreamWriter mapCsvWriter = new StreamWriter(mapCsvFileName))
{
WriteMapCsv(mapCsvWriter);
}
}
private void WriteHeader(StreamWriter writer)
{
WriteTitle(writer, "Summary Info");
writer.WriteLine($"Output file size: {_fileSize,10}");
writer.WriteLine($"Section count: {_outputInfoBuilder.Sections.Count,10}");
writer.WriteLine($"Node count: {_outputInfoBuilder.Nodes.Count,10}");
writer.WriteLine($"Symbol count: {_outputInfoBuilder.Symbols.Count,10}");
writer.WriteLine($"Relocation count: {_outputInfoBuilder.RelocCounts.Values.Sum(),10}");
}
private IEnumerable<NodeTypeStatistics> GetNodeTypeStatistics()
{
List<NodeTypeStatistics> nodeTypeStats = new List<NodeTypeStatistics>();
Dictionary<string, int> statsNameIndex = new Dictionary<string, int>();
foreach (OutputNode node in _outputInfoBuilder.Nodes)
{
if (!statsNameIndex.TryGetValue(node.Name, out int statsIndex))
{
statsIndex = nodeTypeStats.Count;
nodeTypeStats.Add(new NodeTypeStatistics(node.Name));
statsNameIndex.Add(node.Name, statsIndex);
}
nodeTypeStats[statsIndex].AddNode(node);
}
nodeTypeStats.Sort((a, b) => b.Length.CompareTo(a.Length));
return nodeTypeStats;
}
private void WriteNodeTypeStatistics(StreamWriter writer)
{
IEnumerable<NodeTypeStatistics> nodeTypeStats = GetNodeTypeStatistics();
WriteTitle(writer, "Node Type Statistics");
WriteTitle(writer, " LENGTH | %FILE | AVERAGE | COUNT | NODETYPE");
foreach (NodeTypeStatistics nodeStats in nodeTypeStats)
{
writer.Write($"{nodeStats.Length,10} | ");
writer.Write($"{(nodeStats.Length * 100.0 / _fileSize),7:F3} | ");
writer.Write($"{(nodeStats.Length / (double)nodeStats.Count),10:F1} | ");
writer.Write($"{nodeStats.Count,6} | ");
writer.WriteLine(nodeStats.Name);
}
}
private void WriteNodeTypeStatisticsCsv(StreamWriter writer)
{
IEnumerable<NodeTypeStatistics> nodeTypeStats = GetNodeTypeStatistics();
writer.WriteLine("Length,% Of File,Average Size,Count,Node Type");
foreach (NodeTypeStatistics nodeStats in nodeTypeStats)
{
writer.Write($"{nodeStats.Length},");
writer.Write($"{(nodeStats.Length * 100.0 / _fileSize)},");
writer.Write($"{(nodeStats.Length / (double)nodeStats.Count)},");
writer.Write($"{nodeStats.Count},");
writer.WriteLine(nodeStats.Name);
}
}
private void WriteRelocTypeStatistics(StreamWriter writer)
{
KeyValuePair<RelocType, int>[] relocTypeCounts = _outputInfoBuilder.RelocCounts.ToArray();
Array.Sort(relocTypeCounts, (a, b) => b.Value.CompareTo(a.Value));
WriteTitle(writer, "Reloc Type Statistics");
WriteTitle(writer, " COUNT | RELOC_TYPE");
foreach (KeyValuePair<RelocType, int> relocTypeCount in relocTypeCounts)
{
writer.Write($"{relocTypeCount.Value,8} | ");
writer.WriteLine(relocTypeCount.Key.ToString());
}
const int NumberOfTopNodesByRelocType = 10;
WriteTitle(writer, "Top Nodes By Relocation Count");
WriteTitle(writer, " COUNT | SYMBOL (NODE)");
foreach (OutputNode node in _outputInfoBuilder.Nodes.Where(node => node.Relocations != 0).OrderByDescending(node => node.Relocations).Take(NumberOfTopNodesByRelocType))
{
writer.Write($"{node.Relocations,8} | ");
if (_outputInfoBuilder.FindSymbol(node, out int symbolIndex))
{
writer.Write($"{_outputInfoBuilder.Symbols[symbolIndex].Name}");
}
writer.WriteLine($" ({node.Name})");
}
}
private void WriteSections(StreamWriter writer)
{
WriteTitle(writer, "Section Map");
WriteTitle(writer, "INDEX | FILEOFFSET | RVA | END_RVA | LENGTH | NAME");
for (int sectionIndex = 0; sectionIndex < _outputInfoBuilder.Sections.Count; sectionIndex++)
{
Section section = _outputInfoBuilder.Sections[sectionIndex];
writer.Write($"{sectionIndex,5} | ");
writer.Write($"0x{section.FilePosWhenPlaced:X8} | ");
writer.Write($"0x{section.RVAWhenPlaced:X8} | ");
writer.Write($"0x{(section.RVAWhenPlaced + section.Content.Count):X8} | ");
writer.Write($"0x{section.Content.Count:X8} | ");
writer.WriteLine(section.Name);
}
}
private void WriteMap(StreamWriter writer)
{
WriteTitle(writer, "Node & Symbol Map");
WriteTitle(writer, "RVA | LENGTH | RELOCS | SECTION | SYMBOL (NODE)");
int nodeIndex = 0;
int symbolIndex = 0;
while (nodeIndex < _outputInfoBuilder.Nodes.Count || symbolIndex < _outputInfoBuilder.Symbols.Count)
{
if (nodeIndex >= _outputInfoBuilder.Nodes.Count
|| symbolIndex < _outputInfoBuilder.Symbols.Count
&& OutputItem.Comparer.Instance.Compare(_outputInfoBuilder.Symbols[symbolIndex], _outputInfoBuilder.Nodes[nodeIndex]) < 0)
{
// No more nodes or next symbol is below next node - emit symbol
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
Section section = _outputInfoBuilder.Sections[symbol.SectionIndex];
writer.Write($"0x{symbol.Offset + section.RVAWhenPlaced:X8} | ");
writer.Write(" | ");
writer.Write(" | ");
writer.Write($"{GetNameHead(section),-SectionNameHeadLength} | ");
writer.WriteLine(symbol.Name);
}
else
{
// Emit node and optionally symbol
OutputNode node = _outputInfoBuilder.Nodes[nodeIndex++];
Section section = _outputInfoBuilder.Sections[node.SectionIndex];
writer.Write($"0x{node.Offset + section.RVAWhenPlaced:X8} | ");
writer.Write($"0x{node.Length:X6} | ");
writer.Write($"{node.Relocations,6} | ");
writer.Write($"{GetNameHead(section),-SectionNameHeadLength} | ");
if (symbolIndex < _outputInfoBuilder.Symbols.Count && OutputItem.Comparer.Instance.Compare(node, _outputInfoBuilder.Symbols[symbolIndex]) == 0)
{
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
writer.Write($"{symbol.Name}");
}
writer.WriteLine($" ({node.Name})");
}
}
}
private void WriteMapCsv(StreamWriter writer)
{
writer.WriteLine("Rva,Length,Relocs,Section,Symbol,Node Type");
int nodeIndex = 0;
int symbolIndex = 0;
while (nodeIndex < _outputInfoBuilder.Nodes.Count || symbolIndex < _outputInfoBuilder.Symbols.Count)
{
if (nodeIndex >= _outputInfoBuilder.Nodes.Count
|| symbolIndex < _outputInfoBuilder.Symbols.Count
&& OutputItem.Comparer.Instance.Compare(_outputInfoBuilder.Symbols[symbolIndex], _outputInfoBuilder.Nodes[nodeIndex]) < 0)
{
// No more nodes or next symbol is below next node - emit symbol
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
Section section = _outputInfoBuilder.Sections[symbol.SectionIndex];
writer.Write($"0x{symbol.Offset + section.RVAWhenPlaced:X8},");
writer.Write(",");
writer.Write(",");
writer.Write($"{section.Name},");
writer.Write(",");
writer.WriteLine(symbol.Name);
}
else
{
// Emit node and optionally symbol
OutputNode node = _outputInfoBuilder.Nodes[nodeIndex++];
Section section = _outputInfoBuilder.Sections[node.SectionIndex];
writer.Write($"0x{node.Offset + section.RVAWhenPlaced:X8},");
writer.Write($"{node.Length},");
writer.Write($"{node.Relocations},");
writer.Write($"{section.Name},");
if (symbolIndex < _outputInfoBuilder.Symbols.Count && OutputItem.Comparer.Instance.Compare(node, _outputInfoBuilder.Symbols[symbolIndex]) == 0)
{
OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
writer.Write($"{symbol.Name}");
}
writer.Write(",");
writer.WriteLine($"{node.Name}");
}
}
}
private static string GetNameHead(Section section)
{
string sectionNameHead = section.Name;
if (sectionNameHead.Length > SectionNameHeadLength)
{
sectionNameHead = sectionNameHead.Substring(0, SectionNameHeadLength);
}
return sectionNameHead;
}
private void WriteTitle(StreamWriter writer, string title)
{
writer.WriteLine();
writer.WriteLine(title);
writer.WriteLine(new string('-', title.Length));
}
}
}
| -1 |
dotnet/runtime
| 66,434 |
Expose `LibraryImportAttribute`
|
Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
elinor-fung
| 2022-03-10T05:02:25Z | 2022-03-16T03:05:51Z |
c3dbdea91835d67cc461b22125e652ad5063d746
|
d2688883510318aa0114268930fb2022d3dc64cf
|
Expose `LibraryImportAttribute`. Expose `LibraryImportAttribute` in runtime libraries.
Resolves https://github.com/dotnet/runtime/issues/46822
|
./src/libraries/System.CodeDom/src/Microsoft/CSharp/CSharpModifierAttributeConverter.cs
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.ComponentModel;
using System.Globalization;
namespace Microsoft.CSharp
{
internal abstract class CSharpModifierAttributeConverter : TypeConverter
{
protected abstract object[] Values { get; }
protected abstract string[] Names { get; }
protected abstract object DefaultValue { get; }
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) =>
sourceType == typeof(string) ? true : base.CanConvertFrom(context, sourceType);
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
string name = value as string;
if (name != null)
{
string[] names = Names;
for (int i = 0; i < names.Length; i++)
{
if (names[i].Equals(name))
{
return Values[i];
}
}
}
return DefaultValue;
}
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType!!)
{
if (destinationType == typeof(string))
{
object[] modifiers = Values;
for (int i = 0; i < modifiers.Length; i++)
{
if (modifiers[i].Equals(value))
{
return Names[i];
}
}
return SR.toStringUnknown;
}
return base.ConvertTo(context, culture, value, destinationType);
}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) => true;
public override bool GetStandardValuesSupported(ITypeDescriptorContext context) => true;
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) => new StandardValuesCollection(Values);
}
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.ComponentModel;
using System.Globalization;
namespace Microsoft.CSharp
{
internal abstract class CSharpModifierAttributeConverter : TypeConverter
{
protected abstract object[] Values { get; }
protected abstract string[] Names { get; }
protected abstract object DefaultValue { get; }
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) =>
sourceType == typeof(string) ? true : base.CanConvertFrom(context, sourceType);
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
string name = value as string;
if (name != null)
{
string[] names = Names;
for (int i = 0; i < names.Length; i++)
{
if (names[i].Equals(name))
{
return Values[i];
}
}
}
return DefaultValue;
}
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType!!)
{
if (destinationType == typeof(string))
{
object[] modifiers = Values;
for (int i = 0; i < modifiers.Length; i++)
{
if (modifiers[i].Equals(value))
{
return Names[i];
}
}
return SR.toStringUnknown;
}
return base.ConvertTo(context, culture, value, destinationType);
}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) => true;
public override bool GetStandardValuesSupported(ITypeDescriptorContext context) => true;
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) => new StandardValuesCollection(Values);
}
}
| -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.