TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
B M Suchitra
NA
507
417.7k
Objects not getting added to arraylist object
Nov 21 2011 4:13 AM
Hi,
This is my method:
public ClsDMLProperties Add(string Column_Name, string Column_Value)
{
mCol
= new ArrayList();
ClsDMLProperties returnvalue;
ClsDMLProperties ObjMember = new ClsDMLProperties();
ObjMember.Col_Name = Column_Name;
ObjMember.Col_Value = Column_Value;
try
{
mCol.Add(ObjMember);
}
catch (Exception ex)
{
string msg = ex.Message;
Console.WriteLine(msg);
//DBCONObj.gprocErrorHandler(ex.Source, ex.Message, "Add", "ClsDMLFun");
}
returnvalue = ObjMember;
ObjMember = null;
return returnvalue;
}
==========================
ClsDMLProperties Class
public class ClsDMLProperties
{
private string column_name;
private string column_value;
private bool mvarReplaceBlankWithNull;
private bool mvarAllowNull;
private int mvarField_Decimals;
private bool mvarisNumeric;
public string Col_Name
{
get { return column_name; }
set { column_name = value; }
}
public string Col_Value
{
get { return column_value; }
set { column_value = value; }
}
public bool ReplaceBlankWithNull
{
get { return mvarReplaceBlankWithNull; }
set { mvarReplaceBlankWithNull = value; }
}
public bool AllowNull
{
get { return mvarAllowNull; }
set { mvarAllowNull = value; }
}
public int Field_Decimal
{
get
{ return mvarField_Decimals; }
set
{ mvarField_Decimals = value; }
}
public bool IsNumeric
{
get
{ return mvarisNumeric; }
set
{ mvarisNumeric = value; }
}
}
======================
My problem here is that to that arraylist object what i am adding does not get incremented. What could be the problem?
Reply
Answers (
4
)
String
C# ascii to hex conversion