string sFileName = Path.Combine( PIFiles.GetExePath(), "file.dat" );
MessageBox.Show( sFileName );
Output: Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Thursday, November 21, 2019
C# - How combine path with file name without problem
..function care about suitable separator:
C# - List.AddRange() - how copy one List object to another in one row
I have two List:
Node: Import is class, that contains Rows.
List<ObjectCoordinateBase> AllObjects; List<InfoStar> Rows;When I want copy objects from InfoStar class to ObjectCoordinate class, I can use List.AddRange() method.
Node: Import is class, that contains Rows.
Map.AllObjects.AddRange( import.GetAsObjectCoordinateBase() );
And here:public IEnumerable<ObjectCoordinateBase> GetAsObjectCoordinateBase() { List<ObjectCoordinateBase> list = new List<ObjectCoordinateBase>(); this.Rows.ForEach( item => { list.Add( new ObjectCoordinateBase( item ) ); } ); return list; }
Tuesday, November 12, 2019
C# - How to create yes-no question
Subscribe to:
Posts (Atom)