when is that local variables are created and destroyed ,C#? thanks.
toto_2010
Posts
-
variables -
transmittedList the three ways that data can be transmitted within the parameters provide the associated keywords.in C# thank you.
-
execution of a C # applicationthanks
-
execution of a C # applicationpls which starts the execution of a C # application? thanks.
-
Encodingcan you give me just exemple code pls ,
-
EncodingI want to understand this code pls public GFile(string Filename) { string[] fileCtx = File.ReadAllLines(Filename, Encoding.Default); GLine gline; string[] tmpCtx; foreach (string line in fileCtx) { if (line.Contains(m_leftBracket) && line.Contains(m_rightBracket) && line != m_CRCHeader) m_Header = line; else if (line != m_CRCHeader) { tmpCtx = line.Split(new string[] { m_Equals }, StringSplitOptions.RemoveEmptyEntries); gline = new GLine(tmpCtx[0], tmpCtx[1]); if (ContainsKey(gline.Code)) this[gline.Code].CRCGiven = short.Parse(tmpCtx[1]); else Add(gline.Code, gline); } } }
-
folderI want to write a project in a folder how do that ? thanks for your idea.
-
document codecan you correct this document the code pls ,thanks namespace eControlCevertest.lib.Primitives {/// <summary> /// la class Gline est un class mere /// </summary> public sealed class GLine { #region Variables private bool m_IsDataCorrect; private LineDefinition m_ContentFormat; private short m_CRCComputed = -1, m_CRCGiven = -1; private string m_Code, m_Value; #endregion #region public Accessors /// <summary> /// Contient le Code de la donnée etdonne la v aleur, conformement au CDC GiEGLAN /// </summary> public string Code { get { return m_Code; } set { m_Code = value; } } public LineDefinition ContentFormat { get { return m_ContentFormat; } set { m_ContentFormat = value; } } /// <summary> /// Contient la valeur de la donnée et calcule le , /// </summary> public string Value { get { return m_Value; } set { m_Value = value; ComputeState(); } } public short CRCComputed { get { return m_CRCComputed; } } public short CRCGiven { get { return m_CRCGiven; } set { m_CRCGiven = value; ComputeState(); } } public bool IsDataCorrect { get { return m_CRCGiven != -1 && m_IsDataCorrect; } } /// <summary> /// /// </summary> public bool IsDefinitionAvailable { get { return m_ContentFormat != null; } } #endregion #region public non default Constructs /// <summary> // Constructeurs /// </summary> public GLine(string code, string value, short givencrc) { m_Code = code; m_Value = value; m_CRCGiven = givencrc; ComputeState(); } /// <summary> // Constructeurs . /// </summary>
-
dictionaryok thanks
-
dictionaryI want to fill in dictionary from table C# thank you for your idea .
-
CRC error controlI want to fill in dictionary from table C# thank you for your idea .
-
CRC error controlI want to read file the colluction and add it in dictionary with key and value ,C# thanks.
-
dictionaryI want to add in dictionary from class deriver
-
dictionaryI want to add in dictionary from class deriver .
-
dictionaryexactly but I want to read table from class CLing for Add to dictionary.
-
dictionaryI have classe collectionusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DLLDOpacimeter { public class CLing { private string codemess; private string format; private string unite; private string taile; private string designtion; private string obligatoir; private bool m_isrequird; private string valeur; private string CRccalcule; private string CRcdonne; private string correct; public CLing(string code, string forma, string unite, string taile, string desingnation, string obligatoi, string valeur1, string CRccalcul, string CRcdonn, string correct, bool m_isrequir) { this.codemess = code; this.format = forma; this.unite = unite; this.taile = taile; this.designtion = desingnation; this.obligatoir = obligatoi; this.valeur = valeur1; this.CRccalcule = CRccalcul; this.CRcdonne = CRcdonn; this.correct = correct; this.m_isrequird = m_isrequir; } public bool _minrequird { get { return m_isrequird; } set { m_isrequird = value; } } public string _valeur { get { return valeur; } set { valeur = value; } } public string _CRccalcule { get { return CRccalcule; } set { CRccalcule = valeur; } } public string _CRcdonn { get { return CRcdonne; } set { CRcdonne = value; } } public string _correct { get { return correct; } set { correct = value; } } public string _codemess { get { return codemess; } set {codemess =value ;} } public string _format { get { return format; } set { format = value; } } public string _unite { get { return unite; } set { unite = value; } } public string _taile { get { return taile; } set { taile = value; } } public string _designtion {
-
dictionaryHow to use a dictionary to read and write the object in File with C#. thanks.
-
CopyFileI do that but no tchinge
-
CopyFileI working in solution vb.net for convert to C#. my question about this " CopyFile(My.Application.Info.DirectoryPath & "\Ids", "Z:\ID", 1)". wath the function for this and how do that in C#? . thnks
-
vb.net to c#how that ? can you explain about this . thank.