Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 53
Search took 0.01 seconds.
Search: Posts Made By: ChristianNagel
Forum: BOOK: Professional C# 6 and .NET Core 1.0 June 7th, 2017, 04:56 PM
Replies: 3
Views: 1,122
Posted By ChristianNagel
Hi Marcio, thanks for the link. This is...

Hi Marcio,

thanks for the link. This is about .NET Native which I also mentioned when publishing the app to the store and the configuration in the project settings.

This article...
Forum: BOOK: Professional C# 6 and .NET Core 1.0 February 20th, 2017, 12:47 PM
Replies: 1
Views: 1,497
Posted By ChristianNagel
Hi Nico, thanks for this information. This was...

Hi Nico,
thanks for this information. This was a change with .NET Core that I missed.
Making HTTP Requests with XDocument.Load is now only available from the full .NET Framework. XDocument.Load...
Forum: C# 2012/5.0 General Discussion January 1st, 2014, 11:47 AM
Replies: 1
Views: 1,075
Posted By ChristianNagel
Your CompareTo method doesn't implement the...

Your CompareTo method doesn't implement the interface IComparable.
The interface IComparable is the non-generic version, with this you need to implement a method that receives an object parameter....
Forum: C# 2012/5.0 General Discussion September 4th, 2013, 10:09 AM
Replies: 2
Views: 892
Posted By ChristianNagel
What do you mean? By having a lowercase variable...

What do you mean? By having a lowercase variable and uppercase Property?

