Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Warnings in C# program
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Database:
Visual FoxPro
Divers
Thread ID:
01433654
Message ID:
01433664
Vues:
46
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform