Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rx SubscribeOn and ObserveOn Pin
Kenneth Haugland25-Feb-16 20:55
mvaKenneth Haugland25-Feb-16 20:55 
QuestionIssue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer24-Feb-16 3:27
RichardGrimmer24-Feb-16 3:27 
SuggestionRe: Issue with retrieving items from an IEnumerable<T> Pin
Richard Deeming24-Feb-16 3:50
mveRichard Deeming24-Feb-16 3:50 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer24-Feb-16 4:23
RichardGrimmer24-Feb-16 4:23 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
Richard Deeming24-Feb-16 4:34
mveRichard Deeming24-Feb-16 4:34 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer24-Feb-16 4:44
RichardGrimmer24-Feb-16 4:44 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
Pete O'Hanlon24-Feb-16 5:06
subeditorPete O'Hanlon24-Feb-16 5:06 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer24-Feb-16 5:34
RichardGrimmer24-Feb-16 5:34 
Hi Pete,

So the classes in question represent a name and a collection of dates of birth associated with the name...classes below;

public partial class DateOfBirth
    {
        public int DateOfBirthId { get; set; }
        public Nullable<int> Day { get; set; }
        public Nullable<int> Month { get; set; }
        public Nullable<int> Year { get; set; }
        public long PepDeskRecordId { get; set; }
    }

public class ExpandedFoo
    {
        
        /// <summary>
        /// Gets or sets a value indicating the Foo Id associated with this person
        /// </summary>
        public string FooId { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the Bar Id (Primary Key) associated with this person
        /// </summary>
        public string BarId { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the title of this person
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the gender of this person
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the first name of this person
        /// </summary>
        public string FirstName { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the last name of this person
        /// </summary>
        public string LastName { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the full name of this person
        /// </summary>
        public string FullName { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the other names associated with this person
        /// </summary>
        public string OtherNames { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the Country associated with this person
        /// </summary>
        public string Country { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the Blah Id associated with this person
        /// </summary>
        public string BlahId{ get; set; }

        /// <summary>
        /// Gets or sets a value indicating the Combined name associated with this person
        /// </summary>
        public string CombinedName { get; set; }

        /// <summary>
        /// Gets or sets a value indicating the date of births associated with the Foo
        /// </summary>
        public IEnumerable<DateOfBirth> DateOfBirths { get; set; }
        
        /// <summary>
        /// Initialises a new instance of the <see cref="ExpandedFoo"/> class
        /// </summary>
        public ExpandedFoo()
        {
            this.DateOfBirths = new List<DateOfBirth>();
        }

    }


(Apologies for the naming, edited for a variety of corporate reasons!)

All in all pretty basic classes, and similar to those you've put together...
C# has already designed away most of the tedium of C++.

GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer24-Feb-16 20:15
RichardGrimmer24-Feb-16 20:15 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
Pete O'Hanlon24-Feb-16 22:09
subeditorPete O'Hanlon24-Feb-16 22:09 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer26-Feb-16 4:28
RichardGrimmer26-Feb-16 4:28 
GeneralRe: Issue with retrieving items from an IEnumerable<T> Pin
RichardGrimmer24-Feb-16 20:16
RichardGrimmer24-Feb-16 20:16 
QuestionCapture a image fram from a local video using a button to transfer into a picturebox and then save into local disk in C#.NET Pin
Member 1209982523-Feb-16 20:57
Member 1209982523-Feb-16 20:57 
AnswerRe: Capture a image fram from a local video using a button to transfer into a picturebox and then save into local disk in C#.NET Pin
Pete O'Hanlon23-Feb-16 21:23
subeditorPete O'Hanlon23-Feb-16 21:23 
GeneralRe: Capture a image fram from a local video using a button to transfer into a picturebox and then save into local disk in C#.NET Pin
Richard MacCutchan24-Feb-16 1:16
mveRichard MacCutchan24-Feb-16 1:16 
AnswerRe: Capture a image fram from a local video using a button to transfer into a picturebox and then save into local disk in C#.NET Pin
Gerry Schmitz24-Feb-16 6:57
mveGerry Schmitz24-Feb-16 6:57 
QuestionDispose of RX subscriptions Pin
Kenneth Haugland23-Feb-16 2:28
mvaKenneth Haugland23-Feb-16 2:28 
AnswerRe: Dispose of RX subscriptions Pin
Kenneth Haugland23-Feb-16 2:32
mvaKenneth Haugland23-Feb-16 2:32 
Questionhello guys I have a problem in my string cmd.... Pin
Member 1217509322-Feb-16 22:59
Member 1217509322-Feb-16 22:59 
AnswerRe: hello guys I have a problem in my string cmd.... Pin
Pete O'Hanlon22-Feb-16 23:41
subeditorPete O'Hanlon22-Feb-16 23:41 
AnswerRe: hello guys I have a problem in my string cmd.... Pin
OriginalGriff22-Feb-16 23:52
mveOriginalGriff22-Feb-16 23:52 
QuestionFileSystemWatcher Problem - My Solution Pin
Kevin Marois22-Feb-16 10:51
professionalKevin Marois22-Feb-16 10:51 
AnswerRe: FileSystemWatcher Problem - My Solution Pin
Garth J Lancaster22-Feb-16 18:37
professionalGarth J Lancaster22-Feb-16 18:37 
QuestionSQL SERVER Instance Pin
jackie.398122-Feb-16 3:39
jackie.398122-Feb-16 3:39 
AnswerRe: SQL SERVER Instance Pin
OriginalGriff22-Feb-16 4:06
mveOriginalGriff22-Feb-16 4:06 

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.