我尝试了多种方法来获取此值以返回项目的这些值,但是无论如何,我都会不断遇到这些问题。请帮助
using System;
using System.Collections.Generic;
namespace MpaintV2.Customer
{
public class Trade : Utilities.Helper
{
//public static List<String> TradeFiles(String TradeName, String TradeAddress, String TradePhone, Double PaintCoverage = 0.0)
//{
public override string ToString(String TradeName, String TradeAddress, String TradePhone, String TradeShape, double PaintCoverage)
{
List<string> FileData = Utilities.Helper.get_file_data();
for (int counter = 0; counter < FileData.Count; counter++)
{
String[] SplitRecord = FileData[counter].Split(',');
if (SplitRecord[0].Equals("Trade"))
{
TradeName = SplitRecord[1];
TradeAddress = SplitRecord[2];
TradePhone = SplitRecord[3];
PaintCoverage = (double.Parse(SplitRecord[4]) / 10.00);
}
//Console.WriteLine(" " + TradeName + " " + TradeAddress + " " + TradePhone + " " + PaintCoverage + "Paints");
}
return TradeName + TradeAddress + TradePhone + TradeShape + PaintCoverage;
}
}
}