CloneFieldsToStackingAllocator(alloc);
- // Hash for control
- // <TODO>@TODO cts, can we use unsafe in this case!!!</TODO>
- if ((*pName)->GetHashForControl() != NULL)
- SetHashForControl((*pName)->GetHashForControl()->GetDataPtr(),
- (*pName)->GetHashForControl()->GetNumComponents(),
- (*pName)->GetHashAlgorithmForControl());
-
// Extract embedded WinRT name, if present.
ParseEncodedName();
friend class AssemblyNameNative;
AppDomain *m_pAppDomain;
- SBuffer m_HashForControl;
DWORD m_dwHashAlg;
DomainAssembly *m_pParentAssembly;
SetFallbackLoadContextBinderForRequestingAssembly(pSource->GetFallbackLoadContextBinderForRequestingAssembly());
m_fPreferFallbackLoadContextBinder = pSource->GetPreferFallbackLoadContextBinder();
- m_HashForControl = pSource->m_HashForControl;
m_dwHashAlg = pSource->m_dwHashAlg;
}
return m_pAppDomain;
}
- HRESULT SetHashForControl(PBYTE pHashForControl, DWORD dwHashForControl, DWORD dwHashAlg)
- {
- CONTRACTL
- {
- THROWS;
- GC_NOTRIGGER;
- PRECONDITION(CheckPointer(pHashForControl));
- }
- CONTRACTL_END;
-
- m_HashForControl.Set(pHashForControl, dwHashForControl);
- m_dwHashAlg=dwHashAlg;
- return S_OK;
- }
-
void ParseEncodedName();
void SetWindowsRuntimeType(LPCUTF8 szNamespace, LPCUTF8 szClassName);
DEFINE_FIELD_U(_cultureInfo, AssemblyNameBaseObject, _cultureInfo)
DEFINE_FIELD_U(_codeBase, AssemblyNameBaseObject, _codeBase)
DEFINE_FIELD_U(_version, AssemblyNameBaseObject, _version)
-DEFINE_FIELD_U(_hashForControl, AssemblyNameBaseObject, _hashForControl)
DEFINE_FIELD_U(_hashAlgorithm, AssemblyNameBaseObject, _hashAlgorithm)
-DEFINE_FIELD_U(_hashAlgorithmForControl, AssemblyNameBaseObject, _hashAlgorithmForControl)
DEFINE_FIELD_U(_versionCompatibility, AssemblyNameBaseObject, _versionCompatibility)
DEFINE_FIELD_U(_flags, AssemblyNameBaseObject, _flags)
DEFINE_CLASS(ASSEMBLY_NAME, Reflection, AssemblyName)
OBJECTREF _codeBase;
OBJECTREF _version;
OBJECTREF _strongNameKeyPair;
- U1ARRAYREF _hashForControl;
DWORD _hashAlgorithm;
- DWORD _hashAlgorithmForControl;
DWORD _versionCompatibility;
DWORD _flags;
OBJECTREF GetVersion() { LIMITED_METHOD_CONTRACT; return _version; }
DWORD GetAssemblyHashAlgorithm() { LIMITED_METHOD_CONTRACT; return _hashAlgorithm; }
DWORD GetFlags() { LIMITED_METHOD_CONTRACT; return _flags; }
- U1ARRAYREF GetHashForControl() { LIMITED_METHOD_CONTRACT; return _hashForControl;}
- DWORD GetHashAlgorithmForControl() { LIMITED_METHOD_CONTRACT; return _hashAlgorithmForControl; }
};
// VersionBaseObject
private StrongNameKeyPair _strongNameKeyPair;
- private byte[] _hashForControl;
private AssemblyHashAlgorithm _hashAlgorithm;
- private AssemblyHashAlgorithm _hashAlgorithmForControl;
private AssemblyVersionCompatibility _versionCompatibility;
private AssemblyNameFlags _flags;
_codeBase = _codeBase,
_hashAlgorithm = _hashAlgorithm,
_versionCompatibility = _versionCompatibility,
- _hashForControl = _hashForControl,
- _hashAlgorithmForControl = _hashAlgorithmForControl
};
return name;
}