---
title: "Accessing C# native Dlls in Matlab"  
description: "Accessing C# native Dlls in Matlab"  
author: "Mahesh KK"  
published: 2015-03-18  
updated: 2015-03-18  
canonical: https://www.mindstick.com/forum/23025/accessing-c-sharp-native-dlls-in-matlab  
category: "c#"  
tags: ["c#", "dll", ".net assembly"]  
reading_time: 1 minute  

---

# Accessing C# native Dlls in Matlab

Hi,\
\
I have a C# Dll to perform [windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) [operations](https://www.mindstick.com/blog/304985/how-does-devops-bridge-the-gap-between-development-and-operations-teams-like-git) like importing [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects) [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science), showing in tree view and sub catogories and soon..i can see its classes and its [method names](https://www.mindstick.com/forum/157800/what-happens-in-case-of-the-inherited-interfaces-have-conflicting-method-names) in [workspace](https://www.mindstick.com/blog/304118/transform-your-workspace-tips-for-enhancing-focus-and-productivity) using .NET [assembly](https://www.mindstick.com/articles/25/global-assembly-cache) [Matlab](https://answers.mindstick.com/qa/37394/is-there-an-online-matlab-to-python-translator) syntax, but how can i use those [methods](https://www.mindstick.com/articles/13060/runny-nose-remedy-methods-that-work-best) and call them to do those specific operations from matlab?\
\
Please help me with accessing C# Dll in Matlab.\
\
Thanks.\

## Replies

### Reply by Sumit Kesarwani

Hi Mahesh,

One way to make this work is to use COM. You can implement a COM object using .NET, and MatLab can work with COM objects (e.g. seehttp://www.mathworks.co.uk/help/matlab/matlab_external/exploring-your-object.html).

If your managed C# DLL is not yet exposed to COM, you may have to write a little wrapper (depending on whether or not you have access to the source code).


---

Original Source: https://www.mindstick.com/forum/23025/accessing-c-sharp-native-dlls-in-matlab

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
