What Is The Advantages And Disadvantages Of Using Public Interface In A ClassLibrary
Jun 21, 2011What is the advantages and disadvantages of using Public Interface in a ClassLibrary?
View 2 RepliesWhat is the advantages and disadvantages of using Public Interface in a ClassLibrary?
View 2 RepliesAt a colleague's workplace, a decision is trying to be made about whether to use both languages in the workplace or to standardize on one? There are some VB.Net developers and some C# developers. What advantages or disadvantages would there be to using both or to using one? Edit: To clarify this question, the question is not asking the advantages of one over the other, rather what are the advantages/disadvantage of standardizing on both languages versus standardizing on one. For instance, one point could be that C#/VB.Net may have more third party tools available and hence it may make sense to standardize all developers on that language.
View 9 RepliesI wanted to gain knowledge about the following params.
1. Use of Reflection?
2. What is the advantage of reflection?
3. What is the disadvantage of reflection?
I've got a VB.net application. Currently the release version of the application is produced without a PDB file. This gives me error logs lacking useful details such as line numbers. I'm looking at including the PDB files with future builds but i'd like to know what the advantages and disadvantages of this are (performance wise, size wise, code security wise)
View 4 RepliesPrivate Sub ActivateMe(ByVal active As Boolean) Implements IGraphicControl .ActivateMe compiles.How is possible in VB.NET? A private method can be an interface implementation. VB.NET... a lot of compliments to this language and IDE..
View 6 RepliesIn VB (ASP.NET)
Application("myapp")= Server.CreateObject("APP.Engine")
aa = Application("myapp").myMethod(2)
works.
In C# I tried
Application["myapp"]= Server.CreateObject("APP.Engine")
but
Application["myapp"].myMethod(2)
fails with 'object' does not contain a definition for 'myMethod'How can I expose the public interface in C#?
Are there any disadvantages in performance by using the CallByName function in VB.NET? Is there any better way to do the call by Name in .NET 2.0 onwards.
View 3 RepliesI have classes which have automatic properties only like public customerName {get; set;}. They are public because they are accessed outside the class. They can also be accessed inside the class. They offer good encapsulation and better debugging. I can put a breakpoint on one if I need to know who is accessing it and when.My question is what are the disadvantages of using properties only with no corresponding fields? I can make the setter or getter private, internal.. etc which means I also have flexibility of scoping it when needed.
View 8 RepliesI am working with a project to get the string name from the class library. I have a little problem right here...
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
[code].....
i hv create dll through classlibrary using c# now i hv to add it into website project,how can i ? it gives me error when i m trying to register dll that entry point not found
View 2 RepliesI have a ClassLibrary, MillerClassLib, with an item namespace, Validation, which contains two namespaces, ByteEditor and Validator. I created a new project, Login, which is a form for validating a user is authorized to use various projects.I've debugged it and compiled it into the bin.Release of Login. I want to move the namespace/dll/source to MillerClassLib. What are the steps to move it.Terry 01
View 2 RepliesI'm having trouble running a method that i wrote in C# via a classlibrary dll. In C# running the method is extremely simple, but I dont know how to write Visual Basic code that will do the same thing. Here's the C# code that i need to translate into Visual Basic:
ClassLibrary2.
Program test =
new ClassLibrary2.Program();
test.CreateProj();
All i need to do is run the CreateProj() method which belongs to ClassLibrary2.Program, and in the above code i do this by making "test" a new ClassLibrary2.Program object, and then i run the CreateProj() method through test. I dont know much about Visual Basic, but i know that i have to write the code in "Public Sub Main()". how to run the CreateProj() method in Visual Basic code.
How do I controls the windows forms after placed the codes in the class library like to add the items on the listbox and change the text of the button using with friend withevents, how can i do that to make it work?[code]...
View 8 Replieshow do I controls the windows forms after placed the codes in the class library like to add the items on the listbox and change the text of the button using with friend withevents, how can i do that to make it work??
The classlibrary UI:
Code:
Option Explicit On
Imports System
Imports System.Windows.Forms
[Code]....
The reason I want to do this as I want to reduce the codes as it is too much for the program to read it everything.
i wants to create an dll (classlibrary) file for displaying selected data form database by using a gridview control.for this iam creating an dll file , in that how to declare gridview1 [code]
View 1 RepliesI saw the following class declaration in vb.net: Public Class [Interface] Implements TestInterface. What does the above mean? Is there an equivalent in c#?
View 1 RepliesI have trouble changing notifyicon text, when I clicked the menu item button to read the codes from the classlibrary and change the notifyicon text but nothing have changed.
Here it is classlibrary codes:
Option Explicit On
Imports System.Runtime.InteropServices
Imports System
[code]....
I've created a VB.Net ClassLibrary with a UserControl in it. I can load it from an HTML page and call the methods that I created. This works as expected. I've tried several examples for how to raise an event from the VB code to the js caller, and none of them seem to work (I'm using IE7).
[Code]...
What's the basic Advantages of OOP in VB.NET?
View 1 RepliesWhat are the most important functional differences between C# and VB.NET?
C#'s edge over VB
I'm programming in VB.net because I'd former experience in VB 6.0 and I've familiar with its syntax. I know that C# is preferred by the biggest part of .net programmers. I know that C performance had superior performance against many other languages, but there is a good advantage in the same .net framework? There is a quite good reason for advicing me if should I migrate right now from VB to C#?
Reading over TRULY UNDERSTANDING VIEWSTATE the author suggests:
[Code]....
What advantages could one gain by not specifying control IDs? My quick searching didn't turn anything up.
I have some questions: 1) What's the learning curve for someone with good background in VB6? 2) what are the main advantages of VB.Net compared to VB6 and what will I be missing from VB6? 3) With VB.NET 2010 "ultimate" edition is it possible to make stand alone apps or they will be depending on net anyway even for the EXEs?
View 12 RepliesWhat are the true advantages of using #Region?
View 6 RepliesI want to learn programming, many people in website say visual basic is a good start. What's the advantages of it? As i know, there are a lot of people use c# in china, but few people use visual basic, why? Any great book to learn it?
View 16 RepliesI can access a module from code behind but not from the aspx page in inline VB code <% ... %>.
View 2 RepliesWhat are the improvements in vb.net compared to vb6 that make developing such an application easier?
View 3 RepliesOther than perhaps enhanced readability for very simple patterns, why would someone choose to use the Like operator in VB.NET over regular expressions for string pattern matching? Are there any advantages?
View 1 RepliesWhat are the advantages of using Bonjour in a program (vb.net), is it even possible? Couldn't I get the same end result using just what I program?
View 1 RepliesImports System
Imports System.Threading
Imports System.ComponentModel[code]....
how to declare "smsport" on class smscomms as public so that it can be access in class form1 or button1_click event.
How do declare a public variable .aspx web page that can be used in all the pages within my web application?
View 3 Replies