CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Interface
public class SortByName implements Sortable {
    
    @Override
    public File[] sort(File[] files) {
        File aux;
        
        for (int i = files.length; i >= 1; i--) {
            for (int j = 1; j < i; j++) {
                if (files[j] != null && 
                        files[j - 1].getName().compareTo(files[j].getName()) > 0) {
by Licínio Mendes   May 31, 2011 @ 6:32am
101 Views
no comments
 
#http://www.nivot.org/2009/03/26/PowerShell20CTP3ModulesInPracticeNETInterfaces.aspx
 
function Get-Interface {
 
#.Synopsis
#   Allows PowerShell to call specific interface implementations on any .NET object. 
#.Description
#   Allows PowerShell to call specific interface implementations on any .NET object. 
#
#   As of v2.0, PowerShell cannot cast .NET instances to a particular interface. This makes it
350 Views
no comments
 
C#
/// <summary>
/// Static class that provides services to serialize and deserialize an IDynamiteXml.
/// </summary>
public static class DynamiteXmlLogic
{
    /// <summary>
    /// Service to serialize an IDynamiteXml implementing object.
    /// Use the Deserialize method of this class to get the IDynamiteXml back.
    /// </summary>
    /// <param name="DynamiteXml">
by Athens Springer   December 17, 2009 @ 10:42pm
213 Views
no comments
 
C#
namespace Guerche.Evaristo.Luciano.Utils.ComputerInfo
{
    using System;
    using System.Linq;
    using System.Net.NetworkInformation;
 
    class Program
    {
        static void Main(string[] args)
        {
355 Views
no comments
 
Function getDetailSearch(ByVal statusList As ArrayList, ByVal keywordList As ArrayList, ByVal categoryList As ArrayList, ByVal provinceList As ArrayList, ByVal mustHaveList As ArrayList, ByVal mustNotHaveList As ArrayList, ByVal publishDateFrom As Date, ByVal publishDateTo As Date, ByVal LineNo As Integer, ByVal Letter As String, ByVal UserID As Integer) As OutputObject Implements IOppSearchDAL.getDetailSearch
 
        Dim ob As OutputObject = New OutputObject
 
        'Flag to indicate search is NOT for TestBidMatch
        Dim IsTestBidMatch As Integer = 0
 
        ob = GetTenderDetailSearchResult(statusList, keywordList, categoryList, provinceList, mustHaveList, mustNotHaveList, publishDateFrom, publishDateTo, LineNo, Letter, IsTestBidMatch, UserID)
 
        Return ob
by ernmats   October 06, 2009 @ 1:28am
Tags: interface
109 Views
no comments
 
C#
public interface IRepository<TEntity> where TEntity : EntityObject
{
   TEntity GetById(int id);
   IQueryable<TEntity> GetAll();
 
   IQueryable<TEntity> Query();
 
   IRepository<TEntity> With(Expression<Func<TEntity, object>> path);
   IRepository<TEntity> With<T>(Expression<Func<T, object>> path);
}
by Dennis van der Stelt   July 22, 2009 @ 5:25am
629 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate