Click here to Skip to main content
15,905,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: error "Object reference not set to an instance of an object" pls see the code and help me Pin
PIEBALDconsult23-Sep-09 20:02
mvePIEBALDconsult23-Sep-09 20:02 
GeneralRe: error "Object reference not set to an instance of an object" pls see the code and help me Pin
amaankhan23-Sep-09 20:06
amaankhan23-Sep-09 20:06 
AnswerRe: error "Object reference not set to an instance of an object" pls see the code and help me Pin
N a v a n e e t h23-Sep-09 20:08
N a v a n e e t h23-Sep-09 20:08 
QuestionInsert values into a table only if they do not already exist in that table (MS Access) Pin
Ajithevn23-Sep-09 19:55
Ajithevn23-Sep-09 19:55 
AnswerRe: Insert values into a table only if they do not already exist in that table (MS Access) [modified] Pin
PIEBALDconsult23-Sep-09 20:13
mvePIEBALDconsult23-Sep-09 20:13 
GeneralRe: Insert values into a table only if they do not already exist in that table (MS Access) Pin
Ajithevn23-Sep-09 20:20
Ajithevn23-Sep-09 20:20 
GeneralRe: Insert values into a table only if they do not already exist in that table (MS Access) Pin
PIEBALDconsult23-Sep-09 20:32
mvePIEBALDconsult23-Sep-09 20:32 
QuestionInterface type or class type? Pin
shivapriyak23-Sep-09 19:30
shivapriyak23-Sep-09 19:30 
Hi,

Consider the following:

public interface interface1
{
//some methods
}

public class A:interface1
{
//do something with methods in interface1
}

Now in the main class to create an object, can the following code be used:

interface1 I1 = new A();

is this a correct way? shouldn't it be
A a = new A();

If both the methods are correct what is the difference between the two?
Thanks.
AnswerRe: Interface type or class type? Pin
PIEBALDconsult23-Sep-09 19:46
mvePIEBALDconsult23-Sep-09 19:46 
GeneralRe: Interface type or class type? Pin
shivapriyak23-Sep-09 19:48
shivapriyak23-Sep-09 19:48 
GeneralRe: Interface type or class type? Pin
PIEBALDconsult23-Sep-09 19:58
mvePIEBALDconsult23-Sep-09 19:58 
GeneralRe: Interface type or class type? Pin
shivapriyak23-Sep-09 20:54
shivapriyak23-Sep-09 20:54 
GeneralRe: Interface type or class type? Pin
N a v a n e e t h23-Sep-09 23:19
N a v a n e e t h23-Sep-09 23:19 
GeneralRe: Interface type or class type? Pin
shivapriyak24-Sep-09 0:35
shivapriyak24-Sep-09 0:35 
GeneralRe: Interface type or class type? Pin
N a v a n e e t h23-Sep-09 20:00
N a v a n e e t h23-Sep-09 20:00 
GeneralRe: Interface type or class type? Pin
shivapriyak23-Sep-09 21:08
shivapriyak23-Sep-09 21:08 
GeneralRe: Interface type or class type? Pin
N a v a n e e t h23-Sep-09 22:53
N a v a n e e t h23-Sep-09 22:53 
GeneralRe: Interface type or class type? Pin
shivapriyak24-Sep-09 0:36
shivapriyak24-Sep-09 0:36 
GeneralRe: Interface type or class type? Pin
PIEBALDconsult24-Sep-09 5:22
mvePIEBALDconsult24-Sep-09 5:22 
QuestionImport Excel to Database Pin
Member-495917623-Sep-09 18:53
Member-495917623-Sep-09 18:53 
AnswerRe: Import Excel to Database Pin
Richard MacCutchan23-Sep-09 22:39
mveRichard MacCutchan23-Sep-09 22:39 
Questionimage to PDF in C# 2008 Pin
vijaykumarp23-Sep-09 17:36
vijaykumarp23-Sep-09 17:36 
AnswerRe: image to PDF in C# 2008 Pin
Christian Graus23-Sep-09 18:16
protectorChristian Graus23-Sep-09 18:16 
GeneralRe: image to PDF in C# 2008 Pin
vijaykumarp23-Sep-09 21:39
vijaykumarp23-Sep-09 21:39 
QuestionConvertion image to PDF in C# 2008 Pin
vijaykumarp23-Sep-09 17:22
vijaykumarp23-Sep-09 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.