private T value
public T Value
{
get {
if (!hasValue)
{
throw new InvalidOperationException("no...
Forum: BOOK: Professional C# 2012 and .NET 4.5 August 27th, 2013, 03:16 PM
Replies: 1
Views: 1,878
Posted By ChristianNagel
Did you add the reference to the assembly of the...

Did you add the reference to the assembly of the WeakEventManager class (WindowsBase)?
Forum: C# 2012/5.0 General Discussion August 27th, 2013, 01:25 PM
Replies: 2
Views: 825
Posted By ChristianNagel
Somewhere you want to set the value of the...

Somewhere you want to set the value of the property, but you can do the set accessor with a private access modifier:

public string Age { get; private set; }

See page 74 of this book.
Forum: BOOK: Professional C# 4.0 and .NET 4 January 25th, 2013, 05:13 PM
Replies: 1
Views: 2,535
Posted By ChristianNagel
You find these chapters with the code download...

You find these chapters with the code download for this book:
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470502258,descCd-DOWNLOAD.html

You can download the complete set of online...
Forum: C# 4.0 aka C# 2010 General Discussion November 28th, 2012, 03:55 AM
Replies: 2
Views: 1,803
Posted By ChristianNagel
The GetEnumerator method is defined by the...

The GetEnumerator method is defined by the interface IEnumerable. This method needs to return an object that implements the IEnumerator interface. In this case the class MyClass implements both...
Forum: C# 4.0 aka C# 2010 General Discussion November 28th, 2012, 03:48 AM
Replies: 2
Views: 1,129
Posted By ChristianNagel
That many questions ;-) Q1: internal works here...

That many questions ;-)
Q1: internal works here the same as on other places. Using internal with the set accessor of the property, only code within the assembly is allowed to access this property...
Forum: C# 4.0 aka C# 2010 General Discussion September 13th, 2012, 11:55 AM
Replies: 2
Views: 882
Posted By ChristianNagel
The variable 'c' is declared within the foreach...

The variable 'c' is declared within the foreach statement, and only valid within the foreach statement block. As you do not declare a block, you have only a single statement in the foreach: yield...
Forum: C# 4.0 aka C# 2010 General Discussion September 7th, 2012, 09:18 AM
Replies: 2
Views: 685
Posted By ChristianNagel
Why do you return a value from the method meth?...

Why do you return a value from the method meth? You do the WriteLine inside this method anyway.
From the Main method you can invoke it with itrobj.meth(); without passing it to Console.WriteLine.
Forum: C# 4.0 aka C# 2010 General Discussion September 7th, 2012, 09:15 AM
Replies: 2
Views: 754
Posted By ChristianNagel
The return type of the Main method can be void if...

The return type of the Main method can be void if you don't return anything. It can be int if you return a number. You can use this to start the program from a script, and check the return value from...
Forum: C# 4.0 aka C# 2010 General Discussion September 7th, 2012, 07:45 AM
Replies: 3
Views: 686
Posted By ChristianNagel
You can click the "Thanks" button in the lower...

You can click the "Thanks" button in the lower right corner of the post that was the answer ;-)
Forum: C# 4.0 aka C# 2010 General Discussion September 6th, 2012, 06:00 AM
Replies: 2
Views: 629
Posted By ChristianNagel
if the nested class is only useful with the outer...

if the nested class is only useful with the outer class.
In case the nested class is not public, it can only be used from within the outer class.
In the Professional C# book, in the...
Forum: C# 4.0 aka C# 2010 General Discussion September 6th, 2012, 05:28 AM
Replies: 3
Views: 686
Posted By ChristianNagel
The method meth is declared to return an int, and...

The method meth is declared to return an int, and it doesn't return anything. Such a method must be declared of type void.



The method meth is never invoked. The Main method is the entry point...
Forum: C# 4.0 aka C# 2010 General Discussion September 1st, 2012, 09:31 AM
Replies: 5
Views: 753
Posted By ChristianNagel
You're welcome :-) It's not necessary...

You're welcome :-)



It's not necessary to derive from the other interfaces, as this is done implicitly by the IEnumerator<string> interface. It is necessary to implement all the members of...
Forum: C# 4.0 aka C# 2010 General Discussion September 1st, 2012, 03:59 AM
Replies: 5
Views: 753
Posted By ChristianNagel
The text between the code lines should answer...

The text between the code lines should answer this. The first two code blocks you've in your post are the ones you can write. The 2nd HelloCollection shows the code as it is created from the C#...
Forum: BOOK: Beginning Visual C# 2010 July 31st, 2012, 02:44 PM
Replies: 4
Views: 1,873
Posted By ChristianNagel
Of course this creates an error. You need to...

Of course this creates an error. You need to declare the array like this - here you create an array of 3 elements:
FileStream[] queryFileHook = new FileStream[3];
And then you can initialize the...
Forum: BOOK: Beginning Visual C# 2010 July 16th, 2012, 03:01 PM
Replies: 2
Views: 719
Posted By ChristianNagel
The GetData method must be public as well.

The GetData method must be public as well.
Forum: BOOK: Beginning Visual C# 2010 July 7th, 2012, 01:24 AM
Replies: 5
Views: 1,624
Posted By ChristianNagel
The automatic property is just a syntax sugar...

The automatic property is just a syntax sugar from the C# compiler. As said previously, the compiler creates a full property with a get and set accessor to set and get the value from a field.
What's...
Forum: BOOK: Beginning Visual C# 2010 July 6th, 2012, 05:26 PM
Replies: 5
Views: 1,624
Posted By ChristianNagel
The automatic property is just a shorthand...

The automatic property is just a shorthand notation to a full property. If you just get and set the value from a property, you can use the automatic property syntax. This is less code to write. The...
Forum: BOOK: Professional C# 4.0 and .NET 4 June 20th, 2012, 03:27 PM
Replies: 3
Views: 2,767
Posted By ChristianNagel
The Properties namespace is coming from the...

The Properties namespace is coming from the normal Console app template. Did you change the default namespace to Wrox.ProCSharp.MEF? Then you should have the namespace Wrox.ProCharp.MEF.Properties....
Forum: BOOK: Beginning Visual C# 2010 February 14th, 2012, 09:06 AM
Replies: 3
Views: 1,070
Posted By ChristianNagel
This depends on your project settings. If you...

This depends on your project settings. If you have a C# configuration (Tools -> Import and Export Settings -> Reset all settings), the solution explorer shows the solution, and you can add projects....
Forum: BOOK: Beginning Visual C# 2010 January 8th, 2012, 04:32 PM
Replies: 1
Views: 1,171
Posted By ChristianNagel
Do you mean this code? <Trigger...

Do you mean this code?

<Trigger Property="MyBooleanValue" Value="true">
<Setter Property="Opacity" Value="0.5" />
</Trigger>

Where did you place this XAML fragment to? As the text explains,...
Forum: BOOK: Beginning Visual C# 2010 January 8th, 2012, 11:05 AM
Replies: 1
Views: 692
Posted By ChristianNagel
it's the example from page 258, the class Farm<T>...

it's the example from page 258, the class Farm<T> implements the interface IEnumerable<T>. This interface defines the methods GetEnumerator() that returns IEnumerator<T>, and (derived from the...
Showing results 1 to 25 of 53

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.