Method Keep
Keep(params MaterialType[])
Creates a new filter that will keep the given values (and filter out the rest)
Declaration
public static IMaterialTypeFilter Keep(params MaterialType[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialType[] | values | The values to keep |
Returns
| Type | Description |
|---|---|
| IMaterialTypeFilter | A new material type filter |
Keep(Func<MaterialType, bool>)
Creates a new filter that will keep the given values (and filter out the rest)
Declaration
public static IMaterialTypeFilter Keep(Func<MaterialType, bool> predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<MaterialType, bool> | predicate | The function to obtain the included (resp. excluded) values |
Returns
| Type | Description |
|---|---|
| IMaterialTypeFilter | A new material type filter |