Namespace problem

S

shapper

Hello,

I have the following:

using System;
using Google;
using Google.Analytics;
using Google.GData.Analytics;
using Google.GData.Client;
using Google.GData.Extensions;

namespace FOP.Net.Google.Analytics {
public class AnalyticsService {
public AnalyticsService() {

Google.GData.Analytics.AnalyticsService service = new
Google.GData.Analytics.AnalyticsService("xjksj");

}
}
}

In the code line Google.GData.Analytics. ... Google is considered as
FOP.Net.Google.Analytics and not the namespace I have.

Is there any way to solve this without changing my namespace?

Thanks,

Miguel
 
R

Registered User

Hello,

I have the following:

using System;
using Google;
using Google.Analytics;
using Google.GData.Analytics;
using Google.GData.Client;
using Google.GData.Extensions;

namespace FOP.Net.Google.Analytics {
public class AnalyticsService {
public AnalyticsService() {

Google.GData.Analytics.AnalyticsService service = new
Google.GData.Analytics.AnalyticsService("xjksj");

}
}
}

In the code line Google.GData.Analytics. ... Google is considered as
FOP.Net.Google.Analytics and not the namespace I have.

Is there any way to solve this without changing my namespace?

The article
How to: Use the Namespace Alias Qualifier (C# Programming Guide)
at
http://msdn.microsoft.com/en-us/library/c3ay4x3d(VS.80).aspx
explains how to solve the problem.

regards
A.G.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top