This library includes shared methods, structures and constants for use throughout the Vanara assemblies. Think of it as windows.h with some useful extensions. It includes: * Extension methods for working with enumerated types (enum), FILETIME, and method and property extractions via reflection * Extension and helper methods to marshaling structures arrays and strings * SafeHandle based classes for working with memory allocated via CoTaskMem, HGlobal, or Local calls that handles packing and extracting arrays, structures and raw memory * Safe pinning of objects in memory * Memory stream based on marshaled memory
$ dotnet add package Vanara.Core![]()
This library includes shared methods, structures and constants for use throughout the Vanara assemblies. Think of it as windows.h with some useful extensions. It includes:
Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.
First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an .
| Classes | Structures | Enumerations | Interfaces |
|---|---|---|---|
| AddAsCtorAttribute AddAsMemberAttribute AdjustAutoMethodNamePatternAttribute AlignedMemory AppendedStringAttribute ArrayAttribute AutoHandleAttribute AutoSafeHandleAttribute BeginEndEventContext BitFieldAttribute BitHelper ByteSizeFormatter CloseHandleFunc ComConnectionPoint ComEnumString ComReleaser ComReleaserFactory ComStream ComTypeExtensions ConstantConversionExtensions CorrespondingTypeAttribute CoTaskMemoryMethods DeferAutoMethodFromAttribute DisposingList EnumerableEqualityComparer EnumExtensions EventedList FileTimeExtensions FixedStringAttribute Formatter FormatterComposer GenericSafeHandle GenericVirtualReadOnlyDictionary GuidToStringMarshaler HANDLEConverter HexDumpHelpers HGlobalMemoryMethods History IArrayStructExtensions IArrayStructMarshaler IgnoreAttribute InteropExtensions IntPtrConverter IOExtensions LibHelper LinqHelpers ListChangedEventArgs MarshaledAlternativeAttribute MarshaledAttribute Marshaler MarshalerOptions MarshalException MarshalFieldAs MarshalingStream Matrix Matrix MemoryMethodsBase NativeMemoryEnumerator NativeMemoryStream PinnedObject ReflectionExtensions ReflectionExtensions SafeAllocatedMemoryHandle SafeAllocatedMemoryHandleBase SafeByteArray SafeCoTaskMemHandle SafeCoTaskMemString SafeCoTaskMemStruct SafeGuidPtr SafeHANDLE SafeHGlobalHandle SafeHGlobalStruct SafeLPSTR SafeLPTSTR SafeLPWSTR SafeMemoryHandle SafeMemoryHandleExt SafeMemoryPool SafeMemString SafeMemStruct SizeDefAttribute SizeFieldNameAttributeExt SizeOfAttribute SpanAction SparseArray StringHelper StructPointer StructPtrAttribute SuppressAutoGenAttribute TryGetDelegate TryGetValueDelegate UnionHelper UntypedNativeMemoryEnumerator VanaraCustomMarshaler VanaraMarshaler VanaraMarshalerAttribute VirtualDictionary VirtualList VirtualListMethodCarrier VirtualReadOnlyDictionary VirtualReadOnlyList | AnySizeStructFieldArray AnySizeStructUnmanagedFieldArray ArrayPointer BitField BOOL BOOLEAN EnumFlagIndexer EnumRebase GuidPtr HANDLE IUnknownPointer LPCSTRArrayPointer LPCTSTRArrayPointer LPCWSTRArrayPointer ManagedArrayPointer ManagedStructPointer RefEnumerator SizeT StrPtrAnsi StrPtrAuto StrPtrUni StructPointer time_t | ArrayLayout Bitness CorrespondingAction FileAttributeConstant FileOpConstant FilePermissionConstant LayoutModel SizingMethod StringEncoding StringListPackMethod | IArrayStruct IHandle IHistory IMemoryMethods ISafeMemoryHandle ISafeMemoryHandleBase ISafeMemoryHandleFactory ISimpleMemoryMethods ISupportIndexer IVanaraMarshaler IVirtualListMethods IVirtualReadOnlyListMethods |