.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

C# to VB

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application
 

I need some help converting few statements fro m C# to VB

public ConditionStream(string condition, FullTextSearchOptions options)
            {
                this.options = options;
                this.condition = Regex.Replace((condition ?? String.Empty), @"\x09|\x0D|\x0A|[\x01-\x08]|\x10|[\x0B-\x0C]|[\x0E-\x1F]", " ");
                index = -1;
            }



while (stream.Read())
                {
                    if (ConditionOperator.IsSymbol(stream.Current))
                    {
                        PutToken();
                        SetToken(stream.Current);
                        PutToken();
                        continue;
                    }
                    switch (stream.Current)
                    {
                        case ' ': PutToken(); continue;
                        case '(': Push; continue;
                        case ')': Pop(); continue;
                        case '"':
                            PutToken();
                            inQuotes = true;
                            SetToken(stream.ReadQuote());
                            PutToken();
                            inQuotes = false;
                            continue;
                    }
                    AddToken(stream.Current);
                } 

View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend