# HostingTypeHelpers Methods

- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Type: [HostingTypeHelpers](/reference/api/csharp/aspire.typesystem/hostingtypehelpers.md)
- Kind: `Methods`
- Members: `4`

Provides helper methods for identifying well-known Aspire hosting types by full name.

## IsDistributedApplicationBuilderType(Type?)

- Name: `IsDistributedApplicationBuilderType(Type?)`
- Modifiers: `static`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/HostingTypeHelpers.cs#L71)

Determines whether the specified `type` is the IDistributedApplicationBuilder interface.

```csharp
public static class HostingTypeHelpers
{
    public static bool IsDistributedApplicationBuilderType(
        Type? type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type?`)

## IsDistributedApplicationType(Type?)

- Name: `IsDistributedApplicationType(Type?)`
- Modifiers: `static`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/HostingTypeHelpers.cs#L77)

Determines whether the specified `type` is the DistributedApplication class.

```csharp
public static class HostingTypeHelpers
{
    public static bool IsDistributedApplicationType(
        Type? type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type?`)

## IsResourceBuilderType(Type?)

- Name: `IsResourceBuilderType(Type?)`
- Modifiers: `static`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/HostingTypeHelpers.cs#L65)

Determines whether the specified `type` implements the generic IResourceBuilder interface.

```csharp
public static class HostingTypeHelpers
{
    public static bool IsResourceBuilderType(
        Type? type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type?`)

## IsResourceType(Type?)

- Name: `IsResourceType(Type?)`
- Modifiers: `static`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/HostingTypeHelpers.cs#L59)

Determines whether the specified `type` implements the IResource interface.

```csharp
public static class HostingTypeHelpers
{
    public static bool IsResourceType(
        Type? type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type?`)
