public void DefineGlobalVariable(string name, FieldAttributes attributes, byte[] signature , SymAddressKind addrKind, int addr1, int addr2, int addr3) { int hr; COMException Exception; hr = SymWriter_DefineGlobalVariable( m_Writer, name, attributes.GetHashCode(), signature, signature.Length, addrKind.GetHashCode(), addr1, addr2, addr3); if (hr < 0) { Exception = new COMException("Call to DefineGlobalVariable failed.", hr); throw Exception; } }
public void DefineField( SymbolToken parent, string name, FieldAttributes attributes, byte[] signature , SymAddressKind addrKind, int addr1, int addr2, int addr3) { int hr; COMException Exception; hr = SymWriter_DefineField( m_Writer, parent.GetToken(), name, attributes.GetHashCode(), signature , (int)addrKind, addr1, addr2, addr3); if (hr < 0) { Exception = new COMException("Call to DefineField failed.", hr); throw Exception; } }