It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In a C# code, how can we pass a dynamically created Java class object into a another Java class function in a COM interop based project?
I'm not familiar with COM consumption/deployment in Java, but I'm sure a Java class exposed through COM to C# will look just like a C# class to the C# side.
So, the answer is to just pass the Java object to the Java method just like you would pass a C# object to a C# method.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
What is the best way to transfer an object from C# to PHP?
Lets say I have this:
class MyClass {
public string name;
public int id;
}
I then want to send it to a PHP page and receive it as an object (I have more complex datatypes in mind).
How can I do that, from the C# side and from the PHP side?
One way is to serialise to and from a text based format, for example JSON. Both languages should have ready-made serializers. Or XML if you prefer that.
You could use "nusoap" on php side and xml serializers on C# side
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to map features that I used from .net with Ruby
How can I create c# .net generic list like in Ruby?
public class ClientList : List<Client> { }
Ruby is a very dynamic language. It does not have strong types like in C#, and therefore, it does not have (or need generics).
You can create a List in Ruby like this:
list = []
http://langref.org/ruby/lists
class A
end
list = [] # create
list << A.new # add
Something like this? Here list is dynamic you can add any object to it.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
any one plz tell me how to differentiate the c# and silverlight interms of utility classes,ui controls(ui rendering) and package deployment?
i need to know all these details anyone plz help me out.
The Silverlight classes offered out-of-the-box are listed on MSDN - as are the various C# class libraries.
Assuming that your question comes from wanting to know which C# classes are not available in Silverlight (quite a few as I remember)
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I use BoxedApp for emulating a file system and a system registry. I know that it is used in Delphi and C++. Is it used in C# and VB6?
Yes it is used in C# and VB6:
From here: BoxedApp SDK
BoxedApp SDK is available in the following forms:
DLL - for all environments: VC++, VB6, C#, VB.Net, Delphi / Builder C++ and so on;
Static library (full version only) - for all VC++ versions;
OBJ file (for static linking) - for all Delphi / Builder C++ versions;
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I have a Data Structure class written in C#. How to convert that to C++ (managed)?
Don't convert it. One of the very nice features of .NET is that the types from one managed language can be used in another. Right-click your C++/CLI project, Properties, Common Properties, Framework and References. Click Add New Reference. Use the Projects tab if your C# project is in the same solution (recommended). Otherwise click the Browse tab and navigate to your C# assembly.
You can see how this is done in the Classes and Structs (Managed) page on MSDN. Just put the equivalent types and logic into your C++ ref class, and you'll make a managed class in C++.