Click here to Skip to main content
15,887,966 members
Home / Discussions / C#
   

C#

 
Questionhelp Pin
benson.misi22-Apr-09 4:28
benson.misi22-Apr-09 4:28 
AnswerRe: help Pin
musefan22-Apr-09 4:35
musefan22-Apr-09 4:35 
AnswerRe: help Pin
SeMartens22-Apr-09 4:39
SeMartens22-Apr-09 4:39 
AnswerRe: help Pin
CPallini22-Apr-09 4:41
mveCPallini22-Apr-09 4:41 
AnswerRe: help Pin
Thomas ST22-Apr-09 4:45
Thomas ST22-Apr-09 4:45 
QuestionObject "type not expected" when using serialization in web services Pin
BASONJS22-Apr-09 4:03
BASONJS22-Apr-09 4:03 
AnswerRe: Object "type not expected" when using serialization in web services Pin
Thomas ST22-Apr-09 4:59
Thomas ST22-Apr-09 4:59 
GeneralRe: Object "type not expected" when using serialization in web services Pin
BASONJS22-Apr-09 5:14
BASONJS22-Apr-09 5:14 
no at the moment the objects are as follows:

using System;
using System.Runtime.Serialization;
using Person;

namespace SchoolPackage
{
    [Serializable()]
    public class Student : ISerializable
    {
        private Person person;
        private int intReference;
        private int intReqTypeID;
        //
        private string strLastAlteredByUser;
        private DateTime dteAlteredDate;
        private Boolean blnIsDirty;
        private Boolean blnIsNew;
        private enum RequestType : int
        {
            Create = 1, Delete = 2, Update = 3, Execute = 4,
            Retrieve = 5, RetrieveMultiple = 6
        }

        public Student(Person person, String user, int TypeID, int Reference) 
        {
            this.person = person;
            this.strLastAlteredByUser = user;
            this.dteAlteredDate = DateTime.Now;
            this.blnIsDirty = false;
            this.blnIsNew = true;
            this.intReqTypeID = TypeID;
            this.intReference = Reference;
        }
      
        //Deserialization constructor.
        public Student(SerializationInfo info, StreamingContext ctxt)
        {
            //Get the values from info and assign them to the appropriate properties
            person = (Person)info.GetValue("person", typeof(Person));
            action = (string)info.GetValue("action", typeof(string));
            intReference = (int)info.GetValue("intReference", typeof(int));
            intReqTypeID = (int)info.GetValue("intReqTypeID", typeof(int));
        }
                
        //Serialization function.
        public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
        {            
            info.AddValue("person", person);
            info.AddValue("action", action);
            info.AddValue("intReference", intReference);
            info.AddValue("intReqTypeID", intReqTypeID);
        }

}

GeneralRe: Object "type not expected" when using serialization in web services Pin
Thomas ST22-Apr-09 20:57
Thomas ST22-Apr-09 20:57 
GeneralRe: Object "type not expected" when using serialization in web services Pin
BASONJS22-Apr-09 23:04
BASONJS22-Apr-09 23:04 
GeneralRe: Object "type not expected" when using serialization in web services Pin
BASONJS23-Apr-09 5:29
BASONJS23-Apr-09 5:29 
Questionproblem with keypress function Pin
MehmetKocc22-Apr-09 3:57
MehmetKocc22-Apr-09 3:57 
AnswerRe: problem with keypress function Pin
musefan22-Apr-09 4:02
musefan22-Apr-09 4:02 
AnswerRe: problem with keypress function Pin
Luc Pattyn22-Apr-09 4:13
sitebuilderLuc Pattyn22-Apr-09 4:13 
AnswerRe: problem with keypress function Pin
DoctorMick22-Apr-09 4:15
DoctorMick22-Apr-09 4:15 
AnswerRe: problem with keypress function Pin
ramz_g22-Apr-09 23:22
ramz_g22-Apr-09 23:22 
QuestionRefreshing Windows Form content / moving the window around Pin
Piratenwichtl200022-Apr-09 3:40
Piratenwichtl200022-Apr-09 3:40 
AnswerRe: Refreshing Windows Form content / moving the window around Pin
musefan22-Apr-09 4:00
musefan22-Apr-09 4:00 
GeneralRe: Refreshing Windows Form content / moving the window around Pin
Piratenwichtl200022-Apr-09 21:24
Piratenwichtl200022-Apr-09 21:24 
QuestionHow can i perform Alt+T operation through programming in c#.net 3.5 Windows application. Pin
Narendra Reddy Vajrala22-Apr-09 3:35
Narendra Reddy Vajrala22-Apr-09 3:35 
AnswerRe: How can i perform Alt+T operation through programming in c#.net 3.5 Windows application. Pin
Henry Minute22-Apr-09 3:49
Henry Minute22-Apr-09 3:49 
GeneralRe: How can i perform Alt+T operation through programming in c#.net 3.5 Windows application. Pin
Narendra Reddy Vajrala22-Apr-09 5:08
Narendra Reddy Vajrala22-Apr-09 5:08 
GeneralRe: How can i perform Alt+T operation through programming in c#.net 3.5 Windows application. Pin
Henry Minute22-Apr-09 5:12
Henry Minute22-Apr-09 5:12 
AnswerRe: How can i perform Alt+T operation through programming in c#.net 3.5 Windows application. Pin
Luc Pattyn22-Apr-09 4:16
sitebuilderLuc Pattyn22-Apr-09 4:16 
Questioncan i rotate a panel and its content Pin
Babita Shivade22-Apr-09 3:00
Babita Shivade22-Apr-09 3:00 

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.