ICollectionExtensionReplaceT Method |
Replaces a entity in a list
Namespace:
SandcastleTest.Generic.DAL.FileSystemStorage
Assembly:
SandcastleTest (in SandcastleTest.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool Replace<T>(
this IList<T> list,
T entity
)
where T : PocoBase
Parameters
- list
- Type: System.Collections.GenericIListT
the list of poco items - entity
- Type: T
the list item to replace
Type Parameters
- T
- type of the list items
Return Value
Type:
Booleanreplacement has succeeded?
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also