Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Warnings in C# program
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01433654
Message ID:
01433664
Views:
45
I think Viv clarified the message. It's a good thing to clear up Warnings. Many people just leave them, but, IMO, warnings are errors too.

>I am getting a couple warnings in Visual Studio for my C# program.
>
>Field "Hour1.OptionsForm.Components is never assigned to, and will always have its default value null."
>
>I am trying to interpret what is being said here, but don't know what the warning means. Anyone guess? The warning pertains to line 8, column 50 of the following:
>
>
>namespace Hour1
>{    
>  partial class OptionsForm
>    {
>        /// <summary>
>        /// Required designer variable.
>        /// </summary>
>        private System.ComponentModel.IContainer components;
>
>        /// <summary>
>        /// Clean up any resources being used.
>        /// </summary>
>        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
>        protected override void Dispose(bool disposing)
>        {
>            if (disposing && (components != null))
>            {
>                components.Dispose();
>            }
>            base.Dispose(disposing);
>        }
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform